AsKadir Posted October 18, 2020 Share Posted October 18, 2020 Hi! I tried to recreate the navigation https://www.steven-hanley.com/ So now I have in my codepen working example, The problem is when deltaX is 0, the animation starts to kill itself in a tick because of overwrite: true. My question is - is it possible somehow kill animation with smooth decay? I mean when my deltaX is 0, the tween should animate position of x to 0 with duration, not immediately. Thanks in advance! See the Pen RwRRaOv by ChicagoJostik (@ChicagoJostik) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted October 19, 2020 Solution Share Posted October 19, 2020 There are various logic issues in your CodePen and I think a whole different approach would be better/cleaner: See the Pen 1044f52f08bee3c40af523ba72dcd2af?editors=0010 by GreenSock (@GreenSock) on CodePen Is that more like what you were looking for? 4 Link to comment Share on other sites More sharing options...
AsKadir Posted October 19, 2020 Author Share Posted October 19, 2020 5 hours ago, GreenSock said: Is that more like what you were looking for? Hey, Jack! It's exactly what I was looking for. Thanks a lot! 1 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