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.

fix: on the 404 page at 320px the third way wraps onto two even lines with room around them

matin80f18fc5dbd9
diff --git a/404.html b/404.html
index 6875bf26..18198bd3 100644
--- a/404.html
+++ b/404.html
@@ -109,6 +109,12 @@ button,input{font:inherit;color:inherit}
.go .i{display:block}
.ways{flex-direction:column;align-self:stretch}
}
+/* the narrowest phones: below 350px "Find an animation by what you saw" takes two lines, which would fill its pill edge to edge with one
+ word alone. Some air above and below and balanced lines fix that; a 22px line keeps the text of a one-line way exactly where it was
+ (they stay 48px tall). 359px, as on the home page, leaves 360px and up as it was. */
+@media(max-width:359px){
+ .way{padding:6px 22px;line-height:1.375;text-wrap:balance}
+}
</style>
</head>
<body>