Jump to content
GreenSock

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

Canvas-Driven Circular Menu Button: Expand/Collapse

Recommended Posts

Hi Everyone,

 

The CodePen associated with this was forked from @OSUblake. I was successful in adding viewport responsiveness and circular button expansion but am failing in reversing to a circular button collapse. I believe I set the circular canvas diameter and arc correctly but when clicking the close icon on the menu button there is no canvas animation. I would appreciate some assistance and sincerely thank you in advance.

See the Pen JQBOym by Chris55 (@Chris55) on CodePen

Edited by chrisalexander55
Provide correct attribution to original CodePen author
Link to post
Share on other sites

That demo is several years old, and I never made it work with HiDPI screens e.g. mobile, retina. For simplicity, I think you would be better off just using a div.

 

This demo doesn't close, but you would just scale it back to 0... or whatever size you wanted.

 

See the Pen VJBypa by osublake (@osublake) on CodePen

 

 

Taken from this thread.

 

 

 

  • 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

  • Recently Browsing   0 members

    No registered users viewing this page.

×