Niiitraam Posted March 23, 2022 Share Posted March 23, 2022 Hi, I have a animation with addeventlistener on mouse. But my change is cancel because my mouse move. Someone can help me? Thank you See the Pen QWaGJRR by Niiitraam (@Niiitraam) on CodePen Link to comment Share on other sites More sharing options...
Niiitraam Posted March 23, 2022 Author Share Posted March 23, 2022 Link to comment Share on other sites More sharing options...
Niiitraam Posted March 23, 2022 Author Share Posted March 23, 2022 Link to comment Share on other sites More sharing options...
Niiitraam Posted March 23, 2022 Author Share Posted March 23, 2022 Sorry inadvence for my Screenshot Link to comment Share on other sites More sharing options...
OSUblake Posted March 23, 2022 Share Posted March 23, 2022 If you need help, please provide a minimal demo. Thanks! Link to comment Share on other sites More sharing options...
Niiitraam Posted March 23, 2022 Author Share Posted March 23, 2022 Yeah sorry, It's done! Link to comment Share on other sites More sharing options...
Solution OSUblake Posted March 23, 2022 Solution Share Posted March 23, 2022 You're overwriting the style that GSAP is targeting. Just use gsap.set or use a quickSetter. See the Pen LYebqNq by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Niiitraam Posted March 24, 2022 Author Share Posted March 24, 2022 Very thanks for this. Do you know how keep the cursor when i scroll on my page? Link to comment Share on other sites More sharing options...
Niiitraam Posted March 24, 2022 Author Share Posted March 24, 2022 Link to comment Share on other sites More sharing options...
OSUblake Posted March 24, 2022 Share Posted March 24, 2022 I already had that fix in my demo if you check out the CSS 😉 position: fixed; Link to comment Share on other sites More sharing options...
Niiitraam Posted March 24, 2022 Author Share Posted March 24, 2022 Okay, MY BAD. Thank a lot! 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