import { presetVinicunca } from '@vinicunca/unocss-preset';
import { defineConfig } from 'unocss';
export default defineConfig({
presets: [
presetVinicunca({
magicCss: true,
}),
],
});
Then you can use the animation classes in your HTML:
<div class="animate-magic">Magic Animation</div>
<div class="animate-puff-in">Puff In</div>
<div class="animate-vanish-out">Vanish Out</div>
puff-in / puff-outvanish-in / vanish-outboing-in-up / boing-out-downbomb-left-out / bomb-right-outmagicswaptwister-in-down / twister-in-upfoolish-in / foolish-outhole-outswash-in / swash-outspace-in-down / space-in-left / space-in-right / space-in-upspace-out-down / space-out-left / space-out-right / space-out-upperspective-down / perspective-down-returnperspective-left / perspective-left-returnperspective-right / perspective-right-returnperspective-up / perspective-up-returnrotate-down / rotate-left / rotate-right / rotate-upslide-down / slide-down-return / slide-left / slide-left-return / slide-right / slide-right-return / slide-up / slide-up-returntin-down-in / tin-down-out / tin-left-in / tin-left-out / tin-right-in / tin-right-out / tin-up-in / tin-up-outopen-down-left / open-down-left-out / open-down-left-returnopen-down-right / open-down-right-out / open-down-right-returnopen-up-left / open-up-left-out / open-up-left-returnopen-up-right / open-up-right-out / open-up-right-returnWork in progress...