multivac
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by multivac
-
-
How would you validate that an object is a timeline ?
typeof timeline // returns "object"
timeline.constructor.name // returns "d"
-
Yes, what you suggest is totally possible.
But my goal here is to decouple the timeline's logic from the logic that needs to observe it:
https://en.wikipedia.org/wiki/Observer_pattern
Or is there a "onSomethingAdded" event ?
-
I just saw the following, I guess it's not possible.
-
What method would you use to detect changes in the timeline duration ?
-
@Sahil Wow. Nice. I didn't thought about this one !
-
I know this is a very simple question ... with multiple solutions. I'm just curious to see what would be your best solution.
My requirement states that the timeline duration must be at least 30 seconds. My actual animation lasts 27 seconds. I would like to "fill" the timeline with absolutely nothing happening for the last 3 seconds, without changing the time scale. The timeline doesn't repeat and the initial timeline duration is unknown.
What would you do ?
-
Valid Labels
in GSAP
Thank you Jonathan for the precious tips. Thank you Carl, that's exactly what I was looking for.
- 2
-
Valid Labels
in GSAP
Is there a callback function triggered if trying to reach a label that doesn't exist ?
Or maybe a way to get a list of valid labels ?
This feature would have save me a lot of debugging time.
Thank you
-
Doubleclick 1.19.0 CDN:
http://s0.2mdn.net/ads/studio/cached_libs/timelinemax_1.19.0_4cba7b163d6263b39d53727ed4c7bb6f_min.js
Points to VERSION: 1.18.6
Is this normal ?
- 1
-
Note that using :
"rgba( 0, 0, 255, 0.2 )"
instead of
"rgba(0, 0, 255, 0.2)"
Will not work.
- 2
How to tell if object is a Timeline ?
in GSAP
Posted
Great thank you OSUblake !
Maybe you can help me with this one ( I don't want to flood the forum with my newbie questions ) :
I need to extract duration from timelines that I don't know if they were scaled or not. Is there a quick way to get the "real duration" ? Or should I always do :