100101110
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by 100101110
-
-
I actually figure this one out and updated the codepen. Though for some reason the first stays in the changed colour which it doesnt when run locally.
The only thing I think that could be improved would be to run the timelines nested possibly? Though its a never ending loop so does it really matter? What would be best to performance e.g RAM and CPU usage on the client?
-
Hey
yeah state really wasn’t that important though I was going to use it to make sure it stops when the component wasn’t used. Eg a Boolean set in beforeDestroyed and the loop checks for it before continuing or not. But really don’t have to use state for the timeline. I just mimicked another’s and took it from there.
Basically my my goal is. I have a global map made up of dots. I want to choose 5 random locations and make them change color using yoyo. On completion of each timeline I want to get another location rather then using the previous location. Also I want to offset the 5 timelines by a random time interval day between 0.5 and 2 sec so that they aren’t all on at the exact same time.
Hope that hat makes sense. Currently it’s working fine with 1 timeline. I’m just trying to figure out how to create multiple without copy pasting the timelines. I’d rather do it programically using a loop or something.
Thanks
-
Hey,
haha actually it had no meaning I just bash the numbers out. It’s my way of providing anonymity with online profiles.
Yeah I thought that was the case but it was working locally not sure how.
What’s your thoughts on best creating multiple timelines. Ideally I’d like to set a state of number of timelines and then loop through them so there’s x timelines.
Cheers
yeah Vue is awesome.
-
So, the codepen isnt working correctly as per in my local dev setup as yoyo isnt working it just stays a different color rather then returning to the original color, but that isn't the issue.
Im wanting to run multiple timelines with a small random time offset between them all in a loop. So randomly 3 timelines are being run at the same time. I was thinking of using a for loop but didnt seam to work for me.
Any help would be greate
See the Pen vwyJgg by 001001010001 (@001001010001) on CodePen
Using multiple timelines in VueJS
in GSAP
Posted
Hi,
thanks ill I’ll take that name haha.
Thanks mate. Appreciate the help. Yeah I also figured out that issue, which was more masked on my side as I had 1500 elements so was very unlikely to see a double up.
Yeah that hat looks better. Appreciate it.