Jump to content
Search Community

four animated tiles which start all from different points

chiho test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have built an animated tiles which now starts all from the same point, but what I want to achieve is that every tiles should have a different starting point. Most important thing here is that it should be maintainable, meaning that no matter how much tiles I add in the near future, it should randomly calculate a different starting point for each tile. 

See the Pen ZRoPdQ?editors=1010 by chichichi (@chichichi) on CodePen

Link to comment
Share on other sites

Hi chiho!

 

I hope I understood your problem correctly, let me know if that's not the case.

 

I think you might be adding a bit too much code in your attempts and are now getting a little bit lost in the forest. See the fork I made of your example pen with some of the extra stuff removed for clarity.

 

Hopefully, this will help you achieve your goal.

 

See the Pen XYYRoo?editors=1010 by dipscom (@dipscom) on CodePen

 

  • Like 3
Link to comment
Share on other sites

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...