Pourya Posted December 3, 2019 Share Posted December 3, 2019 hi i want to stop my animation with motion not imediatelly , and play again smoothly not fast... $("map").hover ( function () { tl.stop() } ) $("map").mouseleave ( function () { tl.play() } ) Link to comment Share on other sites More sharing options...
ZachSaucier Posted December 3, 2019 Share Posted December 3, 2019 Hey Pourya and welcome to the GreenSock forums. I'm having a hard time understanding the issue here. Can you please create a minimal demo to explain the situation? Link to comment Share on other sites More sharing options...
mikel Posted December 3, 2019 Share Posted December 3, 2019 Hey @Pourya, This is a great example of @OSUblake "By tweening the timeScale() of a tween we can easily slow it down or speed it up over time. Check out how smooth the play and pause animations are. " See the Pen epLjrG by osublake (@osublake) on CodePen Happy tweening ... Mikel 3 Link to comment Share on other sites More sharing options...
OSUblake Posted December 3, 2019 Share Posted December 3, 2019 Be sure to have your speakers turned all the way up before looking at that demo. 1 Link to comment Share on other sites More sharing options...
Pourya Posted December 3, 2019 Author Share Posted December 3, 2019 22 minutes ago, mikel said: Hey @Pourya, This is a great example of @OSUblake "By tweening the timeScale() of a tween we can easily slow it down or speed it up over time. Check out how smooth the play and pause animations are. " Happy tweening ... Mikel thx i have to work on it , hope to solve my problem by your codepen demo. and sorry that my code and my question wasnt clear Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now