Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 'Toggler' animation #2779

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lazytanuki
Copy link

@lazytanuki lazytanuki commented Feb 2, 2025

Hi!

This is the continuation of #2483 for the 'Toggler' widget animation based on the recently merged #2757.

To respect the animations feature flag, we still use the animation code but the animation is just instantaneous, which IMO reduces the code complexity as opposed to having several features gates.

The toggler movement follows an "ease out" animation, and the background color smoothly transitions from one state to the other as well.

I've also included an example crate which is supposed to showcase all animated widgets as they land. ('cargo run -rp animations')

Thanks!

Kooha-2025-02-02-20-08-42.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant