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: trigger the Outline to Fill wipe without requestAnimationFrame

matin7f609782e695
diff --git a/animations/05-text-typography/outline-to-fill/index.html b/animations/05-text-typography/outline-to-fill/index.html
index 00719996..9868a3ae 100644
--- a/animations/05-text-typography/outline-to-fill/index.html
+++ b/animations/05-text-typography/outline-to-fill/index.html
@@ -277,10 +277,8 @@
function cycle(){
apply();
reset();
- requestAnimationFrame(()=>requestAnimationFrame(()=>{
- fillLayer.classList.add('filled');
- strokeWrap.classList.add('filled');
- }));
+ fillLayer.classList.add('filled');
+ strokeWrap.classList.add('filled');
if(!loopTog.checked||!motionOk)return;
later(()=>{
if(!loopTog.checked)return;