@orangecheck/app-design 0.3.2 → 0.4.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.
@@ -78,3 +78,55 @@
78
78
  @utility oca-animate-pulse-dot {
79
79
  animation: oca-pulse-dot 1.6s ease-in-out infinite;
80
80
  }
81
+
82
+ /* ── Crowd story ──────────────────────────────────────────────────────────
83
+ A ScrollStory sets --p from 0 to 1. Each copy (--t) falls away just after
84
+ --p passes it; the real figures grow and their halo lights. */
85
+ [data-oc-app='ochk'] .oca-crowd-bot {
86
+ transform-box: fill-box;
87
+ transform-origin: 50% 100%;
88
+ opacity: clamp(0, calc(1 - (var(--p, 0) - var(--t)) * 7), 1);
89
+ transform: translateY(calc(clamp(0, (var(--p, 0) - var(--t)) * 7, 1) * 16px))
90
+ scale(calc(1 - clamp(0, (var(--p, 0) - var(--t)) * 7, 1) * 0.3));
91
+ }
92
+
93
+ [data-oc-app='ochk'] .oca-crowd-real {
94
+ transform-box: fill-box;
95
+ transform-origin: 50% 100%;
96
+ transform: scale(calc(1 + clamp(0, var(--p, 0) * 1.4 - 0.4, 1) * 0.45));
97
+ }
98
+
99
+ [data-oc-app='ochk'] .oca-crowd-halo {
100
+ opacity: clamp(0, calc(var(--p, 0) * 1.6 - 0.5), 1);
101
+ }
102
+
103
+ /* ── Reveal ───────────────────────────────────────────────────────────────
104
+ Set by Reveal only for content below the fold at mount, so nothing is
105
+ hidden without script and nothing above the fold flashes. */
106
+ [data-oc-app='ochk'] [data-reveal='pending'] {
107
+ opacity: 0;
108
+ transform: translateY(18px);
109
+ filter: blur(6px);
110
+ }
111
+
112
+ [data-oc-app='ochk'] [data-reveal] {
113
+ transition:
114
+ opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
115
+ transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
116
+ filter 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
117
+ transition-delay: var(--reveal-delay, 0ms);
118
+ }
119
+
120
+ @keyframes oca-drift {
121
+ 0%,
122
+ 100% {
123
+ transform: translate3d(0, 0, 0);
124
+ }
125
+ 50% {
126
+ transform: translate3d(0, -8px, 0);
127
+ }
128
+ }
129
+
130
+ @utility oca-animate-drift {
131
+ animation: oca-drift 7s ease-in-out infinite;
132
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangecheck/app-design",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "The ochk.app design system: tokens, type, the isometric check, halftone photography, primitives and app chrome. Its own system, scoped under data-oc-app=\"ochk\" so it never reaches the .ochk.io family sites.",
5
5
  "keywords": [
6
6
  "orangecheck",