@kolkrabbi/kol-theme 0.186.0 → 0.187.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.
- package/kol-animation.css +53 -0
- package/package.json +1 -1
package/kol-animation.css
CHANGED
|
@@ -183,6 +183,59 @@
|
|
|
183
183
|
.kol-card.has-reveal .kol-card-reveal { transition: none; }
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
187
|
+
* ContentCard `back` — the second cover (AppCardBackCover, kol-monitor
|
|
188
|
+
* 2026-10-24: a patch card's cover is the patch's OUTPUT now, and the rack
|
|
189
|
+
* it was built on is still worth seeing — "both on one card: the output in
|
|
190
|
+
* front and the rack revealed on hover"). Hover and keyboard focus reveal
|
|
191
|
+
* it; `selected` is never read, so the selected state does not move. The
|
|
192
|
+
* card root names the treatment in `data-back`; the three are on the
|
|
193
|
+
* open-questions page (round 17) for the user's pick:
|
|
194
|
+
*
|
|
195
|
+
* flip-image the media turns — the print flip's turn (0.4s ease-out,
|
|
196
|
+
* preserve-3d, perspective 1000) with a real back face; the
|
|
197
|
+
* plate and the corner controls stay put
|
|
198
|
+
* flip-card the whole card turns; the back fills it, bare
|
|
199
|
+
* hover the back CUTS in over the front — a swap, never an
|
|
200
|
+
* opacity crossfade (user: "not fade")
|
|
201
|
+
*
|
|
202
|
+
* Touch has no hover and gets nothing: the front is the card. Reduced
|
|
203
|
+
* motion drops the turn's transition, so both flips become the cut.
|
|
204
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
205
|
+
.kol-card[data-back] .kol-card-turn-inner {
|
|
206
|
+
position: relative;
|
|
207
|
+
}
|
|
208
|
+
.kol-card[data-back] .kol-card-face--back {
|
|
209
|
+
position: absolute;
|
|
210
|
+
inset: 0;
|
|
211
|
+
}
|
|
212
|
+
.kol-card[data-back^="flip"] .kol-card-turn,
|
|
213
|
+
.kol-card[data-back="flip-card"] {
|
|
214
|
+
perspective: 1000px;
|
|
215
|
+
}
|
|
216
|
+
.kol-card[data-back^="flip"] .kol-card-turn-inner {
|
|
217
|
+
transform-style: preserve-3d;
|
|
218
|
+
transition: transform 0.4s ease-out;
|
|
219
|
+
}
|
|
220
|
+
.kol-card[data-back^="flip"] .kol-card-face {
|
|
221
|
+
backface-visibility: hidden;
|
|
222
|
+
}
|
|
223
|
+
.kol-card[data-back^="flip"] .kol-card-face--back {
|
|
224
|
+
transform: rotateY(180deg);
|
|
225
|
+
}
|
|
226
|
+
.kol-card[data-back="hover"] .kol-card-face--back {
|
|
227
|
+
opacity: 0;
|
|
228
|
+
}
|
|
229
|
+
@media (hover: hover) {
|
|
230
|
+
.kol-card[data-back^="flip"]:hover .kol-card-turn-inner { transform: rotateY(180deg); }
|
|
231
|
+
.kol-card[data-back="hover"]:hover .kol-card-face--back { opacity: 1; }
|
|
232
|
+
}
|
|
233
|
+
.kol-card[data-back^="flip"]:focus-visible .kol-card-turn-inner { transform: rotateY(180deg); }
|
|
234
|
+
.kol-card[data-back="hover"]:focus-visible .kol-card-face--back { opacity: 1; }
|
|
235
|
+
@media (prefers-reduced-motion: reduce) {
|
|
236
|
+
.kol-card[data-back^="flip"] .kol-card-turn-inner { transition: none; }
|
|
237
|
+
}
|
|
238
|
+
|
|
186
239
|
/* ─────────────────────────────────────────────────────────────────────
|
|
187
240
|
* ContentMedia — the hover zoom
|
|
188
241
|
*
|