@editframe/create 0.40.6 → 0.41.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/dist/templates/html/package.json +3 -3
- package/dist/templates/react/package.json +3 -3
- package/package.json +1 -1
- package/dist/templates/animejs/index.html +0 -232
- package/dist/templates/animejs/package-lock.json +0 -5330
- package/dist/templates/animejs/package.json +0 -23
- package/dist/templates/animejs/postcss.config.cjs +0 -5
- package/dist/templates/animejs/src/assets/.gitkeep +0 -0
- package/dist/templates/animejs/src/assets/bars-n-tone.mp4 +0 -0
- package/dist/templates/animejs/src/assets/editframe.png +0 -0
- package/dist/templates/animejs/src/index.ts +0 -174
- package/dist/templates/animejs/src/styles.css +0 -30
- package/dist/templates/animejs/tailwind.config.cjs +0 -8
- package/dist/templates/animejs/vite.config.ts +0 -14
- package/dist/templates/card-poetry/index.html +0 -119
- package/dist/templates/card-poetry/package.json +0 -21
- package/dist/templates/card-poetry/postcss.config.cjs +0 -5
- package/dist/templates/card-poetry/src/assets/.gitkeep +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-9-spades.json +0 -362
- package/dist/templates/card-poetry/src/assets/cards/card-9-spades.mp3 +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-9-spades.png +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-joker.json +0 -326
- package/dist/templates/card-poetry/src/assets/cards/card-joker.mp3 +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-joker.png +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-king-clubs.json +0 -344
- package/dist/templates/card-poetry/src/assets/cards/card-king-clubs.mp3 +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-king-clubs.png +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-queen-spades.json +0 -338
- package/dist/templates/card-poetry/src/assets/cards/card-queen-spades.mp3 +0 -0
- package/dist/templates/card-poetry/src/assets/cards/card-queen-spades.png +0 -0
- package/dist/templates/card-poetry/src/index.js +0 -2
- package/dist/templates/card-poetry/src/keyframes.css +0 -163
- package/dist/templates/card-poetry/src/styles.css +0 -30
- package/dist/templates/card-poetry/tailwind.config.cjs +0 -8
- package/dist/templates/card-poetry/vite.config.ts +0 -14
- package/dist/templates/react-demo/index.html +0 -16
- package/dist/templates/react-demo/package.json +0 -28
- package/dist/templates/react-demo/postcss.config.cjs +0 -5
- package/dist/templates/react-demo/src/Video.tsx +0 -64
- package/dist/templates/react-demo/src/assets/.gitkeep +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-9-spades.json +0 -362
- package/dist/templates/react-demo/src/assets/cards/card-9-spades.mp3 +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-9-spades.png +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-joker.json +0 -326
- package/dist/templates/react-demo/src/assets/cards/card-joker.mp3 +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-joker.png +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-king-clubs.json +0 -344
- package/dist/templates/react-demo/src/assets/cards/card-king-clubs.mp3 +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-king-clubs.png +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-queen-spades.json +0 -338
- package/dist/templates/react-demo/src/assets/cards/card-queen-spades.mp3 +0 -0
- package/dist/templates/react-demo/src/assets/cards/card-queen-spades.png +0 -0
- package/dist/templates/react-demo/src/main.tsx +0 -12
- package/dist/templates/react-demo/src/styles.css +0 -3
- package/dist/templates/react-demo/tailwind.config.cjs +0 -8
- package/dist/templates/react-demo/tsconfig.json +0 -113
- package/dist/templates/react-demo/vite.config.ts +0 -16
- package/dist/templates/simple-demo/index.html +0 -32
- package/dist/templates/simple-demo/package.json +0 -21
- package/dist/templates/simple-demo/postcss.config.cjs +0 -5
- package/dist/templates/simple-demo/src/assets/.gitkeep +0 -0
- package/dist/templates/simple-demo/src/assets/bars-n-tone.mp4 +0 -0
- package/dist/templates/simple-demo/src/assets/editframe.png +0 -0
- package/dist/templates/simple-demo/src/index.js +0 -2
- package/dist/templates/simple-demo/src/styles.css +0 -36
- package/dist/templates/simple-demo/tailwind.config.cjs +0 -8
- package/dist/templates/simple-demo/vite.config.ts +0 -14
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "simple-demo",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "editframe preview"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@editframe/cli": "0.40.6",
|
|
15
|
-
"@editframe/elements": "0.40.6",
|
|
16
|
-
"@editframe/vite-plugin": "0.40.6",
|
|
17
|
-
"animejs": "^4.2.2",
|
|
18
|
-
"prismjs": "^1.30.0",
|
|
19
|
-
"tailwindcss": "^3.4.3",
|
|
20
|
-
"vite": "^6.3.5",
|
|
21
|
-
"vite-plugin-singlefile": "^2.0.1"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import "@editframe/elements";
|
|
2
|
-
import "@editframe/elements/styles.css";
|
|
3
|
-
import {
|
|
4
|
-
animate,
|
|
5
|
-
svg,
|
|
6
|
-
splitText,
|
|
7
|
-
stagger,
|
|
8
|
-
createTimeline,
|
|
9
|
-
waapi,
|
|
10
|
-
} from "animejs";
|
|
11
|
-
import Prism from "prismjs";
|
|
12
|
-
import "prismjs/themes/prism-tomorrow.css";
|
|
13
|
-
import "prismjs/components/prism-javascript";
|
|
14
|
-
|
|
15
|
-
// ============================================================================
|
|
16
|
-
// Section 1: Text intro animation
|
|
17
|
-
// ============================================================================
|
|
18
|
-
const { chars } = splitText("#text-intro h2", { words: false, chars: true });
|
|
19
|
-
|
|
20
|
-
const textAnimation = animate(chars, {
|
|
21
|
-
y: [
|
|
22
|
-
{ to: "-2.75rem", ease: "outExpo", duration: 600 },
|
|
23
|
-
{ to: 0, ease: "outBounce", duration: 800, delay: 100 },
|
|
24
|
-
],
|
|
25
|
-
rotate: {
|
|
26
|
-
from: "-1turn",
|
|
27
|
-
delay: 0,
|
|
28
|
-
},
|
|
29
|
-
delay: stagger(50),
|
|
30
|
-
ease: "inOutCirc",
|
|
31
|
-
autoplay: false,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const textIntroTimegroup = document.querySelector("#text-intro")!;
|
|
35
|
-
textIntroTimegroup.addFrameTask(({ ownCurrentTimeMs }) => {
|
|
36
|
-
textAnimation.currentTime = ownCurrentTimeMs;
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// ============================================================================
|
|
40
|
-
// Section 2: Timeline animation with pyramid shapes
|
|
41
|
-
// ============================================================================
|
|
42
|
-
const timeline = createTimeline({
|
|
43
|
-
defaults: { duration: 750 },
|
|
44
|
-
autoplay: false,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
timeline
|
|
48
|
-
.label("start")
|
|
49
|
-
.add(".square", { x: "15rem" }, 500)
|
|
50
|
-
.add(".circle", { x: "15rem" }, "start")
|
|
51
|
-
.add(".triangle", { x: "15rem", rotate: "1turn" }, "<-=500");
|
|
52
|
-
|
|
53
|
-
const pyramidTimegroup = document.querySelector("#pyramid")!;
|
|
54
|
-
pyramidTimegroup.addFrameTask(({ ownCurrentTimeMs }) => {
|
|
55
|
-
timeline.currentTime = ownCurrentTimeMs;
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// ============================================================================
|
|
59
|
-
// Section 3: WAAPI animation
|
|
60
|
-
// ============================================================================
|
|
61
|
-
const { chars: waapiChars } = splitText("#waapi-demo h2", {
|
|
62
|
-
words: false,
|
|
63
|
-
chars: true,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
const waapiAnimation = waapi.animate(waapiChars, {
|
|
67
|
-
translate: `0 -2rem`,
|
|
68
|
-
delay: stagger(100),
|
|
69
|
-
duration: 600,
|
|
70
|
-
alternate: true,
|
|
71
|
-
loop: true,
|
|
72
|
-
ease: "inOut(2)",
|
|
73
|
-
autoplay: false,
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const waapiTimegroup = document.querySelector("#waapi-demo")!;
|
|
77
|
-
waapiTimegroup.addFrameTask(({ ownCurrentTimeMs }) => {
|
|
78
|
-
waapiAnimation.currentTime = ownCurrentTimeMs;
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
// ============================================================================
|
|
82
|
-
// Section 4: Motion path and line drawing animations
|
|
83
|
-
// ============================================================================
|
|
84
|
-
const carAnimation = animate(".car", {
|
|
85
|
-
ease: "linear",
|
|
86
|
-
duration: 5000,
|
|
87
|
-
autoplay: false,
|
|
88
|
-
...svg.createMotionPath("#suzuka"),
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
const lineAnimation = animate(svg.createDrawable("#suzuka"), {
|
|
92
|
-
draw: "0 1",
|
|
93
|
-
ease: "linear",
|
|
94
|
-
duration: 5000,
|
|
95
|
-
autoplay: false,
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
const racetrackTimegroup = document.querySelector("#racetrack")!;
|
|
99
|
-
racetrackTimegroup.addFrameTask(({ ownCurrentTimeMs }) => {
|
|
100
|
-
carAnimation.currentTime = ownCurrentTimeMs;
|
|
101
|
-
lineAnimation.currentTime = ownCurrentTimeMs;
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
// ============================================================================
|
|
105
|
-
// Transitions timeline controlling all section slide animations
|
|
106
|
-
// ============================================================================
|
|
107
|
-
const transitionsTimeline = createTimeline({
|
|
108
|
-
autoplay: false,
|
|
109
|
-
defaults: {
|
|
110
|
-
ease: "linear",
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
// Add all transitions to the timeline with proper timing
|
|
115
|
-
// text-intro: starts at 0, stays until 2750ms, slides out
|
|
116
|
-
transitionsTimeline
|
|
117
|
-
.add(
|
|
118
|
-
"#text-intro",
|
|
119
|
-
{
|
|
120
|
-
keyframes: [
|
|
121
|
-
{ x: "0%", duration: 2750 },
|
|
122
|
-
{ x: "-100%", duration: 250 },
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
0,
|
|
126
|
-
)
|
|
127
|
-
// pyramid: starts at 2500ms (0.5s overlap), slides in, stays, slides out
|
|
128
|
-
.add(
|
|
129
|
-
"#pyramid",
|
|
130
|
-
{
|
|
131
|
-
keyframes: [
|
|
132
|
-
{ x: "100%", duration: 0 },
|
|
133
|
-
{ x: "0%", duration: 250 },
|
|
134
|
-
{ x: "0%", duration: 2500 },
|
|
135
|
-
{ x: "-100%", duration: 250 },
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
2500,
|
|
139
|
-
)
|
|
140
|
-
// waapi-demo: starts at 5000ms, slides in, stays, slides out
|
|
141
|
-
.add(
|
|
142
|
-
"#waapi-demo",
|
|
143
|
-
{
|
|
144
|
-
keyframes: [
|
|
145
|
-
{ x: "100%", duration: 0 },
|
|
146
|
-
{ x: "0%", duration: 250 },
|
|
147
|
-
{ x: "0%", duration: 2500 },
|
|
148
|
-
{ x: "-100%", duration: 250 },
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
5000,
|
|
152
|
-
)
|
|
153
|
-
// racetrack: starts at 7500ms, slides in, stays
|
|
154
|
-
.add(
|
|
155
|
-
"#racetrack",
|
|
156
|
-
{
|
|
157
|
-
keyframes: [
|
|
158
|
-
{ x: "100%", duration: 0 },
|
|
159
|
-
{ x: "0%", duration: 250 },
|
|
160
|
-
{ x: "0%", duration: 5750 },
|
|
161
|
-
],
|
|
162
|
-
},
|
|
163
|
-
7500,
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
const rootTimegroup = document.querySelector('ef-timegroup[mode="sequence"]')!;
|
|
167
|
-
rootTimegroup.addFrameTask(({ currentTimeMs }) => {
|
|
168
|
-
transitionsTimeline.currentTime = currentTimeMs;
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
// ============================================================================
|
|
172
|
-
// Highlight all code snippets with Prism
|
|
173
|
-
// ============================================================================
|
|
174
|
-
Prism.highlightAll();
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@keyframes slide-up {
|
|
6
|
-
from {
|
|
7
|
-
transform: translateY(100%);
|
|
8
|
-
}
|
|
9
|
-
to {
|
|
10
|
-
transform: translateY(0);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@keyframes fade-in {
|
|
15
|
-
from {
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
to {
|
|
19
|
-
opacity: 1;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes spin {
|
|
24
|
-
from {
|
|
25
|
-
transform: rotate(0deg);
|
|
26
|
-
}
|
|
27
|
-
to {
|
|
28
|
-
transform: rotate(360deg);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { vitePluginEditframe } from "@editframe/vite-plugin";
|
|
3
|
-
import { defineConfig } from "vite";
|
|
4
|
-
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
8
|
-
vitePluginEditframe({
|
|
9
|
-
root: path.join(__dirname, "src"),
|
|
10
|
-
cacheRoot: path.join(__dirname, "src", "assets"),
|
|
11
|
-
}),
|
|
12
|
-
viteSingleFile(),
|
|
13
|
-
],
|
|
14
|
-
});
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<script type="module" src="./src/index.js"></script>
|
|
6
|
-
<link rel="stylesheet" href="./src/styles.css" />
|
|
7
|
-
<link rel="stylesheet" href="./src/keyframes.css" />
|
|
8
|
-
<meta name="version" content="169" />
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<ef-timegroup
|
|
12
|
-
workbench
|
|
13
|
-
mode="sequence"
|
|
14
|
-
class="h-[500px] w-[500px] overflow-scroll bg-slate-400"
|
|
15
|
-
>
|
|
16
|
-
<ef-timegroup
|
|
17
|
-
mode="contain"
|
|
18
|
-
class="absolute"
|
|
19
|
-
style="
|
|
20
|
-
animation:
|
|
21
|
-
fadein 1250ms backwards,
|
|
22
|
-
fadeout 500ms calc(var(--ef-duration) - 500ms) forwards;
|
|
23
|
-
"
|
|
24
|
-
>
|
|
25
|
-
<ef-audio
|
|
26
|
-
id="nine-spades-poem"
|
|
27
|
-
src="/assets/cards/card-9-spades.mp3"
|
|
28
|
-
></ef-audio>
|
|
29
|
-
<div
|
|
30
|
-
class="absolute z-10 flex h-full w-full flex-col items-center justify-center"
|
|
31
|
-
>
|
|
32
|
-
<h1
|
|
33
|
-
class="mb-3 inline-block font-serif text-7xl font-extralight underline"
|
|
34
|
-
style="animation: 1s slide-in-left ease-out"
|
|
35
|
-
>
|
|
36
|
-
9 of Spades
|
|
37
|
-
</h1>
|
|
38
|
-
<ef-image
|
|
39
|
-
class="w-1/4"
|
|
40
|
-
src="/assets/cards/card-9-spades.png"
|
|
41
|
-
style="
|
|
42
|
-
animation-composition: add;
|
|
43
|
-
animation:
|
|
44
|
-
4s rotate 4s,
|
|
45
|
-
1s slide-in-left 0.25s ease-out backwards;
|
|
46
|
-
"
|
|
47
|
-
></ef-image>
|
|
48
|
-
<ef-waveform
|
|
49
|
-
class="h-4 w-1/2 self-center"
|
|
50
|
-
target="nine-spades-poem"
|
|
51
|
-
></ef-waveform>
|
|
52
|
-
<ef-captions
|
|
53
|
-
class="h-24 p-2 text-center text-4xl"
|
|
54
|
-
target="nine-spades-poem"
|
|
55
|
-
><ef-captions-active-word
|
|
56
|
-
style="
|
|
57
|
-
animation: 0.1s bounce-in ease-out forwards;
|
|
58
|
-
animation-play-state: paused;
|
|
59
|
-
"
|
|
60
|
-
></ef-captions-active-word
|
|
61
|
-
></ef-captions>
|
|
62
|
-
</div>
|
|
63
|
-
<ef-image
|
|
64
|
-
class="absolute z-0 h-full opacity-20 blur-md"
|
|
65
|
-
src="/assets/cards/card-9-spades.png"
|
|
66
|
-
style="animation: 1.25s slide-in-left 0.25s ease-out backwards"
|
|
67
|
-
></ef-image>
|
|
68
|
-
</ef-timegroup>
|
|
69
|
-
<ef-timegroup
|
|
70
|
-
mode="contain"
|
|
71
|
-
class="absolute"
|
|
72
|
-
style="
|
|
73
|
-
animation:
|
|
74
|
-
fadein 1250ms backwards,
|
|
75
|
-
fadeout 500ms calc(var(--ef-duration) - 500ms) forwards;
|
|
76
|
-
"
|
|
77
|
-
>
|
|
78
|
-
<ef-audio id="joker-poem" src="/assets/cards/card-joker.mp3"></ef-audio>
|
|
79
|
-
<div
|
|
80
|
-
class="absolute z-10 flex h-full w-full flex-col items-center justify-center"
|
|
81
|
-
>
|
|
82
|
-
<h1
|
|
83
|
-
class="mb-3 inline-block font-serif text-7xl font-extralight underline"
|
|
84
|
-
style="animation: 1s slide-in-left ease-out"
|
|
85
|
-
>
|
|
86
|
-
The Joker
|
|
87
|
-
</h1>
|
|
88
|
-
<ef-image
|
|
89
|
-
class="w-1/4"
|
|
90
|
-
src="/assets/cards/card-joker.png"
|
|
91
|
-
style="
|
|
92
|
-
animation-composition: add;
|
|
93
|
-
animation:
|
|
94
|
-
4s rotate 4s,
|
|
95
|
-
1s slide-in-left 0.25s ease-out backwards;
|
|
96
|
-
"
|
|
97
|
-
></ef-image>
|
|
98
|
-
<ef-waveform
|
|
99
|
-
class="h-4 w-1/2 self-center"
|
|
100
|
-
target="joker-poem"
|
|
101
|
-
></ef-waveform>
|
|
102
|
-
<ef-captions class="h-24 p-2 text-center text-4xl" target="joker-poem"
|
|
103
|
-
><ef-captions-active-word
|
|
104
|
-
style="
|
|
105
|
-
animation: 0.1s bounce-in ease-out forwards;
|
|
106
|
-
animation-play-state: paused;
|
|
107
|
-
"
|
|
108
|
-
></ef-captions-active-word
|
|
109
|
-
></ef-captions>
|
|
110
|
-
</div>
|
|
111
|
-
<ef-image
|
|
112
|
-
class="absolute z-0 h-full opacity-20 blur-md"
|
|
113
|
-
src="/assets/cards/card-joker.png"
|
|
114
|
-
style="animation: 1.25s slide-in-left 0.25s ease-out backwards"
|
|
115
|
-
></ef-image>
|
|
116
|
-
</ef-timegroup>
|
|
117
|
-
</ef-timegroup>
|
|
118
|
-
</body>
|
|
119
|
-
</html>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "card-demo",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start": "editframe preview"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@editframe/cli": "0.40.6",
|
|
15
|
-
"@editframe/elements": "0.40.6",
|
|
16
|
-
"@editframe/vite-plugin": "0.40.6",
|
|
17
|
-
"tailwindcss": "^3.4.3",
|
|
18
|
-
"vite": "^6.3.5",
|
|
19
|
-
"vite-plugin-singlefile": "^2.0.1"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
File without changes
|