Jump to content
Search Community

Smarter way to Reset Items in Dropdown Menu?

LIEPS GmbH

Go to solution Solved by mvaneijgen,

Recommended Posts

Posted

Hello there, i have a bootstrap 5 dropdown with some items. I created a simple opacity & x translate stagger animation. When you click the dropdown and wait until the animation ends and then click the other dropdown all is fine, until you click fast between these dropdowns the animation breaks and gets bugged. Is there a smarter/better way to reset these animation?

 

Thanks!

See the Pen YzBBOpV by Sofatroll (@Sofatroll) on CodePen.

  • Solution
Posted

Check out our own @Carl amazing tutorial creating distinct mouseenter and mouseleave animations. Should provide you with the logic that is needed here. Hope it helps and happy tweening! 

 

 

  • Like 3
Posted

Nice One, this is so simple and powerfull. It is what i want.

 

Thank you!

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.
×
×
  • Create New...