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.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
fix: Neon Flicker: busy flicker stays below three flashes a second; typed text trimmed, no space as the broken letter, an emptied field goes back to OPEN
matin569952770912
diff --git a/animations/05-text-typography/neon-flicker/README.md b/animations/05-text-typography/neon-flicker/README.mdindex 934063f0..7bfce0fc 100644--- a/animations/05-text-typography/neon-flicker/README.md+++ b/animations/05-text-typography/neon-flicker/README.md@@ -45,7 +45,7 @@ The sign is two copies of the same letters stacked in one grid cell. The bottom| Broken letter | on | One letter a little past the middle of the word buzzes and drops out on its own cycle || Glow size | Medium | How far the light spreads: small, medium or large sets of glow layers || Frame around the word | on | Adds a rounded tube border that glows and flickers with the letters |-| Your text | OPEN | The word on the sign, up to 10 letters; it shrinks to fit the stage |+| Your text | OPEN | The word on the sign, up to 10 letters, with spaces at its ends dropped; it shrinks to fit the stage, and an emptied field goes back to OPEN |## Production notes- **Flash safety**: flicker is flashing. Keep the whole sign below three flashes in any second (the demo's busiest setting stays there) and keep large bright areas out of it; a single buzzing letter is small enough to flicker faster. Never flicker a full-screen background.diff --git a/animations/05-text-typography/neon-flicker/index.html b/animations/05-text-typography/neon-flicker/index.htmlindex 2a31d57d..28ff9966 100644--- a/animations/05-text-typography/neon-flicker/index.html+++ b/animations/05-text-typography/neon-flicker/index.html@@ -56,7 +56,7 @@57%{opacity:.1}58.5%{opacity:.85}59.5%{opacity:.15}61%{opacity:1}80%{opacity:.4}81%{opacity:1}}@keyframes flick-busy{0%{opacity:1}1.2%{opacity:.2}2.4%{opacity:1}3.6%{opacity:.08}5.5%{opacity:1}18%{opacity:.3}19.2%{opacity:1}31%{opacity:.08}33%{opacity:.6}34.2%{opacity:.1}38%{opacity:1}52%{opacity:.35}53.2%{opacity:1}64%{opacity:.15}66%{opacity:1}- 77%{opacity:.08}84%{opacity:1}92%{opacity:.3}93.2%{opacity:1}}+ 77%{opacity:.08}84%{opacity:1}85%{opacity:.3}86.2%{opacity:1}}@keyframes buzz{0%{opacity:1}1.5%{opacity:.12}3%{opacity:.9}4.5%{opacity:.1}6%{opacity:.7}7.5%{opacity:.1}21%{opacity:1}40%{opacity:.25}41.5%{opacity:1}55%{opacity:.1}56.5%{opacity:.8}58%{opacity:.15}60%{opacity:1}78%{opacity:.1}79.5%{opacity:.75}81%{opacity:.1}90%{opacity:1}}/* Reduced motion: the loop starts paused on a steady glow; pressed Play only dims it softly, with no flashes */@@ -203,7 +203,7 @@sign.setAttribute('aria-label',text);const chars=[...text];let b=Math.min(chars.length-1,Math.floor(chars.length*.6));- while(b<chars.length-1&&chars[b]===' ')b++;+ while(b<chars.length-1&&/\s/.test(chars[b]))b++;words.forEach(w=>{w.textContent='';chars.forEach((ch,i)=>{@@ -221,10 +221,14 @@const r=Math.min((stage.clientWidth-48)/sign.offsetWidth,(stage.clientHeight-48)/sign.offsetHeight);if(r<1)sign.style.fontSize=parseFloat(getComputedStyle(sign).fontSize)*r+'px';}+ // The sign shows the typed text with no spaces at its ends and single spaces inside (as its chip does), or OPEN.+ const signText=()=>txtIn.value.replace(/\s+/g,' ').trim()||'OPEN';build('OPEN');addEventListener('resize',fit);if(document.fonts)document.fonts.ready.then(fit); // the site font can still be loading when fit() first runs- txtIn.addEventListener('input',()=>build(txtIn.value.trim()?txtIn.value:'OPEN'));+ txtIn.addEventListener('input',()=>build(signText()));+ // An emptied field goes back to OPEN when it is left, so its chip and the copied prompt name what the sign shows.+ txtIn.addEventListener('change',()=>{if(!txtIn.value.trim()){txtIn.value='OPEN';txtIn.dispatchEvent(new Event('input',{bubbles:true}))}});function choices(id,pick){const buttons=document.querySelectorAll('#'+id+' button');