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: show Error Shake's field focus in the error and success states
matine6a6b8e69460
diff --git a/animations/04-micro-interactions/error-shake/index.html b/animations/04-micro-interactions/error-shake/index.htmlindex 7a30d1a1..a2e050e1 100644--- a/animations/04-micro-interactions/error-shake/index.html+++ b/animations/04-micro-interactions/error-shake/index.html@@ -32,8 +32,9 @@.field input{background:var(--bg);border:1.5px solid var(--ui-border);color:var(--ui-text);font-family:inherit;font-size:13px;padding:11px 12px;border-radius:7px;width:100%;min-height:44px;outline:none;transition:border-color .18s}.field input::placeholder{color:var(--ui-muted);opacity:1}.field input:focus{border-color:var(--ui-accent)}- /* The field draws its own focus (the border), so the site ring is switched off; .stage in front outranks it (0,3,1) */- .stage .field input:focus-visible{outline:none}+ /* While the field is neutral it draws its own focus (the border), so the site ring is switched off; .stage in front outranks it (0,5,1).+ In the error and success states the border is red or green with or without focus, so there the site ring stays and shows it */+ .stage .field:not(.error):not(.ok) input:focus-visible{outline:none}/* Error state: red border + shake keyframe */.field.error input{border-color:var(--err)}.field.error input{animation:shake var(--shake-dur) cubic-bezier(.36,.07,.19,.97) both}