Jump to content
Search Community

Help finish a push image and scale fullscreen animation

donleche 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

Hi donleche  :)

 

Welcome to the forums.

 

I'd probably just speed up the timing a bit and change the eases. Something like this maybe:

// push down shortly
$img[0].style.visibility = 'hidden';
tl.to($clone, 0.1, {
scale: 0.97,
ease: Power1.easeIn
});
// scale up fullscreen
tl.to($clone, 1.5, {
x: 0,
y: 0,
delay: 0.05,
scale: 1,
width: '100%',
height: '100%',
ease: Power4.easeOut
});

Hopefully that helps a bit.

 

Happy tweening and welcome aboard.

:)

  • Like 1
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...