Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

chore: the orbit cube's rule keeps one comment

matin44d5a41a5d7e
diff --git a/index.html b/index.html
index 39246829..e021ec37 100644
--- a/index.html
+++ b/index.html
@@ -920,9 +920,9 @@ button,input{font:inherit;color:inherit}
@keyframes t-hand{0%,6%{stroke-dashoffset:1;opacity:1}62%,86%{stroke-dashoffset:0;opacity:1}96%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
/* ── bespoke: 06 3D & Advanced ── */
-/* the cube's half side --h: 30px, smaller on a small card, and the cube a little low, so it turns clear of the place label (1cqh is 1% of the stage's height) */
+/* the cube's half side --h: 30px, smaller on a small card, and the cube a little low, so it turns clear of the place label (1cqh is 1% of the stage's height; closest at 601px, three cards across) */
.pv-orbit3d{background:#05080a;display:grid;place-items:center;perspective:460px;container-type:size}
-.pv-orbit3d .cube{--h:min(30px,16cqh);position:relative;top:9cqh;width:calc(var(--h) * 2);height:calc(var(--h) * 2);transform-style:preserve-3d;animation:d-orbit 7s linear infinite} /* sized to the stage and set low enough that its top corner clears the place label at every width (closest at 601px) */
+.pv-orbit3d .cube{--h:min(30px,16cqh);position:relative;top:9cqh;width:calc(var(--h) * 2);height:calc(var(--h) * 2);transform-style:preserve-3d;animation:d-orbit 7s linear infinite}
.pv-orbit3d .face{position:absolute;inset:0;background:color-mix(in srgb,var(--accent) 26%,#0a1412);border:1px solid color-mix(in srgb,var(--accent) 60%,transparent)}
.pv-orbit3d .f1{transform:translateZ(var(--h))}.pv-orbit3d .f2{transform:rotateY(180deg) translateZ(var(--h))}.pv-orbit3d .f3{transform:rotateY(90deg) translateZ(var(--h))}.pv-orbit3d .f4{transform:rotateY(-90deg) translateZ(var(--h))}.pv-orbit3d .f5{transform:rotateX(90deg) translateZ(var(--h))}.pv-orbit3d .f6{transform:rotateX(-90deg) translateZ(var(--h))}
@keyframes d-orbit{0%{transform:rotateX(-25deg) rotateY(0)}100%{transform:rotateX(-25deg) rotateY(360deg)}}