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 feat/see-inside-compare into sic/05a: Phase 0's stricter page check, the help-line fix and ?v=10
matin698a9d81997b
diff --cc animations/05-text-typography/marquee-ticker/index.htmlindex bb9bda5d,2d0a6155..1a3a85ce--- a/animations/05-text-typography/marquee-ticker/index.html+++ b/animations/05-text-typography/marquee-ticker/index.html@@@ -36,53 -36,9 +36,53 @@@.marq-item{font-size:var(--marq-size);font-weight:700;line-height:1;color:#fff;padding:0 var(--marq-gap);display:flex;align-items:center;gap:var(--marq-gap)}.marq-item.rev-row{color:rgba(255,255,255,.6)}.sep{color:var(--ui-accent);font-size:.6em;opacity:.7}+ /* The rows sit in a box of their own, laid out as the stage lays them out */+ .rows{display:flex;flex-direction:column}+ .zoom,.solo,.lbl{display:none}+ .lbl{position:absolute;padding:3px 7px;border-radius:5px;background:rgba(8,8,10,.9);color:#f4f4f2;font:600 13px/1.2 var(--hb-font);white-space:nowrap}+ /* In See inside and Compare the second and third rows stay where they were, unseen and out of the flow but never removed, so+ their movement goes on for Normal */+ .stage[data-hb-mode="inside"],.stage[data-hb-mode="compare"]{justify-content:flex-start}+ .stage[data-hb-mode="inside"] .rows .marq-row:not(.r1),.stage[data-hb-mode="compare"] .rows .marq-row:not(.r1){position:absolute;left:0;right:0;visibility:hidden}+ /* See inside: the first row at the top, still moving; below it the same strip zoomed out: its two identical copies end to end,+ and the box as a window sliding over them. When the window reaches the second copy it jumps back to the first, which looks+ the same, so the jump never shows. */+ .stage[data-hb-mode="inside"] .zoom{display:flex;flex-direction:column}+ .stage[data-hb-mode="inside"] .zoom .lbl{display:block}+ /* The drawing sits in the middle of the room under the row (the side margins are the ones the script measures with) */+ .zoom{position:relative;flex:1;margin:10px clamp(10px,2%,20px)}+ .zin{position:relative;flex:none;margin:auto 0}+ .ztrack{position:absolute;left:0;display:flex;width:max-content;white-space:nowrap;transform-origin:0 0}+ /* the marks between the repeats drawn twice as big as the zoom makes them, so the Separator setting still shows */+ .ztrack .sep{transform:scale(2)}+ .zcopy{position:absolute;border:2px solid rgba(244,244,242,.6);border-radius:6px}+ .zwin{position:absolute;left:0;border:3px solid var(--ui-accent);border-radius:6px;animation:zwin linear infinite}+ @keyframes zwin{from{transform:translateX(0)}to{transform:translateX(var(--zgo,0px))}}+ .zwin .lbl{left:0;top:calc(100% + 6px)}+ .zjump{position:absolute;width:2px;background:#f4f4f2}+ /* The arrow as long as the slide: a bar and a head whose tip is where the second copy starts */+ .zarrow{position:absolute;left:0;height:13px}+ .zarrow::before{content:"";position:absolute;left:0;right:9px;top:5px;height:3px;border-radius:2px;background:var(--ui-accent)}+ .zarrow::after{content:"";position:absolute;right:0;top:0;border-style:solid;border-width:6.5px 0 6.5px 10px;border-color:transparent transparent transparent var(--ui-accent)}+ .zback{transform:translateX(-50%)}+ /* Pointing at the first row, or tapping it on a touch screen, stops the window in See inside and the one copy in Compare too */+ @media(hover:hover){.stage[data-hb-mode="inside"]:has(.r1:hover) .zwin,.stage[data-hb-mode="compare"]:has(.r1:hover) .solo-track{animation-play-state:paused}}+ .stage[data-hb-mode="inside"]:has(.r1.paused) .zwin,.stage[data-hb-mode="compare"]:has(.r1.paused) .solo-track{animation-play-state:paused}+ /* Compare: on top the common mistake, a single copy of the text that slides out, leaves a gap and jumps back; below it the+ first row with its two copies, which loops with no seam */+ .stage[data-hb-mode="compare"]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}+ .stage[data-hb-mode="compare"] .solo{display:flex;flex-direction:column;justify-content:center;grid-row:1;border-bottom:2px solid rgba(255,255,255,.14)}+ .stage[data-hb-mode="compare"] .rows{grid-row:2;justify-content:center}+ .stage[data-hb-mode="compare"] .r1{border-bottom-color:transparent}+ .stage[data-hb-mode="compare"] .side{display:block}+ .side{left:12px}+ .side.first{top:10px}+ .side.second{top:calc(50% + 6px)}+ .solo-track{display:flex;width:max-content;white-space:nowrap;animation:soloL linear infinite}+ @keyframes soloL{from{transform:translateX(0)}to{transform:translateX(-100%)}}</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="loop"><nav class="hb-bar" aria-label="Animation Handbook">