@superwall/cli 2.0.0 → 2.1.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.
Files changed (139) hide show
  1. package/dist/{apple-CkKlHBZ9.js → apple-CSzNTGHM.js} +13 -13
  2. package/dist/auth.d.ts +1 -1
  3. package/dist/auth.js +3 -3
  4. package/dist/{billing-XCZU_T46.js → billing-C3Q8DBU2.js} +3 -3
  5. package/dist/{bind-drne__Ys.js → bind-BumHTi9O.js} +4 -4
  6. package/dist/{build-Gpdq5QXP.js → build-Bpviiclc.js} +6 -6
  7. package/dist/{client-DP6Rc0t_.js → client-BL0f_yGf.js} +2 -2
  8. package/dist/create-BSfvpWoD.js +19 -0
  9. package/dist/{create-Cwc3SRWJ.js → create-BUcVG4Ab.js} +23 -23
  10. package/dist/{create-BBrtgUgS.js → create-CfK3PeKA.js} +6 -6
  11. package/dist/{doctor-C9ldpPFC.js → doctor-BWqIYcMn.js} +6 -6
  12. package/dist/{drivers-DNrx4LWA.js → drivers-CPhdPkW5.js} +3 -3
  13. package/dist/entry.js +20 -21
  14. package/dist/{environment-DF1qKlny.js → environment-eBXjELoN.js} +1 -1
  15. package/dist/{existing-78LWSsqS.js → existing-BltvQiX5.js} +2 -2
  16. package/dist/held-CPve03KJ.js +16 -0
  17. package/dist/{held-Cy8Wl4D1.js → held-DgnTFMl3.js} +6 -6
  18. package/dist/{integrate-DcJhpXy8.js → integrate-BRsqoe01.js} +22 -22
  19. package/dist/{login-B2TsCE2H.js → login-BCEH5q0U.js} +1 -1
  20. package/dist/login-BPOONe7n.js +16 -0
  21. package/dist/{login-D0lh3_JI.js → login-BbTIrCFT.js} +5 -5
  22. package/dist/{lookup-D-nmmAbw.js → lookup-rr1AkCJA.js} +2 -2
  23. package/dist/{migrate-Cfec564E.js → migrate-C9X2Vz81.js} +22 -22
  24. package/dist/{notification-url-YDbq6FMA.js → notification-url-CV86qiKP.js} +2 -2
  25. package/dist/{open-Ba2vBl1_.js → open-CcpXotHG.js} +10 -10
  26. package/dist/{org-D0g_q3mv.js → org-BQQDo7wm.js} +2 -2
  27. package/dist/{paths-DxSLdpOI.js → paths-CRlU72cq.js} +1 -1
  28. package/dist/{playbook-DIeb7hne.js → playbook-DVMXN7fh.js} +10 -10
  29. package/dist/{promote-COD4fYdz.js → promote-Da8xctzy.js} +16 -16
  30. package/dist/push-BV-grvQg.js +22 -0
  31. package/dist/{push-CncywhkQ.js → push-D6R9icWN.js} +27 -14
  32. package/dist/{registry-DSrosOYs.js → registry-BYVD-_h6.js} +206 -49
  33. package/dist/{resources-Dqr01Dep.js → resources-DLON3-61.js} +18 -6
  34. package/dist/{run-C9qg_QlC.js → run-Co-BwhOg.js} +2 -2
  35. package/dist/scan-B88OlWOt.js +4 -0
  36. package/dist/{scan-DLrsrFS9.js → scan-CKuk-_6W.js} +1 -1
  37. package/dist/{scope-V336uz8j.js → scope-DV22_Ufm.js} +4 -4
  38. package/dist/{selection-Rdw-ZUoG.js → selection-C2_KbLuo.js} +10 -4
  39. package/dist/server-C4f6ccUr.js +22 -0
  40. package/dist/{server-D0tGG8C4.js → server-D0d2oP-5.js} +10 -8
  41. package/dist/{session-CFAmMhem.js → session-B-Uz0cQ7.js} +1 -1
  42. package/dist/session-BuvArt1j.js +6 -0
  43. package/dist/{session-D_nEWKXT.js → session-C4rbE3VS.js} +41 -13
  44. package/dist/skills/superwall-framework/SKILL.md +7 -3
  45. package/dist/skills/superwall-framework/references/cli.md +1 -0
  46. package/dist/skills/superwall-framework/references/layout.md +34 -1
  47. package/dist/{skills-DMG4bpKk.js → skills-CLGJuMnF.js} +8 -8
  48. package/dist/{skills-BvFOa4y6.js → skills-CZcpnEnG.js} +5 -4
  49. package/dist/{spinner-CneRK5rk.js → spinner-C2U6QBJ9.js} +3 -3
  50. package/dist/{storage-s2Dnz-yl.js → storage-6h9vyiAz.js} +1 -1
  51. package/dist/storekit-CK9JmM2D.js +16 -0
  52. package/dist/{storekit-yY_kS2iR.js → storekit-CinJra3V.js} +3 -3
  53. package/dist/{telemetry-DtG92m5O.js → telemetry-DKyDhURo.js} +1 -1
  54. package/dist/{token-DzRh7dI1.js → token-DaxQgQkv.js} +1 -1
  55. package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
  56. package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
  57. package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
  58. package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
  59. package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
  60. package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
  61. package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
  62. package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
  63. package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
  64. package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
  65. package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
  66. package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
  67. package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
  68. package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
  69. package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
  70. package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
  71. package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
  72. package/dist/tools-skills/mobile-design/SKILL.md +447 -0
  73. package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
  74. package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
  75. package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
  76. package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
  77. package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
  78. package/dist/tools-skills/superwall/SKILL.md +263 -0
  79. package/dist/tools-skills/superwall/references/api.md +303 -0
  80. package/dist/tools-skills/superwall/references/asa.md +166 -0
  81. package/dist/tools-skills/superwall/references/asc.md +95 -0
  82. package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
  83. package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
  84. package/dist/tools-skills/superwall/references/docs.md +51 -0
  85. package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
  86. package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
  87. package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
  88. package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
  89. package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
  90. package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
  91. package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
  92. package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
  93. package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
  94. package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
  95. package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
  96. package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
  97. package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
  98. package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
  99. package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
  100. package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
  101. package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
  102. package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
  103. package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
  104. package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
  105. package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
  106. package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
  107. package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
  108. package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
  109. package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
  110. package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
  111. package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
  112. package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
  113. package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
  114. package/dist/tools-skills/superwall-editor/references/design.md +51 -0
  115. package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
  116. package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
  117. package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
  118. package/dist/tools-skills/wwdc/SKILL.md +22 -0
  119. package/dist/tools-skills/wwdc/references/docs.md +52 -0
  120. package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
  121. package/dist/tools.d.ts +1 -1
  122. package/dist/tools.js +200 -18
  123. package/dist/{upgrade-Bt4Ouw1y.js → upgrade-DPo0a4Es.js} +1 -1
  124. package/dist/{upgrade-Cqy5orjb.js → upgrade-ffseQDMx.js} +2 -2
  125. package/package.json +2 -2
  126. package/dist/create-Yvf2gStM.js +0 -19
  127. package/dist/held-Ddw1XSsr.js +0 -16
  128. package/dist/kinds-GFXB3sYu.js +0 -11
  129. package/dist/login-BoBe8Psl.js +0 -16
  130. package/dist/push-CtD4FZQV.js +0 -22
  131. package/dist/scan-Cv5uOwVY.js +0 -4
  132. package/dist/send-BxD9yf6F.js +0 -150
  133. package/dist/server-z1LH94R_.js +0 -22
  134. package/dist/session-1AV_Bs_d.js +0 -6
  135. package/dist/storekit-DafAnGkM.js +0 -16
  136. /package/dist/{devtools-ByZ6XYnn.js → devtools-pBl_vt03.js} +0 -0
  137. /package/dist/{reports-DdPq4blM.js → reports-D_qbl7_u.js} +0 -0
  138. /package/dist/{screenshot-file-0UETadF8.js → screenshot-file-tVBfUEIi.js} +0 -0
  139. /package/dist/{storage-DYvmIOHa.d.ts → storage-CerJ5KLP.d.ts} +0 -0
