99---
1010orientation: horizontal
1111---
12- :: code-group
13- ::hero-animation{label="Preview"}
14- ::
15- ```html [Template]
16- <div class="boxes grid grid-cols-5 place-items-center gap-2.5">
17- <div class="box size-8 rounded-md bg-white/40" v-for="i in 20" :key="i" />
12+ :: tabs
13+ :::tabs-item{icon="i-lucide-eye" label="Preview"}
14+ ::hero-animation
15+ ::
16+ :::
17+
18+ :::tabs-item{icon="i-lucide-code" label="Template"}
19+ ```html
20+ <div class="boxes grid grid-cols-10 place-items-center gap-0.5 absolute inset-0 p-5">
21+ <div v-for="i in 40" :key="i" class="box size-9 rounded-sm bg-white/40 aspect-square" />
1822 </div>
1923 ```
20- ```ts [Script]
21- import { useAnimate } from '#imports';
22- import { stagger } from "#nanime/utils";
2324
24- useAnimate(".boxes > .box", {
25- y: {
26- to: '-80%',
27- ease: 'outBack',
28- duration: 600,
29- },
30- rotate: {
31- from: '-1turn',
32- delay: 0
33- },
34- scale: [1, 1.1, 0.8, 1],
35- delay: stagger(50),
36- ease: 'inOutCirc',
37- loopDelay: 1000,
38- loop: true,
39- alternate: true,
40- });
25+ :::
26+
27+ :::tabs-item{icon="i-lucide-file-code" label="Script"}
28+ ```ts
29+ import { stagger } from '#nanime/utils'
30+
31+ useAnimate('.boxes > .box', {
32+ scale: [
33+ { to: [0, 1.25] },
34+ { to: 0 }
35+ ],
36+ boxShadow: [
37+ { to: '0 0 1rem 0 currentColor' },
38+ { to: '0 0 0rem 0 currentColor' }
39+ ],
40+ delay: stagger(100, {
41+ grid: [10, 4],
42+ from: 'center',
43+ }),
44+ })
4145 ```
46+ :::
4247 ::
4348
4449#title
4550Effortless animations with [ AnimeJS] {.text-primary}
4651
4752#description
48- Build SSR Safe animations for Nuxt without having to worry about targets, hooks and component lifecycle.
53+ Create SSR Safe animations for Nuxt without having to worry about targets and component lifecycle.
4954
5055#links
5156 ::: u-button
@@ -96,7 +101,7 @@ Shipped with many features
96101
97102 ::: u-page-card
98103 ---
99- icon: i-simple-icons-nuxt
104+ icon: i-tabler-server-cog
100105 spotlight: true
101106 target: _ blank
102107 to: https://nuxt.com
@@ -105,12 +110,12 @@ Shipped with many features
105110 [ SSR] {.text-primary} safe
106111
107112 #description
108- Using composables doesn't break ssr nor cause hydration issues
113+ Composables doesn't break ssr nor cause hydration issues
109114 :::
110115
111116 ::: u-page-card
112117 ---
113- icon: i-simple-icons-nuxt
118+ icon: i-tabler-settings-bolt
114119 spotlight: true
115120 target: _ blank
116121 to: https://nuxt.com/docs/guide/directory-structure/app-config
0 commit comments