@orangecheck/app-design 0.3.2 → 0.4.1
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.
- package/dist/brand.d.mts +26 -4
- package/dist/brand.d.ts +26 -4
- package/dist/brand.js +342 -49
- package/dist/brand.js.map +1 -1
- package/dist/brand.mjs +341 -50
- package/dist/brand.mjs.map +1 -1
- package/dist/components.d.mts +45 -3
- package/dist/components.d.ts +45 -3
- package/dist/components.js +220 -21
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +215 -23
- package/dist/components.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +561 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +553 -71
- package/dist/index.mjs.map +1 -1
- package/dist/styles/motion.css +73 -0
- package/package.json +1 -1
package/dist/styles/motion.css
CHANGED
|
@@ -78,3 +78,76 @@
|
|
|
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
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ── Entrance ─────────────────────────────────────────────────────────────
|
|
135
|
+
A page's opening settles in once on load: CSS only, so it plays without
|
|
136
|
+
script and stops under reduced motion like everything else. */
|
|
137
|
+
@keyframes oca-enter {
|
|
138
|
+
from {
|
|
139
|
+
opacity: 0;
|
|
140
|
+
transform: translateY(14px);
|
|
141
|
+
filter: blur(5px);
|
|
142
|
+
}
|
|
143
|
+
to {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
transform: none;
|
|
146
|
+
filter: none;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@utility oca-enter {
|
|
151
|
+
animation: oca-enter 750ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
152
|
+
animation-delay: var(--enter-delay, 0ms);
|
|
153
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecheck/app-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|