remix-themes
remix-themes copied to clipboard
Add disableTransitionExclude config
@abereghici Thanks for developing Remix Themes — super helpful! Because my theme switching button needs to use transition, I need to be able to whitelist some components. This can be achieved by using the :not
pseudo-class of css, just like this:
document.createTextNode(
`
*${disableTransitionExclude.map(s => `:not(${s})`).join('')} {
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
-ms-transition: none !important;
transition: none !important;
}
`,
),
Originally posted by @mancuoj in https://github.com/abereghici/remix-themes/discussions/35