remix-themes icon indicating copy to clipboard operation
remix-themes copied to clipboard

Add disableTransitionExclude config

Open abereghici opened this issue 4 months ago • 0 comments

@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

abereghici avatar Apr 13 '24 09:04 abereghici