An agent skill for building premium, immersive, scroll-driven websites. Works with Codex, Claude Code, and other coding agents. Also available as a Claude Code plugin.
JavaScript accessibilityagent-skillsai-web-designanthropicclaude-codeclaude-code-plugincreative-codingdesign-systemfrontendinteraction-designlanding-pagescroll-animationscrollytellingtypographyweb-design
feat: counters tick up on entry; document the flow fade-in properly
Nate Herkd9ab568761cd
diff --git a/plugins/nateherk-design/skills/scrollcraft/CHANGELOG.md b/plugins/nateherk-design/skills/scrollcraft/CHANGELOG.mdindex 86e5d59..ac094ef 100644--- a/plugins/nateherk-design/skills/scrollcraft/CHANGELOG.md+++ b/plugins/nateherk-design/skills/scrollcraft/CHANGELOG.md@@ -4,6 +4,29 @@ Dated notes on what changed in the skill and which build's finding drove it.Builds live in `OtherWorlds/Ultimate Websites/builds/`; each carries a`BUILD-REPORT.md`.+## 2026-09-01: counters tick up on entry; fade-in documented properly++Asked for directly: "numbers tick up when they come into view." The count+device existed only inside pinned acts, scrubbed by act progress, so a stat+row in an ordinary flow section could not count at all. The flow fade-in+existed, but the devices.md example lacked the `data-sc-in` attribute that+makes it fire.++**Engine, `engine/scrollcraft.js`**++- A `[data-sc-count]` outside any `data-sc-act` now ticks once on entry+ (IntersectionObserver at half visibility, fires once) from the first value+ to the second over `data-sc-count-ms` (default 1400ms), cubic ease-out, same+ `formatNum` rules as the act counter. Reduced motion writes the final value.+ Act counters are unchanged.++**Docs**++- `references/devices.md` §7 gains "Numbers that tick up when they come into+ view", with the pairing rule (counter inside a `data-sc-in` stack).+- §8 example fixed to carry `data-sc-in`, plus "What a premium fade-in is made+ of".+## 2026-09-01: layered scenes documented under `parallax`Driven by a live homepage rebuilt on a reference site's layered hero. Threediff --git a/plugins/nateherk-design/skills/scrollcraft/engine/scrollcraft.js b/plugins/nateherk-design/skills/scrollcraft/engine/scrollcraft.jsindex 9612e60..8b41ccf 100644--- a/plugins/nateherk-design/skills/scrollcraft/engine/scrollcraft.js+++ b/plugins/nateherk-design/skills/scrollcraft/engine/scrollcraft.js@@ -54,7 +54,9 @@data-sc-kinetic="lines" lines | words | chars. Splits the element andstaggers its reveal across the cue window.data-sc-reveal="up" up | down | left | right | iris. clip-path wipe.- data-sc-count="0 4200" number bloom across the cue window.+ data-sc-count="0 4200" number bloom across the cue window. Outside any+ act it ticks up once on entry instead, over+ data-sc-count-ms (default 1400).data-sc-in flow-section reveal, fires once on entry viaIntersectionObserver (cheaper, and content thatre-hides on scroll-up is a defect, not an effect).@@ -506,6 +508,48 @@Array.prototype.forEach.call(root.querySelectorAll('[data-sc-in]'), function (el) { el.classList.add('sc-in'); });}+ // ---- entry counters (fire once) --------------------------------------+ // A [data-sc-count] outside any pinned act is not scrubbed by scroll; it+ // ticks up once when it enters view, over data-sc-count-ms (default 1400).+ // Same formatting rules as the act counter: write the target as it should+ // render. Reduced motion writes the final value and never animates.+ (function () {+ var ease = function (t) { return 1 - Math.pow(1 - t, 3); };+ var num = function (s) { return parseFloat(String(s).replace(/,/g, '')) || 0; };+ var spec = function (c) { return (c.getAttribute('data-sc-count') || '').trim().split(/\s+/); };+ var els = Array.prototype.filter.call(root.querySelectorAll('[data-sc-count]'), function (c) {+ return !c.closest('[data-sc-act]');+ });+ if (!els.length) return;+ function run(c) {+ var nums = spec(c);+ var a = num(nums[0]), b = num(nums[1]), tpl = nums[1] || '0';+ var ms = parseFloat(c.getAttribute('data-sc-count-ms')) || 1400;+ if (reduce || ms <= 0) { c.textContent = formatNum(b, tpl); return; }+ var t0 = null, last = null;+ function frame(now) {+ if (t0 === null) t0 = now;+ var t = Math.min((now - t0) / ms, 1);+ var out = formatNum(a + (b - a) * ease(t), tpl);+ if (out !== last) { c.textContent = out; last = out; }+ if (t < 1) requestAnimationFrame(frame);+ }+ requestAnimationFrame(frame);+ }+ els.forEach(function (c) { var n = spec(c); c.textContent = formatNum(num(n[0]), n[1] || '0'); });+ if ('IntersectionObserver' in window) {+ var cio = new IntersectionObserver(function (entries) {+ entries.forEach(function (e) {+ if (!e.isIntersecting) return;+ run(e.target); cio.unobserve(e.target);+ });+ }, { rootMargin: '0px 0px -10% 0px', threshold: 0.5 });+ els.forEach(function (c) { cio.observe(c); });+ } else {+ els.forEach(run);+ }+ })();+// ---- layout -----------------------------------------------------------function layout() {vh = innerHeight; vw = innerWidth;diff --git a/plugins/nateherk-design/skills/scrollcraft/references/devices.md b/plugins/nateherk-design/skills/scrollcraft/references/devices.mdindex 9d91a3d..720a3c6 100644--- a/plugins/nateherk-design/skills/scrollcraft/references/devices.md+++ b/plugins/nateherk-design/skills/scrollcraft/references/devices.md@@ -402,6 +402,34 @@ what makes it persuasive and what makes an invented one a liability. If thebrand has no verified figure, there is no counter. Check the brand's rulesfirst; several forbid this outright.+**Numbers that tick up when they come into view.** The form above is scrubbed+by act progress, so it only runs inside a pinned act. For a stat row in an+ordinary flow section, put the same attribute on a counter that is not inside+any `data-sc-act` and it fires once on entry instead, ticking from the first+value to the second over `data-sc-count-ms` (default 1400):++```html+<div class="sc-stack" data-sc-in data-sc-stagger="80">+ <p class="sc-display sc-display--lg"><span data-sc-count="0 450,000">0</span> members</p>+ <p class="sc-display sc-display--lg"><span data-sc-count="0 953,000">0</span> subscribers</p>+</div>+```++What makes it land rather than spin:++- **Ease out, hard.** The tick runs a cubic ease-out, so most of the distance+ goes by in the first third and the last digits settle slowly. A linear count+ reads as a slot machine.+- **1.2 to 1.8 seconds.** Under a second and the reader misses that it moved;+ past two and they are waiting for a number they have already guessed.+- **It fires at half visibility, once.** The observer waits until half the+ element is on screen so the reader is looking at it when it starts, and it+ never re-runs on the way back up.+- **Pair it with the fade.** A counter inside a `data-sc-in` stack rises in with+ its label and starts ticking as it arrives, which is the one-two that reads+ as premium. The same numbers static on the page read as a spreadsheet.+- **Reduced motion writes the final value.** No animation, no zero flash.+**A concept, fictional or pre-launch brand has no verified figures, so it has nocounters.** The device suits a SaaS or agency page and it will look good in thescore table, which is exactly the trap: every number you could put in it would@@ -418,16 +446,25 @@ document sections with a reveal-on-entry are the rest of the page.```html<section class="sc-section">- <div class="sc-wrap sc-stack" data-sc-stagger="70">+ <div class="sc-wrap sc-stack" data-sc-in data-sc-stagger="70"><h2 class="sc-display sc-display--md">What is actually in it</h2><p class="sc-body">…</p></div></section>```-This fires **once**, on entry, via IntersectionObserver. Content that re-hides-when the reader scrolls back up is a defect, not an effect. Stagger between 30-and 80ms; longer feels slow.+`data-sc-in` is what the engine watches; without it nothing fires and the+stagger children stay hidden. This fires **once**, on entry, via+IntersectionObserver. Content that re-hides when the reader scrolls back up is+a defect, not an effect. Stagger between 30 and 80ms; longer feels slow.++**What a premium fade-in is made of.** Opacity from 0 and a rise of about 14px+over 620ms on an ease-out curve, children staggered so the eye is led down the+stack in reading order, and the trigger set slightly inside the viewport+(`-12%` bottom margin) so it fires when the reader is looking, not when the+first pixel clears the fold. A fade with no rise reads as a loading glitch. A+rise past 24px reads as a slide. Larger, slower, or bouncier is never more+premium; the restraint is the signal.**A flow section directly after a pinned act takes reduced padding.** The pinnedstage needs a full viewport to scroll off, and full `--sc-section` padding on