Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Mohd Rejoan

How to animate several div element targeting on sibling div position?

Recommended Posts

You'd have to calculate the offset x/y for each individual element. Here's how I'd approach it using function-based values in a simple tween: 

See the Pen ZEKEoyL?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Happy tweening!

  • Like 2
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.
×