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.

fix: Rotate In: See inside's label search tries smaller pictures on narrow phones, so the labels never stack over the arc

matin150f41a1c9f7
diff --git a/animations/02-entrance-and-exit/rotate-in/index.html b/animations/02-entrance-and-exit/rotate-in/index.html
index c8bc9e08..377d25dd 100644
--- a/animations/02-entrance-and-exit/rotate-in/index.html
+++ b/animations/02-entrance-and-exit/rotate-in/index.html
@@ -366,7 +366,7 @@
let g=null,at=null,wrapped=false;
search:for(wrapped of [false,true]){
const sizes=measureCaps(wrapped,W);
- for(let S=150;S>=64;S-=4){
+ for(let S=150;S>=(wrapped?40:64);S-=4){
g=marks(S,W,H,top);
if(g.cy-g.Rr<PAD||g.cy+g.Rr>H-PAD||g.cx-g.Rr<PAD||g.cx+g.Rr>W-PAD)continue;
if(at=spots(W,H,sizes,g))break search;