@lark-apaas/coding-registry-buildless 0.1.23 → 0.1.24
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/package.json +1 -1
- package/scripts/card-stage.js +2349 -0
- package/scripts/deck-stage.js +14 -8
package/scripts/deck-stage.js
CHANGED
|
@@ -101,16 +101,22 @@
|
|
|
101
101
|
* content genuinely needs interactive behaviour static HTML can't express.
|
|
102
102
|
* - Do NOT set position/inset/width/height on the slide <section> elements —
|
|
103
103
|
* the component absolutely positions every slotted child for you.
|
|
104
|
-
* - Entrance animations:
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
104
|
+
* - Entrance animations: the base style IS the finished slide — keyframes
|
|
105
|
+
* only describe the path into it. Litmus test: delete every `animation`
|
|
106
|
+
* declaration and the resting picture must not change by a pixel. The
|
|
107
|
+
* thumbnail rail, print, and reduced-motion render exactly that
|
|
108
|
+
* animation-less base state, so any divergence makes them disagree with
|
|
109
|
+
* the live slide. The two frequent violations, one per direction: a
|
|
110
|
+
* hidden base (opacity:0 on the rule itself) blanks those surfaces; and
|
|
111
|
+
* a keyframed transform REPLACES the base transform wholesale — an
|
|
112
|
+
* element centered via `transform: translateY(-50%)` given a scale()
|
|
113
|
+
* entrance loses its centering on the active slide only. Keep start
|
|
114
|
+
* states in `from` only and omit `to`: omitted properties converge on
|
|
115
|
+
* the base value by construction. Gate on [data-deck-active] and the
|
|
116
|
+
* motion query, e.g.:
|
|
111
117
|
* .fade-up { opacity: 1 }
|
|
112
118
|
* @media (prefers-reduced-motion:no-preference){ [data-deck-active] .fade-up{ animation: fadeUp .5s both } }
|
|
113
|
-
* @keyframes fadeUp { from{ opacity:0;
|
|
119
|
+
* @keyframes fadeUp { from{ opacity:0; translate:0 24px } }
|
|
114
120
|
* Avoid infinite decorative loops on slide content.
|
|
115
121
|
*
|
|
116
122
|
* window.__miaodaMirror (defined below) is Magic-Share sync plumbing between
|