Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
kathryn.crawford

Tween cursor on hover

Recommended Posts

Hey guys,

 

Is it possible to tween the cursor css property? I've got a div on my website that expands on hover, and I'd like to change the cursor when it expands so that you know to click on it to do more. So, is it possible to tween the cursor property? I've attached a codepen that's a basic example of what I'm trying to do. 

See the Pen yeZgXV by kathryncrawford (@kathryncrawford) on CodePen

Link to post
Share on other sites

Hi Kathryn :),

 

You're really close. Just switch this 

.set(blah, {attr:{cursor: "default"}});

to this:

.set(blah, {cursor: "default"});

and it works as expected.

 

See the Pen KVJaGa by PointC (@PointC) on CodePen

 

:)

  • Like 3
Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×