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: Dynamic Island: Compare's Appears at once copy rings and plays like the real island while it is open

matina35d9cc21c8a
diff --git a/animations/04-micro-interactions/dynamic-island/index.html b/animations/04-micro-interactions/dynamic-island/index.html
index 9515eac7..d4bafb6c 100644
--- a/animations/04-micro-interactions/dynamic-island/index.html
+++ b/animations/04-micro-interactions/dynamic-island/index.html
@@ -394,7 +394,7 @@
function mirror(){
if(mode!=='compare')return;
const on=open||posed,g=SIZE[on?note:'rest'];
- tIsl.classList.toggle('on',on);tIsl.dataset.n=note;
+ tIsl.classList.toggle('on',on);tIsl.classList.toggle('open',open);tIsl.dataset.n=note;
['--hw','--h','--r'].forEach((v,i)=>tIsl.style.setProperty(v,g[i]));
tTm.innerHTML=open?tm.innerHTML:TM0;
}