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
Merge branch 'feat/see-inside-compare' into sic/03a
matinc78b1350e4bc
diff --cc animations/03-page-transitions/overlay-wipe/index.htmlindex c3c2279e,f8045132..3fccf59b--- a/animations/03-page-transitions/overlay-wipe/index.html+++ b/animations/03-page-transitions/overlay-wipe/index.html@@@ -50,71 -50,9 +50,71 @@@.pstat span{font-size:9px;opacity:.6;text-transform:uppercase;letter-spacing:1px}/* Short windows leave the page area under 220px: tighter spacing keeps the tallest page inside it with room to spare */@media(max-height:640px){.pc{gap:8px}.gi{padding:12px}}+ /* The small site: its nav row over its page area. In Compare a copy of it, the twin, sits beside it. */+ .box{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}+ .twin,.steps,.lbl{display:none}+ .twin .nav-btn{display:inline-flex;align-items:center}+ .lbl{padding:2px 7px;border-radius:5px;background:#111114;color:#f4f4f2;font:600 12px/1.25 var(--hb-font);white-space:nowrap}+ /* See inside: the panel see-through, so the page changing behind it shows, and under the page area the change's three steps+ as numbered bars on one time line, with a marker that moves through them while a change runs. At rest the panel stands+ over the page, with the marker where the page changes. */+ .stage[data-hb-mode="inside"] .panel{opacity:.55}+ /* With two panels the light one is fainter, so the page behind both still reads */+ .stage[data-hb-mode="inside"] .panel.back{opacity:.3}+ .stage[data-hb-mode="inside"].posed .wipe{display:block}+ .stage[data-hb-mode="inside"] .steps{display:block}+ .stage[data-hb-mode="inside"] .steps .lbl{display:inline-block}+ /* The strip takes room from the page area, so the page keeps the tighter spacing of short windows (and on phones and short+ windows only its eyebrow and heading); the panel's name rides in the panel's top corner, clear of the heading that shows through */+ .stage[data-hb-mode="inside"] .pc{gap:8px}+ .stage[data-hb-mode="inside"] .gi{padding:12px}+ .stage[data-hb-mode="inside"] .panel.front{place-items:start end;padding:10px 18px}+ .steps{flex:none;padding:6px 14px 8px;background:#111114;border-top:1px solid var(--ui-border)}+ .bars{position:relative;height:28px}+ .bar{position:absolute;top:8px;height:18px;border-radius:4px;background:var(--panel);color:#0b0b0d;font:700 12px/18px var(--hb-font);+ text-align:center;overflow:hidden}+ .bar.swap{background:repeating-linear-gradient(135deg,var(--panel) 0 5px,color-mix(in srgb,var(--panel) 35%,#111114) 5px 9px)}+ /* The "2" sits on a chip of the panel's own color, so it reads as well as the "1" and the "3" over the dark stripes */+ .bar .chip{display:inline-block;padding:0 4px;border-radius:3px;line-height:14px;background:var(--panel)}+ .bar.lead{top:0;height:6px;background:color-mix(in srgb,var(--panel) 45%,#fff)}+ .mark{position:absolute;left:0;top:0;width:2px;height:28px;background:#f4f4f2}+ .key{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px}+ /* On the strip's own dark ground the key needs no backing of its own (and so keeps to two rows on a small phone) */+ .key .k{padding:2px 0}+ /* Compare: on the left the copy, which changes page at once; on the right the real site, whose panel sweeps over. At rest the+ real site's panel stands half way across, so the still picture shows the sweep; with two panels the light one stands a+ quarter further in, so it shows beside the front one. */+ .stage[data-hb-mode="compare"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:#2a2a30}+ .stage[data-hb-mode="compare"] .twin{display:flex}+ .stage[data-hb-mode="compare"] .side{display:block}+ .stage[data-hb-mode="compare"].posed .box:not(.twin) .wipe{display:block}+ .stage[data-hb-mode="compare"].posed .box:not(.twin) .panel{transform:var(--half)}+ .stage[data-hb-mode="compare"].posed .box:not(.twin) .panel.back{transform:var(--lead)}+ .side{position:absolute;bottom:10px;z-index:11}+ .side.first{left:10px}+ .side.second{left:calc(50% + 10px)}+ @media(max-width:600px){+ .stage[data-hb-mode="compare"] .mini-nav{gap:4px;padding:6px}+ .stage[data-hb-mode="compare"] .nav-btn{padding:0 6px;font-size:12px;min-width:44px;justify-content:center}+ .stage[data-hb-mode="compare"] .pc{padding:12px;gap:6px}+ .stage[data-hb-mode="compare"] .ph{font-size:16px}+ }+ /* Phones and short windows (a phone held sideways too) leave the page area short: the page keeps only its eyebrow and heading,+ inside its area in See inside and clear of the half names in Compare */+ @media(max-width:600px),(max-height:650px){+ .stage[data-hb-mode="inside"] .pp,.stage[data-hb-mode="inside"] .pgrid,.stage[data-hb-mode="inside"] .pstat{display:none}+ .stage[data-hb-mode="compare"] .pp,.stage[data-hb-mode="compare"] .pgrid,.stage[data-hb-mode="compare"] .pstat{display:none}+ }+ /* From 360px down the halves stack; a stacked half is short, so its page text starts at the top, clear of its name */+ @media(max-width:360px){+ .stage[data-hb-mode="compare"]{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}+ .stage[data-hb-mode="compare"] .side.first{bottom:calc(50% + 10px)}+ .stage[data-hb-mode="compare"] .side.second{left:10px}+ .stage[data-hb-mode="compare"] .pc{justify-content:flex-start}+ }</style>- <link rel="stylesheet" href="../../../assets/css/demo-page.css?v=9">- <script src="../../../assets/js/demo-page.js?v=9" defer></script>+ <link rel="stylesheet" href="../../../assets/css/demo-page.css?v=10">+ <script src="../../../assets/js/demo-page.js?v=10" defer></script></head><body class="hb" data-hb-kind="do" data-hb-autoplay><nav class="hb-bar" aria-label="Animation Handbook">