Skip to content

Commit 841926d

Browse files
committed
build
1 parent cc547b6 commit 841926d

23 files changed

+8151
-18206
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# keyframes.js
22

3-
Tiny TypeScript animation library. Kinda like gsap but worse :^D.
3+
TypeScript animation library for creating keyframe animations for **anything**.
44

55
## Usage
66

demo/amiga/App.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const tesselateSphere = (color1, color2, radius) => {
5959
6060
uvs.push(u, v);
6161
}
62+
6263
geometry.setAttribute("uv", new THREE.Float32BufferAttribute(uvs, 2));
6364
6465
return mesh;
@@ -104,7 +105,7 @@ const rotations = new CSSKeyframesAnimation({
104105
timing-function: cubic-bezier(0.2, 0.65, 0.6, 1);
105106
}
106107
}`,
107-
transform
108+
transform,
108109
);
109110
110111
const bouncingX = new CSSKeyframesAnimation({
@@ -126,7 +127,7 @@ const bouncingX = new CSSKeyframesAnimation({
126127
};
127128
}
128129
}`,
129-
transform
130+
transform,
130131
);
131132
132133
const bouncingY = new CSSKeyframesAnimation({
@@ -148,7 +149,7 @@ const bouncingY = new CSSKeyframesAnimation({
148149
},
149150
},
150151
],
151-
transform
152+
transform,
152153
);
153154
154155
const bouncingZ = new CSSKeyframesAnimation({
@@ -170,7 +171,7 @@ const bouncingZ = new CSSKeyframesAnimation({
170171
};
171172
}
172173
}`,
173-
transform
174+
transform,
174175
);
175176
176177
const animations = $ref({
@@ -188,14 +189,14 @@ onMounted(() => {
188189
75,
189190
canvas.clientWidth / canvas.clientHeight,
190191
0.1,
191-
1000
192+
1000,
192193
);
193194
194195
camera.position.z = boxSize;
195196
camera.position.y = boxSize / 3;
196197
const renderer = new THREE.WebGLRenderer({ antialias: true, canvas: canvas });
197198
renderer.setPixelRatio(window.devicePixelRatio * 2);
198-
renderer.setClearColor(0xffffff, 1);
199+
renderer.setClearColor("white", 1);
199200
200201
const light = new THREE.SpotLight("white", 0.75, 0, Math.PI / 2, 1);
201202
light.position.set(0, boxSize - 1, boxSize / 2);

0 commit comments

Comments
 (0)