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: Handwriting Draw: darker green and red ink (at least 4.8:1 on the paper), a true Word hint, card preview clear of the place label

matin0aa228fc737e
diff --git a/animations/05-text-typography/handwriting-draw/index.html b/animations/05-text-typography/handwriting-draw/index.html
index 116e0d3e..cac33b5a 100644
--- a/animations/05-text-typography/handwriting-draw/index.html
+++ b/animations/05-text-typography/handwriting-draw/index.html
@@ -89,7 +89,7 @@
<button type="button" data-w="thanks" aria-pressed="false">thanks</button>
<button type="button" data-w="hi there" aria-pressed="false">hi there</button>
</div>
- <p class="hb-hint">Each word is a few pen lines drawn in the page, dots and crosses last.</p>
+ <p class="hb-hint">Which word the pen writes: the joined letters first, then any dots and crosses.</p>
</div>
<div class="hb-setting">
<p class="hb-setting-name" id="speed-lbl">Pen speed</p>
@@ -105,8 +105,8 @@
<div class="swatches" id="ink-sw" role="group" aria-labelledby="ink-lbl">
<button type="button" class="on" aria-pressed="true" aria-label="Blue" data-c="#2346b5" style="background:#2346b5"></button>
<button type="button" aria-pressed="false" aria-label="Black" data-c="#24232a" style="background:#24232a"></button>
- <button type="button" aria-pressed="false" aria-label="Red" data-c="#c2332b" style="background:#c2332b"></button>
- <button type="button" aria-pressed="false" aria-label="Green" data-c="#1d7a4c" style="background:#1d7a4c"></button>
+ <button type="button" aria-pressed="false" aria-label="Red" data-c="#b8302a" style="background:#b8302a"></button>
+ <button type="button" aria-pressed="false" aria-label="Green" data-c="#1b7448" style="background:#1b7448"></button>
</div>
<p class="hb-hint">The color of the ink, and of the pen.</p>
</div>
diff --git a/index.html b/index.html
index 5d167718..1a3e94bf 100644
--- a/index.html
+++ b/index.html
@@ -719,7 +719,7 @@ button,input{font:inherit;color:inherit}
@keyframes t-neon{0%{opacity:1}5%{opacity:.25}8%{opacity:1}11%{opacity:.08}15%{opacity:1}68%{opacity:.3}71%{opacity:1}}
/* "hello" written on a note: one pen line uncovered by its dash (pathLength 1), held, then faded; fully written at 75% (STILL) */
.pv-handwrite{background:#0c0608;display:grid;place-items:center;container-type:size}
-.pv-handwrite .pp{width:min(64cqw,106cqh);aspect-ratio:1.8;border-radius:4px;background:linear-gradient(170deg,#fbf7ee,#f1eadb);box-shadow:0 6px 16px rgba(0,0,0,.45);transform:translateY(6cqh) rotate(-2deg)} /* below the place label */
+.pv-handwrite .pp{width:min(64cqw,106cqh);aspect-ratio:1.8;border-radius:4px;background:linear-gradient(170deg,#fbf7ee,#f1eadb);box-shadow:0 6px 16px rgba(0,0,0,.45);transform:translateY(max(6cqh,12px)) rotate(-2deg)} /* below the place label */
.pv-handwrite svg{display:block;width:100%;height:100%;overflow:visible}
.pv-handwrite .rl{stroke:#9db0d6;stroke-width:.8}
.pv-handwrite .w{fill:none;stroke:#2346b5;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;animation:t-hand 5s linear infinite}