@@ -0,0 +1,301 @@
1
+ /*
2
+ * Reference implementation: the entrance half of each hand-off, as shipped
3
+ * alongside references/handoffs.ts. Colour tokens (--color-ui-*) are the
4
+ * app's own; swap in yours.
5
+ */
6
+
7
+ /*
8
+ * Story motion entrances — the incoming half of each hand-off in
9
+ * runtime/handoffs.ts. The runtime section carries:
10
+ * data-motion="story" flow opted in
11
+ * data-flow-transition flow-next | flow-back | flow-idle
12
+ * data-handoff the pair's hand-off name, "default", or "plain"
13
+ * Every part rises in on one keyframe driven by variables, so a hand-off is
14
+ * just a set of variable overrides. Only transform and opacity animate: blur
15
+ * and backdrop blur re-rasterise every frame and made the flow drop to ~15fps.
16
+ * Entrances use fill-mode backwards so press and selection styles own the
17
+ * element once it has landed.
18
+ */
19
+
20
+ [data-motion="story"] {
21
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
22
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
23
+ --in-ms: 420ms;
24
+ /* A beat after the old page starts leaving, so the two barely overlap. */
25
+ --in-delay: 70ms;
26
+ --in-y: 14px;
27
+ --in-scale: 1;
28
+ --line-gap: 60ms;
29
+ --opt-lead: 100ms;
30
+ --stagger: 40ms;
31
+ --img-lead: 120ms;
32
+ --btn-lead: 180ms;
33
+ }
34
+
35
+ [data-motion="story"][data-flow-transition="flow-idle"] {
36
+ --in-delay: 0ms;
37
+ }
38
+
39
+ @keyframes story-in {
40
+ from {
41
+ opacity: 0;
42
+ transform: translate3d(0, var(--in-y), 0) scale(var(--in-scale));
43
+ }
44
+ }
45
+
46
+ [data-motion="story"] [data-flow-page] :is([data-flow-line], [data-flow-option], [data-flow-image], [data-next-button]) {
47
+ animation: story-in var(--in-ms) var(--ease-out) backwards;
48
+ }
49
+
50
+ /* Title, then subtitle: line by line. */
51
+ [data-motion="story"] [data-flow-page] [data-flow-line] {
52
+ animation-delay: var(--in-delay);
53
+ }
54
+ [data-motion="story"] [data-flow-page] [data-flow-line]:nth-child(2) {
55
+ animation-delay: calc(var(--in-delay) + var(--line-gap));
56
+ }
57
+ [data-motion="story"] [data-flow-page] [data-flow-line]:nth-child(3) {
58
+ animation-delay: calc(var(--in-delay) + var(--line-gap) * 2);
59
+ }
60
+
61
+ /* Answers after the question, 40ms apart. They're tappable from the first frame. */
62
+ [data-motion="story"] [data-flow-page] [data-flow-option] {
63
+ animation-delay: calc(var(--in-delay) + var(--opt-lead));
64
+ }
65
+ [data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(2) {
66
+ animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger));
67
+ }
68
+ [data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(3) {
69
+ animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 2);
70
+ }
71
+ [data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(4) {
72
+ animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 3);
73
+ }
74
+ [data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(5) {
75
+ animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 4);
76
+ }
77
+ [data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(6) {
78
+ animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 5);
79
+ }
80
+
81
+ [data-motion="story"] [data-flow-page] [data-flow-image] {
82
+ animation-delay: calc(var(--in-delay) + var(--img-lead));
83
+ }
84
+
85
+ [data-motion="story"] [data-flow-page] [data-next-button] {
86
+ animation-delay: calc(var(--in-delay) + var(--btn-lead));
87
+ }
88
+
89
+ /* A shared element carried in by the hand-off script: that motion is its entrance. */
90
+ [data-motion="story"] [data-flow-page] [data-morph] {
91
+ animation: none;
92
+ }
93
+
94
+ /*
95
+ * Backdrop blur on the answer capsules is recomputed every frame they move;
96
+ * over this soft gradient it's nearly invisible, so story motion drops it.
97
+ */
98
+ [data-motion="story"] [data-flow-option],
99
+ [data-handoff-clone] [data-flow-option] {
100
+ -webkit-backdrop-filter: none;
101
+ backdrop-filter: none;
102
+ }
103
+
104
+ /* The tap was heard: the chosen answer stays lit while the others step back (the leaving copy keeps it). */
105
+ [data-motion="story"] [data-flow-option][data-committing]:not([data-selected]),
106
+ [data-handoff-clone] [data-flow-option][data-committing]:not([data-selected]) {
107
+ opacity: 0.4;
108
+ }
109
+
110
+ /* Progress moves on a long ease-out, close to a critically damped spring. */
111
+ [data-motion="story"] [data-progress-fill] {
112
+ transition: transform 520ms var(--ease-out);
113
+ }
114
+
115
+ /* ------------------------------------------------------------------ */
116
+ /* Hand-offs (arriving forward) */
117
+ /* ------------------------------------------------------------------ */
118
+
119
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="begin"] {
120
+ --in-delay: 140ms;
121
+ --in-ms: 520ms;
122
+ }
123
+
124
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="picture"] {
125
+ --in-delay: 120ms;
126
+ }
127
+
128
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="inward"] {
129
+ --in-delay: 160ms;
130
+ --in-ms: 600ms;
131
+ --in-y: 24px;
132
+ }
133
+
134
+ /* Arrives in place, softly, after the old page drifted off. */
135
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="slip"] {
136
+ --in-delay: 180ms;
137
+ --in-ms: 560ms;
138
+ --in-y: 0px;
139
+ --in-scale: 0.98;
140
+ }
141
+
142
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="fade"] {
143
+ --in-delay: 260ms;
144
+ }
145
+
146
+ /* Fade to nothing, a beat of emptiness, then the image settles in. */
147
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="gone"] {
148
+ --in-delay: 420ms;
149
+ --in-ms: 600ms;
150
+ --in-y: 0px;
151
+ --in-scale: 1.03;
152
+ }
153
+
154
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="blank"] {
155
+ --in-delay: 160ms;
156
+ }
157
+
158
+ /* Re-explaining: back over the same ground, so it comes from above. */
159
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="again"] {
160
+ --in-delay: 100ms;
161
+ --in-y: -16px;
162
+ }
163
+
164
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="jolt"] {
165
+ --in-delay: 40ms;
166
+ --in-ms: 240ms;
167
+ --in-y: 0px;
168
+ --in-scale: 0.96;
169
+ --line-gap: 30ms;
170
+ --opt-lead: 40ms;
171
+ --stagger: 25ms;
172
+ }
173
+
174
+ /* Answers arrive on an even beat. */
175
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="cadence"] {
176
+ --in-delay: 140ms;
177
+ --stagger: 70ms;
178
+ }
179
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="cadence"] [data-flow-option] {
180
+ --in-y: 0px;
181
+ --in-scale: 0.94;
182
+ animation-timing-function: var(--ease-in-out);
183
+ }
184
+
185
+ /*
186
+ * Transform destinations, declared up front from the element map: each arrives as the transform
187
+ * of something on the previous page, so its standard entrance is off from the first frame (the
188
+ * script also marks them data-morph).
189
+ * forward, picture/connect: the chosen answer becomes the photo;
190
+ * back, picture: only the chosen answer comes out of the photo (the others left on their own
191
+ * going forward, so they return with the standard entrance);
192
+ * back, connect: every answer went into the photo, so every answer comes back out of it.
193
+ */
194
+ [data-motion="story"][data-flow-transition="flow-next"]:is([data-handoff="picture"], [data-handoff="connect"]) [data-flow-page] [data-flow-image],
195
+ [data-motion="story"][data-flow-transition="flow-back"][data-handoff="picture"] [data-flow-page] [data-flow-option][data-selected],
196
+ [data-motion="story"][data-flow-transition="flow-back"][data-handoff="connect"] [data-flow-page] [data-flow-option] {
197
+ animation: none;
198
+ }
199
+
200
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="settle"] {
201
+ --in-delay: 200ms;
202
+ --in-ms: 680ms;
203
+ --in-y: 10px;
204
+ --stagger: 70ms;
205
+ }
206
+
207
+ /* The bar fills its last stretch, then gives way to "You're all set". */
208
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="finish"] {
209
+ --in-delay: 380ms;
210
+ --img-lead: 180ms;
211
+ --btn-lead: 320ms;
212
+ }
213
+ /* Hold the full bar for a beat after the last answer has grown it to the end (~504ms), then let it go. */
214
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="finish"] [data-progress] {
215
+ transition-delay: 700ms;
216
+ }
217
+
218
+ /*
219
+ * Statement screens ("Did you know…"): the answer colour fills the screen (the runtime's backdrop
220
+ * layer), so the header and button invert onto it. Arriving by a hand-off, the colour comes in with
221
+ * the morph, so the header waits for it before switching (it's covered until then anyway).
222
+ */
223
+ [data-tone="inverse"] h2,
224
+ [data-tone="inverse"] [data-back-button],
225
+ [data-tone="inverse"] [data-skip-button] {
226
+ color: rgb(var(--color-ui-bg));
227
+ }
228
+ [data-tone="inverse"] [data-progress] > div {
229
+ background-color: rgb(var(--color-ui-bg) / 0.3);
230
+ }
231
+ [data-tone="inverse"] [data-progress-fill] {
232
+ background-color: rgb(var(--color-ui-bg));
233
+ }
234
+ [data-tone="inverse"] [data-next-button] {
235
+ background-color: rgb(var(--color-ui-bg));
236
+ color: rgb(var(--color-ui-primary));
237
+ }
238
+ [data-motion="story"][data-tone="inverse"] :is(h2, [data-back-button], [data-progress] > div) {
239
+ transition: color 160ms var(--ease-out) 504ms, background-color 160ms var(--ease-out) 504ms;
240
+ }
241
+ [data-motion="story"][data-tone="inverse"] [data-progress-fill] {
242
+ transition: transform 520ms var(--ease-out), background-color 160ms var(--ease-out) 504ms;
243
+ }
244
+
245
+ /*
246
+ * The statement's words arrive once its colour has filled the screen (flood forward, absorb back),
247
+ * after the morph frame has handed over (504ms). The frame covers the whole page until then, so
248
+ * an entrance that started under it would play unseen and pop in mid-fade when it went.
249
+ */
250
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="flood"],
251
+ [data-motion="story"][data-flow-transition="flow-back"][data-handoff="absorb"] {
252
+ --in-delay: 540ms;
253
+ --in-y: 10px;
254
+ }
255
+ /* After a statement collapses into the bar, the next question rises as the colour clears. */
256
+ [data-motion="story"][data-flow-transition="flow-next"][data-handoff="absorb"] {
257
+ --in-delay: 200ms;
258
+ }
259
+
260
+ /* Back: the reverse path, quicker. Re-explaining came from above, so going back it rises from below. */
261
+ [data-motion="story"][data-flow-transition="flow-back"] {
262
+ --in-delay: 60ms;
263
+ --in-ms: 300ms;
264
+ --in-y: -10px;
265
+ --line-gap: 40ms;
266
+ --opt-lead: 60ms;
267
+ --stagger: 25ms;
268
+ --img-lead: 60ms;
269
+ --btn-lead: 100ms;
270
+ }
271
+ [data-motion="story"][data-flow-transition="flow-back"][data-handoff="again"] {
272
+ --in-y: 10px;
273
+ }
274
+
275
+ /* Keyboard and browser navigation: a plain fade. */
276
+ [data-motion="story"][data-handoff="plain"] {
277
+ --in-ms: 200ms;
278
+ --in-delay: 0ms;
279
+ --in-y: 0px;
280
+ --in-scale: 1;
281
+ --line-gap: 0ms;
282
+ --opt-lead: 0ms;
283
+ --stagger: 0ms;
284
+ --img-lead: 0ms;
285
+ --btn-lead: 0ms;
286
+ }
287
+
288
+ /* Reduced motion: opacity only, nothing moves (the script also skips its exits). */
289
+ @media (prefers-reduced-motion: reduce) {
290
+ [data-motion="story"][data-handoff] {
291
+ --in-ms: 200ms !important;
292
+ --in-delay: 0ms !important;
293
+ --in-y: 0px !important;
294
+ --in-scale: 1 !important;
295
+ --line-gap: 0ms !important;
296
+ --opt-lead: 0ms !important;
297
+ --stagger: 0ms !important;
298
+ --img-lead: 0ms !important;
299
+ --btn-lead: 0ms !important;
300
+ }
301
+ }