Jump to content

Dushyant Kumar

Rotate the custom cursor ( box ) on mousemove with gsap

Recommended Posts

I want to rotate the box on mouse move 

     1. when cursor goes UPSIDE  box will rotate anti-clock-wise

      2. when cursor goes DOWNSIDE  box will rotate clock-wise

How it could be done with gsap ease



See the Pen zYwxaWJ by dushyant1295 (@dushyant1295) on CodePen

Link to comment
Share on other sites


I tried    but it seems repeat is not working 

I think I'm  missing  something  or doing wrong


have a look, the same CodePen I've edited

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.