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: add scaling to switch #110

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

Conversation

not-nullptr
Copy link
Contributor

in official mui3 material, switches are seen to scale when turning on and off. this implements the scaling when turning on.

src/lib/forms/Switch.svelte Show resolved Hide resolved
src/lib/forms/Switch.svelte Outdated Show resolved Hide resolved
@KTibow
Copy link
Owner

KTibow commented May 10, 2024

I updated the easing to take into account that the overshoot ease looks weird with multiple steps and to simplify it. I'm not 100% satisfied yet but it's something.

@not-nullptr
Copy link
Contributor Author

I updated the easing to take into account that the overshoot ease looks weird with multiple steps and to simplify it. I'm not 100% satisfied yet but it's something.

agreed that the effect isn't too great right now but its probably better than nothing

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.

2 participants