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.

Merge feat/see-inside-compare into sic/07a: the ?v=10 bump of the shared files on every page (Phase 0 done)

matin0ce804c072cd
diff --cc animations/07-ambient-background/flow-field/index.html
index 4d768cde,f18a3b02..569e44f8
--- a/animations/07-ambient-background/flow-field/index.html
+++ b/animations/07-ambient-background/flow-field/index.html
@@@ -25,20 -25,9 +25,20 @@@
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
.stage{position:relative;overflow:hidden;background:#05060a}
canvas{display:block;width:100%;height:100%}
+ /* See inside and Compare: a second canvas over the picture for the current's arrows, and plain words over the picture */
+ .field,.lbl{display:none}
+ .field{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
+ .lbl{position:absolute;padding:4px 9px;border-radius:999px;background:rgba(5,6,10,.88);color:#f4f4f2;font:600 13px/1.2 var(--hb-font);white-space:nowrap}
+ .stage[data-hb-mode="inside"] .field,.stage[data-hb-mode="inside"] .fl,.stage[data-hb-mode="compare"] .side{display:block}
+ .fl.what{left:10px;top:10px}
+ .fl.how{left:10px;bottom:10px}
+ .side{top:10px}
+ .side.first{left:10px}
+ .side.second{left:calc(50% + 10px)}
+ @media(max-width:360px){.lbl{font-size:12px;padding:3px 7px}.side.second{left:calc(50% + 6px)}}
</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">