glaze icon indicating copy to clipboard operation
glaze copied to clipboard

Combine presets and breakpoints

Open JoshuaCS94 opened this issue 8 months ago • 0 comments

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.

JoshuaCS94 avatar Apr 29 '25 14:04 JoshuaCS94