Jump to content
Search Community

Reset The Animation

Mohamedgad test
Moderator Tag

Recommended Posts

You need to toggle the z-index to make sure the right one is on top, and you can't just play() each time because once the playhead reaches the end, play() just makes it keep going forward but there's nowhere for it to go. I assume you meant restart(). Here's a more dynamic way to handle it: 

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

 

Happy tweening!

  • Thanks 1
Link to comment
Share on other sites

  • 4 weeks later...

hello again,

I have an annoying issue with this topic I was trying to fix it as it looks easy but I tried lot of ways but didn't able to fix it.

after the black overlay take higher z-index , the white overlay edges which is below it shown as the example on the attached image. 

both are 100% width and highest and both took same position: absolute left & bottom: 0, I don't understand why that happen.

my page background color is black.

can u advice

thanks.

 

white overlay edges issue.png

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