Michael31 Posted September 5 Share Posted September 5 I'm opening a new ticket following this one : I'm making a translation loops perfectly each time it's out of the wrap() range. It works like a charm (cf the CodePen) Now, I'd like to detect each time the position of my shape is reseted but I don't manage to achieve this. Indeed, I tried to detect when the value is out of range on my wheel event but there's a delta of time between the current wheel value and its application on the quickTo(). Does anyone know how can I properly detect it ? Thank you very much See the Pen gOdNBVP by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted September 5 Solution Share Posted September 5 Are you trying to do this?: See the Pen dywORRK?editors=0010 by GreenSock (@GreenSock) on CodePen 4 Link to comment Share on other sites More sharing options...
Michael31 Posted September 6 Author Share Posted September 6 That's exactly what I wanted to achieve. Thank you very much, I didn't think about creating a function inside the x modifier. 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