Jump to content
Search Community

Recommended Posts

Posted

How to dynamically add elements while the loop is scrolling?

 

reference to original topic

 

mvaneijgen
Posted

What have you tried already? We love to see what you can come up with, that way we can see your thought process and thus better help you understand the tools!

 

I'm not sure what it is your asking. I've split your reply in to its own topic, no need to bother the other people in that topic years later.  If you could create a minimal demo with what you're thinking about doing and a bit more of a description what it is you're trying to do, then someone here will be surely to point you in the right direction.

 

Here is a starter template which loads all the plugins 

See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen.

Rodrigo
Posted

Hi,

 

Because of the way the Horizonta/Vertical Loop helper functions work, you can't just add/remove elements while the loop instance is animating. What you can do is kill the loop instance, add the new items and create it again. You can store the current progress of the instance before killing it in order to restore the loop at that particular progress after creating it again.

 

Hopefully this clear things up

Happy Tweening!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...