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
docs: say in the stylesheet comment what the snap rule beats
matinbdb6724e7b45
diff --git a/assets/css/demo-page.css b/assets/css/demo-page.cssindex 60c8ea8c..88df6080 100644--- a/assets/css/demo-page.css+++ b/assets/css/demo-page.css@@ -89,9 +89,10 @@ body.hb [hidden]{display:none!important}.hb-page .stage.hb-paused,.hb-page .stage.hb-paused::before,.hb-page .stage.hb-paused::after,.hb-page .stage.hb-paused *,.hb-page .stage.hb-paused *::before,.hb-page .stage.hb-paused *::after{animation-play-state:paused!important}/* Scroll pages: while Play scrolls a box, the shared script marks it, and CSS scroll snapping is off for it, or every step would- snap and the box would jump from one snap point to the next. !important, so that a snap type the page sets on the box itself,- inline or in its own style, cannot win, and nothing has to be remembered and written back. When the mark goes the page's own- snap type applies again and the browser settles the box on the nearest snap point. */+ snap and the box would jump from one snap point to the next. !important, so that this rule beats any snap type the page sets+ without !important (inline or in its own style; a page never sets one with !important), and nothing has to be remembered and+ written back. When the mark goes the page's own snap type applies again and the browser settles the box on the nearest snap+ point. */[data-hb-autoscrolling]{scroll-snap-type:none!important}/* Switches: a checkbox drawn as a track and knob (gradients, so no pseudo-elements on the input) */