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.

feat: move Fade In / Fade Out to the guided-steps page

matin4d100c2f19e2
diff --git a/animations/02-entrance-and-exit/fade-in-out/README.md b/animations/02-entrance-and-exit/fade-in-out/README.md
index f09b602d..9a638588 100644
--- a/animations/02-entrance-and-exit/fade-in-out/README.md
+++ b/animations/02-entrance-and-exit/fade-in-out/README.md
@@ -34,10 +34,8 @@ card.classList.add('in');
| Parameter | Default | Effect |
|-----------|---------|--------|
-| Duration | 600ms | Under 150ms barely registers; over a second feels slow for interface elements |
-| Easing | Ease out | Starts fast and settles gently, the natural feel for an entrance |
-| Hold time | 0.8s | How long the element stays visible before Auto-loop fades it out again |
-| Auto-loop | off | Repeats in, hold and out so you can watch it again |
+| Speed | Normal | How long the fade takes: slow is 1000ms, normal 600ms and fast 350ms; under 150ms a fade barely registers |
+| Feel | Smooth | Smooth starts quickly and settles gently, the natural feel for an entrance; Gentle eases in and out; Even keeps one steady pace |
## Production notes
- **Animate `opacity`, nothing else.** It is compositor-only, so a fade holds 60fps even on low-end mobile. Fading `visibility` or `display` instead does not animate at all — those are discrete properties.
@@ -46,7 +44,7 @@ card.classList.add('in');
- **Library equivalents:** GSAP `gsap.to(el, { opacity: 1 })` or the `.fromTo()` form; Framer Motion `animate={{ opacity: 1 }}` with `AnimatePresence` for exit fades; Motion One `animate(el, { opacity: [0, 1] })`.
## See also
-- [Slide In](../slide-in/) — add directional travel to the fade
-- [Scale In / Zoom In](../scale-in/) — pair a fade with a scale for a physical arrival
-- [Blur In](../blur-in/) — fade combined with a focus pull
-- [Clip-Path Reveal](../clip-path-reveal/) — reveal without changing opacity at all
+- [Slide In](../slide-in/) — travels in from one edge as it fades
+- [Scale In / Zoom In](../scale-in/) — grows from smaller to full size
+- [Blur In](../blur-in/) — sharpens from a blur as it fades in
+- [Clip-Path Reveal](../clip-path-reveal/) — a shape uncovers it, with no fade
diff --git a/animations/02-entrance-and-exit/fade-in-out/index.html b/animations/02-entrance-and-exit/fade-in-out/index.html
index 221ad80c..b650d7c8 100644
--- a/animations/02-entrance-and-exit/fade-in-out/index.html
+++ b/animations/02-entrance-and-exit/fade-in-out/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fade In / Fade Out — Animation Handbook</title>
- <meta name="description" content="Opacity 0 → 1 enter, 1 → 0 exit. The compositor handles this without re-painting.">
+ <meta name="description" content="Fades in to appear and fades out to leave. Best for pop-ups and tooltips.">
<link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/">
<link rel="icon" type="image/png" sizes="96x96" href="../../../favicon.png">
<link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
@@ -12,23 +12,18 @@
<meta property="og:type" content="article">
<meta property="og:site_name" content="Animation Handbook">
<meta property="og:title" content="Fade In / Fade Out — Animation Handbook">
- <meta property="og:description" content="Opacity 0 → 1 enter, 1 → 0 exit. The compositor handles this without re-painting.">
+ <meta property="og:description" content="Fades in to appear and fades out to leave. Best for pop-ups and tooltips.">
<meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/">
<meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Fade In / Fade Out — Animation Handbook">
- <meta name="twitter:description" content="Opacity 0 → 1 enter, 1 → 0 exit. The compositor handles this without re-painting.">
+ <meta name="twitter:description" content="Fades in to appear and fades out to leave. Best for pop-ups and tooltips.">
<meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
- <script type="application/ld+json">{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Fade In / Fade Out", "name": "Fade In / Fade Out", "description": "Opacity 0 → 1 enter, 1 → 0 exit. The compositor handles this without re-painting.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/", "inLanguage": "en", "articleSection": "Entrance & Exit", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Entrance & Exit, Fade In / Fade Out"}</script>
+ <script type="application/ld+json">{"@context": "https://schema.org", "@type": "TechArticle", "headline": "Fade In / Fade Out", "name": "Fade In / Fade Out", "description": "Fades in to appear and fades out to leave. Best for pop-ups and tooltips.", "url": "https://matinmonshizadeh.github.io/animation-handbook/animations/02-entrance-and-exit/fade-in-out/", "inLanguage": "en", "articleSection": "Entrance & Exit", "isPartOf": {"@type": "WebSite", "name": "Animation Handbook", "url": "https://matinmonshizadeh.github.io/animation-handbook/"}, "author": {"@type": "Person", "name": "matinmonshizadeh"}, "keywords": "web animation, CSS animation, Entrance & Exit, Fade In / Fade Out"}</script>
<style>
- :root{--bg:#0b0b0d;--ui-bg:#111114;--ui-border:rgba(255,255,255,.09);--ui-accent:#5fd88a;--ui-text:#f4f4f2;--ui-muted:#77777e;--stage-h:620px;--dur:600ms;--ease:ease-out}
+ :root{--ui-accent:#5fd88a;--ui-muted:#77777e;--dur:600ms;--ease:ease-out}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
- body{background:var(--bg);color:var(--ui-text);font-family:var(--mono);-webkit-font-smoothing:antialiased;padding:clamp(12px,3vw,24px)}
- header{margin-bottom:20px}
- header h1{font-size:clamp(11px,1.8vw,15px);font-family:var(--disp);font-weight:700;letter-spacing:-.01em}
- header p{font-size:clamp(10px,1.2vw,12px);color:var(--ui-muted);margin-top:4px}
- .layout{display:flex;gap:clamp(12px,2vw,24px);align-items:flex-start}
- .stage{flex:1;min-width:0;height:var(--stage-h);border:1px solid var(--ui-border);border-radius:8px;background:var(--bg);display:flex;align-items:center;justify-content:center;overflow:hidden}
+ .stage{display:flex;align-items:center;justify-content:center;background:#0b0b0d}
.card{font-family:monospace;background:#161b22;border:1px solid #30363d;border-radius:12px;padding:clamp(28px,5vw,48px);text-align:center;max-width:320px;
opacity:0;transition:opacity var(--dur) var(--ease);will-change:opacity}
.card.in{opacity:1}
@@ -36,127 +31,150 @@
.card-title{font-size:clamp(17px,2.5vw,22px);font-weight:bold;margin-bottom:8px}
.card-sub{font-size:11px;color:var(--ui-muted);line-height:1.65}
@media(prefers-reduced-motion:reduce){.card{transition:opacity 300ms linear!important}}
- aside{width:clamp(200px,22vw,240px);flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-border);border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}
- .note{font-size:10px;color:var(--ui-muted);line-height:1.6;border-left:2px solid var(--ui-accent);padding-left:8px}
- .lbl{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--ui-accent)}
- .kv{display:flex;justify-content:space-between;font-size:10px;color:var(--ui-muted)}
- .kv .v{color:var(--ui-text)}
- .div{height:1px;background:var(--ui-border)}
- .sr{display:flex;align-items:center;gap:6px;font-size:10px}
- .sr input[type=range]{flex:1;accent-color:var(--ui-accent);min-height:44px}
- .sv{width:38px;text-align:right;color:var(--ui-text)}
- select{background:var(--ui-bg);border:1px solid var(--ui-border);color:var(--ui-text);font-family:var(--mono);font-size:10px;padding:8px 6px;border-radius:4px;width:100%;min-height:44px}
- .tog{display:flex;align-items:center;gap:8px;font-size:10px;cursor:pointer;min-height:44px}
- .tog input{accent-color:var(--ui-accent);width:16px;height:16px;flex-shrink:0}
- .btn-row{display:flex;gap:6px}
- button.act{flex:1;background:transparent;border:1px solid var(--ui-border);color:var(--ui-text);font-family:var(--mono);font-size:10px;padding:14px 6px;border-radius:4px;cursor:pointer;min-height:44px}
- button.act.pri{border-color:var(--ui-accent);color:var(--ui-accent)}
- @media(hover:hover){button.act:hover{border-color:var(--ui-accent);color:var(--ui-accent)}}
- @media(max-width:600px){.layout{flex-direction:column;align-items:stretch}.stage{flex:0 0 auto}aside{width:100%}:root{--stage-h:480px}}
</style>
-<link rel="stylesheet" href="../../../assets/css/handbook.css">
-<script src="../../../assets/js/handbook.js" defer></script>
+ <link rel="stylesheet" href="../../../assets/css/demo-page.css">
+ <script src="../../../assets/js/demo-page.js" defer></script>
</head>
-<body class="hb" data-hb-autoplay>
-<nav class="hb-bar" aria-label="Animation Handbook"><a class="hb-home" href="../../../">← <span>Animation Handbook</span></a><span class="hb-pager"><a href="../slide-in/" rel="next" aria-label="Next: Slide In"><span class="hb-name">Slide In</span> ›</a></span></nav>
-<main class="hb-view">
- <div class="stage">
- <div class="card" id="card">
- <div class="card-icon">◈</div>
- <div class="card-title">Opacity Transition</div>
- <div class="card-sub">The compositor handles opacity without re-painting. It is the most performant property to animate.</div>
+<body class="hb" data-hb-kind="once" data-hb-autoplay>
+<nav class="hb-bar" aria-label="Animation Handbook">
+ <a class="hb-home" href="../../../"><svg class="hb-mark" viewBox="0 0 32 32" aria-hidden="true"><g class="g"><circle cx="11.16" cy="20.84" r="6.1"/><circle cx="15.12" cy="16.88" r="6.1"/><circle cx="18.51" cy="13.49" r="6.1"/></g><circle class="b" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
+ <span class="hb-pager"><a href="../slide-in/" rel="next" aria-label="Next: Slide In"><span><span class="hb-dir">Next: </span>Slide In</span><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></span>
+</nav>
+<main class="hb-page">
+ <header class="hb-head">
+ <p class="hb-cat">02.01 · Entrance &amp; Exit</p>
+ <h1>Fade In / Fade Out</h1>
+ <p class="hb-lede">Fades in to appear and fades out to leave. Best for pop-ups and tooltips.</p>
+ </header>
+
+ <section class="hb-step hb-watch" aria-labelledby="hb-watch-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">1</span>
+ <div><h2 id="hb-watch-title">Watch it</h2><p>It plays by itself. Turn on slow motion to see each part of the movement.</p></div>
+ </div>
+ <div class="stage hb-dots">
+ <div class="card" id="card">
+ <div class="card-icon">◈</div>
+ <div class="card-title">Fade In</div>
+ <div class="card-sub">Nothing moves or changes size; it only goes from see-through to solid.</div>
+ </div>
+ </div>
+ <div class="hb-player">
+ <button class="hb-play" type="button" id="btn-play" data-hb-replay><svg class="hb-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg>Replay</button>
+ <label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="loop-tog" data-hb-loop><span>Loop</span></label>
+ <label class="hb-toggle"><input class="hb-switch" type="checkbox" role="switch" id="slow-tog" data-hb-slowmo><span>Slow motion</span></label>
</div>
- </div>
- <aside class="hb-side">
- <header class="hb-head">
- <p class="hb-cat">02.01 · Entrance &amp; Exit</p>
- <h1>Fade In / Fade Out</h1>
- <p class="hb-lede">Goes from invisible to visible to enter, and back again to leave.</p>
- </header>
- <section class="hb-settings" aria-label="Settings">
- <h2 class="hb-label">Settings</h2>
- <div class="lbl">State</div>
- <div class="kv"><span>Status</span><span class="v" id="st">hidden</span></div>
- <div class="kv"><span>Opacity</span><span class="v" id="op">0.00</span></div>
- <div class="div"></div>
- <div><div class="lbl" id="dur-lbl">Duration</div>
- <div class="sr"><input type="range" id="dur-sl" aria-labelledby="dur-lbl" min="100" max="2000" value="600" step="50"><span class="sv" id="dur-v">600ms</span></div>
+ </section>
+
+ <section class="hb-step hb-try" aria-labelledby="hb-try-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">2</span>
+ <div><h2 id="hb-try-title">Try it</h2><p>Change a setting and the animation plays again.</p></div>
+ </div>
+ <div class="hb-settings">
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="speed-lbl">Speed</p>
+ <div class="seg" id="speed-seg" role="group" aria-labelledby="speed-lbl">
+ <button type="button" data-ms="1000" aria-pressed="false">Slow</button>
+ <button type="button" data-ms="600" class="on" aria-pressed="true">Normal</button>
+ <button type="button" data-ms="350" aria-pressed="false">Fast</button>
+ </div>
+ <p class="hb-hint">Slow is easy to follow. Fast feels snappy.</p>
+ </div>
+ <div class="hb-setting">
+ <p class="hb-setting-name" id="feel-lbl">Feel</p>
+ <div class="seg" id="feel-seg" role="group" aria-labelledby="feel-lbl">
+ <button type="button" data-ease="ease-out" class="on" aria-pressed="true">Smooth</button>
+ <button type="button" data-ease="ease-in-out" aria-pressed="false">Gentle</button>
+ <button type="button" data-ease="linear" aria-pressed="false">Even</button>
+ </div>
+ <p class="hb-hint">How the fade speeds up and slows down.</p>
+ </div>
</div>
- <div><div class="lbl">Easing</div>
- <select id="ease-sel">
- <option value="linear">Linear</option>
- <option value="ease-out" selected>Ease out</option>
- <option value="ease-in-out">Ease in-out</option>
- <option value="cubic-bezier(.2,.7,.3,1)">Smooth</option>
- <option value="cubic-bezier(.34,1.56,.64,1)">Springy</option>
- </select>
+ </section>
+
+ <section class="hb-step hb-prompt-step" aria-labelledby="hb-prompt-title">
+ <div class="hb-step-head">
+ <span class="hb-num" aria-hidden="true">3</span>
+ <div><h2 id="hb-prompt-title">Copy the prompt</h2><p>Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.</p></div>
</div>
- <div><div class="lbl" id="hold-lbl">Hold time</div>
- <div class="sr"><input type="range" id="hold-sl" data-hb-skip aria-labelledby="hold-lbl" min="200" max="3000" value="800" step="100"><span class="sv" id="hold-v">0.8s</span></div>
+ <div class="hb-card">
+ <p class="hb-prompt">Add a fade-in and fade-out to [the element you want to show and hide]. When it appears, it should go smoothly from fully transparent to fully visible, and when it leaves it should do the reverse. Nothing moves or changes size; only the opacity changes, which keeps the animation smooth because the browser doesn't need to repaint. Reserve the element's space while it is invisible so the layout doesn't jump, and make sure a hidden element can't be clicked or focused. If the visitor has reduced motion turned on, show and hide it instantly or with a very short fade. Match the settings listed below.</p>
+ <div class="hb-chips-box" hidden>
+ <p class="hb-chips-title">Your settings</p>
+ <ul class="hb-chips"></ul>
+ </div>
+ <div class="hb-copy-row">
+ <button class="hb-copy" type="button"><svg class="hb-ic hb-i-copy" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="hb-ic hb-i-done" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg><span class="hb-copy-label" aria-live="polite">Copy prompt</span></button>
+ <p class="hb-hint">Replace the words in brackets with your own element. Your settings are added at the end.</p>
+ </div>
</div>
- <div class="div"></div>
- <label class="tog" for="loop-tog"><input type="checkbox" id="loop-tog" data-hb-skip data-hb-loop><span>Auto-loop</span></label>
- <div class="btn-row">
- <button class="act pri" id="btn-in" data-hb-replay aria-label="Play fade in">Play in</button>
- <button class="act" id="btn-out" aria-label="Play fade out">Play out</button>
- <button class="act" id="btn-rst" data-hb-reset aria-label="Reset">Reset</button>
+ </section>
+
+ <section class="hb-about" aria-labelledby="hb-what-title">
+ <div class="hb-what">
+ <h2 id="hb-what-title">What it is</h2>
+ <div class="hb-what-text"><p>The full explanation is in <a href="README.md">README.md</a>.</p></div>
</div>
- </section>
- <div class="hb-take">
- <section class="hb-prompt-box" aria-labelledby="hb-prompt-title">
- <h2 class="hb-label" id="hb-prompt-title">Prompt</h2>
- <p class="hb-prompt">Add a fade-in and fade-out to [the element you want to show and hide]. When it appears, it should go smoothly from fully transparent to fully visible, and when it leaves it should do the reverse. Nothing moves or changes size; only the opacity changes, which keeps the animation smooth because the browser doesn't need to repaint. Reserve the element's space while it is invisible so the layout doesn't jump, and make sure a hidden element can't be clicked or focused. If the visitor has reduced motion turned on, show and hide it instantly or with a very short fade. Match the settings listed below.</p>
- </section>
+ <div class="hb-fit">
+ <h2>Good for</h2>
+ <ul class="hb-tags hb-good"><li>Pop-ups</li><li>Tooltips</li><li>Loaded content</li><li>Image swaps</li></ul>
+ <h3>Avoid on</h3>
+ <ul class="hb-tags hb-avoid"><li>Side panels</li><li>Urgent alerts</li></ul>
</div>
- </aside>
+ </section>
+
+ <section class="hb-related" aria-labelledby="hb-related-title" hidden>
+ <h2 id="hb-related-title">Similar animations</h2>
+ <div class="hb-rel-list"></div>
+ </section>
</main>
+<footer class="hb-foot"><span>Animation Handbook</span><a href="#top">Back to top ↑</a></footer>
<script>
const card=document.getElementById('card');
- const durSl=document.getElementById('dur-sl'),durV=document.getElementById('dur-v');
- const easeSel=document.getElementById('ease-sel');
- const holdSl=document.getElementById('hold-sl'),holdV=document.getElementById('hold-v');
- const loopTog=document.getElementById('loop-tog');
- const stEl=document.getElementById('st'),opEl=document.getElementById('op');
+ const vars=document.documentElement.style;
+ const loopTog=document.getElementById('loop-tog'),slowTog=document.getElementById('slow-tog');
const motionOk=!window.matchMedia('(prefers-reduced-motion:reduce)').matches;
- let dur=600,hold=800,looping=false,loopTimer=null,animTimer=null;
-
- function setOp(v){opEl.textContent=v}
- function setSt(s,o){stEl.textContent=s;setOp(o)}
+ let ms=600,ease='ease-out',timers=[];
- function snapHidden(){ // remove .in with the transition suppressed ('important' beats the reduced-motion rule)
+ function dur(){return slowTog.checked?ms*3:ms}
+ function apply(){
+ vars.setProperty('--dur',dur()+'ms');
+ vars.setProperty('--ease',ease);
+ }
+ function later(fn,wait){timers.push(setTimeout(fn,wait))}
+ function fadeIn(){
+ // snap back to fully transparent without a transition so every play restarts from invisible
card.style.setProperty('transition','none','important');
- card.classList.remove('in');
- void card.offsetWidth;
+ card.classList.remove('in');void card.offsetWidth;
card.style.removeProperty('transition');
+ card.classList.add('in');
}
- function _trigger(cls){
- clearTimeout(animTimer);
- if(cls==='in'){
- snapHidden(); // snap to 0 so a replay restarts from invisible
- card.classList.add('in');setSt('playing in','↑');
- }
- else{card.classList.remove('in');setSt('playing out','↓');}
- animTimer=setTimeout(()=>setSt(cls==='in'?'visible':'hidden',cls==='in'?'1.00':'0.00'),motionOk?dur:300);
+ // One play fades in. While Loop is on it then holds, fades out, waits and plays again;
+ // switching Loop off lets the card finish visible. Slow motion stretches the fades, not the waits.
+ function cycle(){
+ apply();fadeIn();
+ if(!loopTog.checked||!motionOk)return;
+ later(()=>{
+ if(!loopTog.checked)return;
+ card.classList.remove('in');
+ later(cycle,dur()+300);
+ },dur()+800);
}
+ function play(){timers.forEach(clearTimeout);timers=[];cycle()}
- function stopLoop(){
- looping=false;clearTimeout(loopTimer);
- if(loopTog)loopTog.checked=false;
- }
- function playIn(){stopLoop();_trigger('in')}
- function playOut(){stopLoop();_trigger('out')}
- function loop(){
- _trigger('in');
- loopTimer=setTimeout(()=>{_trigger('out');loopTimer=setTimeout(()=>{if(looping)loop()},dur+300)},dur+hold);
+ document.getElementById('btn-play').addEventListener('click',play);
+ loopTog.addEventListener('change',()=>{if(loopTog.checked)play()});
+ function choices(id,pick){
+ const buttons=document.querySelectorAll('#'+id+' button');
+ buttons.forEach(b=>b.addEventListener('click',()=>{
+ buttons.forEach(x=>{x.classList.toggle('on',x===b);x.setAttribute('aria-pressed',String(x===b))});
+ pick(b.dataset);
+ }));
}
-
- document.getElementById('btn-in').addEventListener('click',playIn);
- document.getElementById('btn-out').addEventListener('click',playOut);
- document.getElementById('btn-rst').addEventListener('click',()=>{stopLoop();clearTimeout(animTimer);snapHidden();setSt('hidden','0.00')});
- loopTog.addEventListener('change',()=>{looping=loopTog.checked;if(looping&&motionOk)loop();else stopLoop()});
- durSl.addEventListener('input',()=>{dur=+durSl.value;durV.textContent=dur+'ms';document.documentElement.style.setProperty('--dur',dur+'ms')});
- easeSel.addEventListener('change',()=>document.documentElement.style.setProperty('--ease',easeSel.value));
- holdSl.addEventListener('input',()=>{hold=+holdSl.value;holdV.textContent=(hold/1000).toFixed(1)+'s'});
+ choices('speed-seg',d=>{ms=+d.ms});
+ choices('feel-seg',d=>{ease=d.ease});
+ apply();
</script>
</body>
</html>
diff --git a/index.html b/index.html
index 0875344d..3f6c2d44 100644
--- a/index.html
+++ b/index.html
@@ -912,7 +912,7 @@ const CATS=[
desc:'Element-level animations for arriving and departing — fades, slides, reveals, flips, and text staggers.',
folder:'animations/02-entrance-and-exit',
entries:[
- ['fade-in-out','Fade In / Fade Out','Opacity 0 → 1 enter, 1 → 0 exit — the compositor handles this without re-painting.'],
+ ['fade-in-out','Fade In / Fade Out','Fades in to appear and fades out to leave. Best for pop-ups and tooltips.'],
['slide-in','Slide In','Translates from an off-screen edge into final position — with or without simultaneous fade.'],
['slide-up-reveal','Slide Up Reveal','Text rises from below its clip boundary — translateY method vs clip-path inset, identical visual result.'],
['scale-in','Scale In / Zoom In','Scales from a small start value to 1.0 — transform-origin controls where the pop expands from.'],