@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.
@@ -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: make the visible end-state the base style and
105
- * animate *from* hidden. The thumbnail rail, print, and reduced-motion
106
- * render each slide's static base state and never fire the animation, so
107
- * a hidden base (opacity:0 on the rule itself) renders blank there while
108
- * the live slide looks fine. Keep the hidden state only in the keyframes
109
- * `from`, and gate the animation on [data-deck-active] and the motion
110
- * query, e.g.:
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; transform:translateY(24px) } to{ opacity:1; transform:none } }
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