Jump to content
Search Community

Drag together box and box-wrapper both

li6zy 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

When I drag the 'Draw me 1', '1' is follow with, but the class 'wrapper' doesn't follow.

I apply this codePen to my project like '1' is browser and the 'Draw me 1' box is browser bar.

So when I drag the browser bar then browser move together with no delay.

But wrapper is always keep it's first position. 

How can I fix this? 

Sorry for my poor English grammar and Thank you!

 

wrapper.png

 

 

wrapper2.png

 

 

See the Pen VdmeqL by PointC (@PointC) on CodePen

Link to comment
Share on other sites

I had the same question as @PointC

 

Have you looked into using the "trigger" special property? Not sure if that'll help because I don't really understand the question, but maybe look at that option in the docs and see if that'll help you. Otherwise, please give us a little more detail about what your goal is. 

  • 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.
×
×
  • Create New...