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: keep Smooth (Inertia) Scroll's last line clear of the hint on phones
matin75947e58c05f
diff --git a/animations/01-scroll-based/smooth-scroll/index.html b/animations/01-scroll-based/smooth-scroll/index.htmlindex d46434a8..30ca26c1 100644--- a/animations/01-scroll-based/smooth-scroll/index.html+++ b/animations/01-scroll-based/smooth-scroll/index.html@@ -32,7 +32,8 @@.content{will-change:transform}.viewport.native .content{will-change:auto}.card{padding:clamp(24px,5vw,52px);min-height:72cqh;display:flex;flex-direction:column;justify-content:center;border-bottom:1px solid var(--ui-border)}- .card:last-child{border-bottom:0}+ /* at the end of the content the last line must stay clear of the hint chip (12px from the bottom, 23px tall) */+ .card:last-child{border-bottom:0;padding-bottom:max(clamp(24px,5vw,52px),48px)}.card-num{font-size:clamp(52px,9vw,88px);font-weight:700;line-height:1;opacity:.12;margin-bottom:10px}.card-title{font-weight:700;font-size:clamp(20px,3.4vw,32px);margin-bottom:12px}.card-body{font-size:14px;color:#adadb2;line-height:1.7;max-width:460px}