glaze
glaze copied to clipboard
Combine presets and breakpoints
Is it possible to apply a preset at some breakpoint? I have both the breakpoint and preset defined:
glaze({
lib: { gsap: { core: gsap } },
breakpoints: {
sm: '(width >= 40rem)',
md: '(width >= 48rem)',
},
presets: {
helicopter: 'from:rotate-2160|duration-5',
},
});
I've tried every possible combination:
data-animate="@md:preset-helicopter"
data-animate="preset-@md:helicopter"
class="@md:animate-preset-helicopter"
class="animate-@md:preset-helicopter"
class="animate-preset-@md:helicopter"
but none of them work.