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

allow disabling css transitions while changing color scheme #217

Open
stefanprobst opened this issue Oct 25, 2023 · 2 comments
Open

allow disabling css transitions while changing color scheme #217

stefanprobst opened this issue Oct 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@stefanprobst
Copy link

Is your feature request related to a problem? Please describe.

it would be cool to be able to disable any css transition on the page when changing the color mode.

Describe the solution you'd like

for example, this is how next-themes does this: https://github.com/pacocoursey/next-themes/blob/main/packages/next-themes/src/index.tsx#L285-L302

@stefanprobst stefanprobst added the enhancement New feature or request label Oct 25, 2023
@mrleblanc101
Copy link

Yes, I'd love this !
I use tailwind, and everywhere I have transition-colors or transition-all, there is an animation, while the other elements change instantly...

@hacknug
Copy link

hacknug commented Dec 13, 2024

Can't you do something like adding * { transition-durantion: 0s; } before changing the color scheme and remove it once that change is done?

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

No branches or pull requests

3 participants