Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
wneet

Follow by mouse

Recommended Posts

Hey @OSUblake, I like the idea, but I've tried selecting the heading and it acts very weirdly even if I put pointer-events: none; to .ball

Also: how would you make the ball visible only when the mouse if on the viewport?  Seeing it visible on the window border is not really appealing.

And what would happen in mobile devices, is it better to completely remove it?

 

Link to post
Share on other sites
1 hour ago, heyitsA said:

Hey @OSUblake, I like the idea, but I've tried selecting the heading and it acts very weirdly even if I put pointer-events: none; to .ball

 

Not sure what you mean. Need to see a demo.

 

1 hour ago, heyitsA said:

Also: how would you make the ball visible only when the mouse if on the viewport?  Seeing it visible on the window border is not really appealing.

 

Hide it when it leaves the window, or when it's a certain distance away from an edge.

 

1 hour ago, heyitsA said:

And what would happen in mobile devices, is it better to completely remove it?

 

What is a mobile device? Most Windows laptops and Chromebooks have touch and mouse inputs. I wouldn't show the ball until there is a mouse event.

 

See the Pen 3170174f4ce844f78c7789a279f8e50e by osublake (@osublake) on CodePen

 

 

  • Like 2
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×