@kolkrabbi/kol-theme 0.88.0 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/kol-animation.css +79 -0
  2. package/package.json +1 -1
package/kol-animation.css CHANGED
@@ -353,3 +353,82 @@
353
353
  @media (prefers-reduced-motion: reduce) {
354
354
  .kol-rail-grab::before { transition: none; }
355
355
  }
356
+
357
+ /* ═════════════════════════════════════════════════════════════════════
358
+ * SCROLL ENTRANCE — the reveal family (promoted from kol-website's
359
+ * apps/web/src/styles/animations.css, 2026-08-28, on the user's "it's good to
360
+ * localise it"; that file's own header had marked it a DS candidate since
361
+ * 2026-07-28, and it was itself vendored from the elder @kol/ui).
362
+ *
363
+ * A consumer's IntersectionObserver adds `.is-visible`; the class is the whole
364
+ * API. `--kol-reveal-delay` staggers a group without a rule per child.
365
+ *
366
+ * The bare `.reveal*` names are kept as ALIASES beside the `kol-*` ones: they
367
+ * are live in dozens of kol-website call sites and renaming them would be a
368
+ * migration the promotion does not need. New code takes the prefixed name —
369
+ * `.reveal` is exactly the sort of word a consumer's own stylesheet also owns.
370
+ * ═════════════════════════════════════════════════════════════════════ */
371
+ .kol-reveal, .reveal {
372
+ opacity: 0;
373
+ transform: translateY(24px);
374
+ transition: opacity 600ms var(--kol-ease-house), transform 600ms var(--kol-ease-house);
375
+ transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
376
+ }
377
+ /* the group rung: a shorter travel and a default 1s beat, so a set of children
378
+ * arrives after the block that introduces them */
379
+ .kol-reveal-group, .reveal-group {
380
+ opacity: 0;
381
+ transform: translateY(16px);
382
+ transition: opacity 600ms var(--kol-ease-house), transform 600ms var(--kol-ease-house);
383
+ transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 1s));
384
+ }
385
+ /* the diagonal assembly: 40px in from the side AND 32 up, so a row of blocks
386
+ * converges rather than sliding in parallel */
387
+ .kol-reveal-from-left, .reveal-from-left {
388
+ opacity: 0;
389
+ transform: translate(-40px, 32px);
390
+ transition: opacity 700ms var(--kol-ease-house), transform 700ms var(--kol-ease-house);
391
+ transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
392
+ }
393
+ .kol-reveal-from-right, .reveal-from-right {
394
+ opacity: 0;
395
+ transform: translate(40px, 32px);
396
+ transition: opacity 700ms var(--kol-ease-house), transform 700ms var(--kol-ease-house);
397
+ transition-delay: var(--kol-reveal-delay, var(--reveal-delay, 0s));
398
+ }
399
+ .kol-reveal.is-visible, .reveal.is-visible,
400
+ .kol-reveal-group.is-visible, .reveal-group.is-visible,
401
+ .kol-reveal-from-left.is-visible, .reveal-from-left.is-visible,
402
+ .kol-reveal-from-right.is-visible, .reveal-from-right.is-visible {
403
+ opacity: 1;
404
+ transform: translate(0, 0);
405
+ }
406
+ @media (prefers-reduced-motion: reduce) {
407
+ .kol-reveal, .reveal,
408
+ .kol-reveal-group, .reveal-group,
409
+ .kol-reveal-from-left, .reveal-from-left,
410
+ .kol-reveal-from-right, .reveal-from-right {
411
+ opacity: 1;
412
+ transform: none;
413
+ transition: none;
414
+ }
415
+ }
416
+
417
+ /* ═════════════════════════════════════════════════════════════════════
418
+ * AnimatedTitle — the word's rest state (promoted 2026-08-28, same pass).
419
+ *
420
+ * The DS has shipped `atoms/AnimatedTitle.jsx` for months while the CSS its
421
+ * words start from lived in kol-website: the component queried `.animatedWord`
422
+ * and set `opacity: 0` on nothing, so outside that one app the title rendered
423
+ * static and visible with no error. A component whose motion is in a consumer
424
+ * is not shipped. GSAP animates FROM this state; reduced motion skips the
425
+ * tween entirely (the hook), which is why the fallback below is not optional.
426
+ * ═════════════════════════════════════════════════════════════════════ */
427
+ .kol-animated-word, .animatedWord {
428
+ opacity: 0;
429
+ transform: translate3d(150vw, 3.125rem, 0) rotateY(-45deg) rotateX(15deg);
430
+ color: inherit;
431
+ }
432
+ @media (prefers-reduced-motion: reduce) {
433
+ .kol-animated-word, .animatedWord { opacity: 1; transform: none; }
434
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "description": "KOL (Kolkrabbi) design-system tokens + base CSS — brand-neutral. The canonical token/cascade layer every other KOL package and consumer builds on.",
5
5
  "license": "MIT",
6
6
  "type": "module",