Jump to content
Search Community

Smooth transition when tween is overwritten

ikas test
Moderator Tag

Go to solution Solved by OSUblake,

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 am getting started with tweening using GSAP and so far it has been going good.

 

I hit on this problem and would appreciate any help in getting this to work.

 

 

1. Hit the "Spin" button and after a few seconds, hit the "Shake" button. Notice the current rotated position of the image just before hitting the "Shake" button.

 

2. After the "Shake" button is hit, the shake executes as expected.

 

I have a couple of things I want to achieve:

 

1. Can the spin still continue when the shake executes? In other words how can I continue executing the spin when adding the shake tween?

 

2. Is there a way to stop the image from being "reset" to its original position when the shake starts?

See the Pen WQwLmX by ikas (@ikas) on CodePen

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