frakment 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/init.js +10 -6
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -140,14 +140,18 @@ export function cn(...inputs: ClassValue[]) {
|
|
|
140
140
|
await mkdir(path.join(cwd, "lib"), { recursive: true });
|
|
141
141
|
await writeFile(
|
|
142
142
|
path.join(cwd, "lib/animation.ts"),
|
|
143
|
-
`export const
|
|
143
|
+
`export const springSoft = { type: "spring", stiffness: 200, damping: 30 } as const
|
|
144
144
|
|
|
145
|
-
export const
|
|
146
|
-
export const
|
|
147
|
-
export const
|
|
145
|
+
export const easeInOut = [0.4, 0, 0.2, 1] as const
|
|
146
|
+
export const easeInOutQuad = [0.45, 0, 0.55, 1] as const
|
|
147
|
+
export const easeOutExpo = [0.16, 1, 0.3, 1] as const
|
|
148
|
+
export const easeSmoothOut = [0.32, 0.72, 0, 1] as const
|
|
148
149
|
|
|
149
|
-
export const
|
|
150
|
-
export const
|
|
150
|
+
export const durationFast = 0.2
|
|
151
|
+
export const durationNormal = 0.3
|
|
152
|
+
export const durationSlow = 0.45
|
|
153
|
+
|
|
154
|
+
export const delayTight = 0.02
|
|
151
155
|
`
|
|
152
156
|
);
|
|
153
157
|
s.succeed("Created 1 file:");
|