Jump to content
Search Community

fade in and fade out image

vanSk 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

Hello I have a hand animation that shows up on x and starts to rock. I want this hand to hide in every 3 seconds and start from the beginning -> ie x: 0 and go to x: 270. Can you help me? I want to look like an animation restart but with fade. Thank you very much
 

 

See the Pen JgmpRO by van_22 (@van_22) on CodePen

Link to comment
Share on other sites

Well, when the animation is fade out, as you can see it, I want after that the animation start from beginning, ie.  

tl.fromTo(".hand", 1, {
        x: -270
    }, {
            x: 270
        })

 

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