@yewdiel21/motion-kit 0.0.0-stage → 0.9.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 (391) hide show
  1. package/NOTICE +38 -0
  2. package/README.md +80 -2
  3. package/bin/motion-kit.mjs +242 -0
  4. package/css.d.ts +2 -0
  5. package/dist/auto/index.d.ts +63 -0
  6. package/dist/auto/index.js +207 -0
  7. package/dist/auto/index.js.map +1 -0
  8. package/dist/chunk-2BQGFOA7.js +177 -0
  9. package/dist/chunk-2BQGFOA7.js.map +1 -0
  10. package/dist/chunk-34XYOXHG.js +2374 -0
  11. package/dist/chunk-34XYOXHG.js.map +1 -0
  12. package/dist/chunk-6OJAP6ZL.js +832 -0
  13. package/dist/chunk-6OJAP6ZL.js.map +1 -0
  14. package/dist/chunk-ABNRDDO7.js +28 -0
  15. package/dist/chunk-ABNRDDO7.js.map +1 -0
  16. package/dist/chunk-FS2HJVVY.js +3320 -0
  17. package/dist/chunk-FS2HJVVY.js.map +1 -0
  18. package/dist/chunk-J27KH2A2.js +157 -0
  19. package/dist/chunk-J27KH2A2.js.map +1 -0
  20. package/dist/chunk-KLY5BRRI.js +18 -0
  21. package/dist/chunk-KLY5BRRI.js.map +1 -0
  22. package/dist/chunk-Q4LVFNLN.js +1617 -0
  23. package/dist/chunk-Q4LVFNLN.js.map +1 -0
  24. package/dist/chunk-RFDIZYFX.js +304 -0
  25. package/dist/chunk-RFDIZYFX.js.map +1 -0
  26. package/dist/chunk-TGV27ZWM.js +17 -0
  27. package/dist/chunk-TGV27ZWM.js.map +1 -0
  28. package/dist/confetti-BSX1CLLV.d.ts +41 -0
  29. package/dist/css/components/chat-background.css +87 -0
  30. package/dist/css/components/chat.css +237 -0
  31. package/dist/css/components/cursor.css +178 -0
  32. package/dist/css/components/dialog.css +259 -0
  33. package/dist/css/components/island.css +301 -0
  34. package/dist/css/components/menu.css +105 -0
  35. package/dist/css/components/nav.css +1054 -0
  36. package/dist/css/components/steps.css +50 -0
  37. package/dist/css/components/theme-picker.css +115 -0
  38. package/dist/css/components/toast.css +115 -0
  39. package/dist/css/controls.css +950 -0
  40. package/dist/css/effects.css +587 -0
  41. package/dist/css/fonts.css +3 -0
  42. package/dist/css/themes/black-green.css +126 -0
  43. package/dist/css/themes/black.css +126 -0
  44. package/dist/css/themes/blue.css +126 -0
  45. package/dist/css/themes/brown.css +126 -0
  46. package/dist/css/themes/cold-blue.css +126 -0
  47. package/dist/css/themes/funny.css +126 -0
  48. package/dist/css/themes/gray.css +126 -0
  49. package/dist/css/themes/green.css +126 -0
  50. package/dist/css/themes/modern-1.css +126 -0
  51. package/dist/css/themes/neogreen.css +126 -0
  52. package/dist/css/themes/new.css +126 -0
  53. package/dist/css/themes/new2.css +126 -0
  54. package/dist/css/themes/oled.css +126 -0
  55. package/dist/css/themes/orange.css +126 -0
  56. package/dist/css/themes/pastel-pink.css +126 -0
  57. package/dist/css/themes/pink.css +126 -0
  58. package/dist/css/themes/purple.css +126 -0
  59. package/dist/css/themes/red.css +126 -0
  60. package/dist/css/themes/super-blue.css +126 -0
  61. package/dist/css/themes.css +2431 -0
  62. package/dist/css/tokens.css +452 -0
  63. package/dist/elements/index.d.ts +183 -0
  64. package/dist/elements/index.js +472 -0
  65. package/dist/elements/index.js.map +1 -0
  66. package/dist/engine-CUr9QijM.d.ts +46 -0
  67. package/dist/gl/index.d.ts +61 -0
  68. package/dist/gl/index.js +18 -0
  69. package/dist/gl/index.js.map +1 -0
  70. package/dist/index.css +5296 -0
  71. package/dist/index.d.ts +440 -0
  72. package/dist/index.js +390 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/react/index.d.ts +476 -0
  75. package/dist/react/index.js +969 -0
  76. package/dist/react/index.js.map +1 -0
  77. package/dist/reduced-BM4Ls0g5.d.ts +566 -0
  78. package/dist/reveal-WFUWDrei.d.ts +416 -0
  79. package/dist/store-Bqy_obnD.d.ts +195 -0
  80. package/dist/theme/generate.d.ts +18 -0
  81. package/dist/theme/generate.js +64 -0
  82. package/dist/theme/generate.js.map +1 -0
  83. package/dist/theme/index.d.ts +17 -0
  84. package/dist/theme/index.js +32 -0
  85. package/dist/theme/index.js.map +1 -0
  86. package/dist/theme-BFMoCzi6.d.ts +158 -0
  87. package/dist/types-BkS_raL8.d.ts +7 -0
  88. package/package.json +114 -3
  89. package/registry.json +469 -0
  90. package/skills/motion-kit/SKILL.md +189 -0
  91. package/skills/motion-kit/reference/components.md +86 -0
  92. package/skills/motion-kit/reference/design.md +92 -0
  93. package/skills/motion-kit/reference/recipes.md +172 -0
  94. package/src/auto/auto-init.ts +151 -0
  95. package/src/auto/index.ts +3 -0
  96. package/src/auto/parse-options.ts +68 -0
  97. package/src/components/chat/README.md +90 -0
  98. package/src/components/chat/chat.css +236 -0
  99. package/src/components/chat/element.ts +98 -0
  100. package/src/components/chat/engine.ts +295 -0
  101. package/src/components/chat/react.tsx +196 -0
  102. package/src/components/chat-background/README.md +50 -0
  103. package/src/components/chat-background/audio.ts +56 -0
  104. package/src/components/chat-background/chat-background.css +86 -0
  105. package/src/components/chat-background/element.ts +31 -0
  106. package/src/components/chat-background/engine.ts +108 -0
  107. package/src/components/chat-background/react.tsx +36 -0
  108. package/src/components/cursor/README.md +53 -0
  109. package/src/components/cursor/cursor.css +177 -0
  110. package/src/components/cursor/element.ts +23 -0
  111. package/src/components/cursor/engine.ts +254 -0
  112. package/src/components/cursor/react.tsx +26 -0
  113. package/src/components/dialog/README.md +106 -0
  114. package/src/components/dialog/dialog.css +258 -0
  115. package/src/components/dialog/element.ts +118 -0
  116. package/src/components/dialog/engine.ts +432 -0
  117. package/src/components/dialog/react.tsx +200 -0
  118. package/src/components/icon.tsx +10 -0
  119. package/src/components/icons.ts +24 -0
  120. package/src/components/island/README.md +91 -0
  121. package/src/components/island/element.ts +45 -0
  122. package/src/components/island/engine.ts +200 -0
  123. package/src/components/island/island.css +300 -0
  124. package/src/components/island/react.tsx +115 -0
  125. package/src/components/menu/README.md +67 -0
  126. package/src/components/menu/element.ts +55 -0
  127. package/src/components/menu/engine.ts +142 -0
  128. package/src/components/menu/menu.css +104 -0
  129. package/src/components/menu/react.tsx +82 -0
  130. package/src/components/nav/README.md +85 -0
  131. package/src/components/nav/element.ts +39 -0
  132. package/src/components/nav/engine.ts +164 -0
  133. package/src/components/nav/nav.css +1053 -0
  134. package/src/components/nav/react.tsx +90 -0
  135. package/src/components/steps/README.md +70 -0
  136. package/src/components/steps/element.ts +43 -0
  137. package/src/components/steps/engine.ts +185 -0
  138. package/src/components/steps/react.tsx +91 -0
  139. package/src/components/steps/steps.css +49 -0
  140. package/src/components/theme-picker/README.md +57 -0
  141. package/src/components/theme-picker/element.ts +20 -0
  142. package/src/components/theme-picker/engine.ts +91 -0
  143. package/src/components/theme-picker/react.tsx +31 -0
  144. package/src/components/theme-picker/theme-picker.css +114 -0
  145. package/src/components/toast/README.md +60 -0
  146. package/src/components/toast/element.ts +25 -0
  147. package/src/components/toast/engine.ts +483 -0
  148. package/src/components/toast/react.tsx +22 -0
  149. package/src/components/toast/store.ts +122 -0
  150. package/src/components/toast/toast.css +114 -0
  151. package/src/core/channels.ts +165 -0
  152. package/src/core/curves.ts +35 -0
  153. package/src/core/frame.ts +12 -0
  154. package/src/core/gsap.ts +65 -0
  155. package/src/core/loop.ts +44 -0
  156. package/src/core/math.ts +9 -0
  157. package/src/core/physics-spring.ts +59 -0
  158. package/src/core/pointer.ts +63 -0
  159. package/src/core/reduced.ts +21 -0
  160. package/src/core/scope.ts +70 -0
  161. package/src/core/scroll-track.ts +106 -0
  162. package/src/core/split.ts +68 -0
  163. package/src/core/spring.ts +22 -0
  164. package/src/core/styles.ts +31 -0
  165. package/src/core/timing.ts +204 -0
  166. package/src/core/types.ts +20 -0
  167. package/src/core/visible.ts +19 -0
  168. package/src/css/base.css +142 -0
  169. package/src/css/controls/README.md +122 -0
  170. package/src/css/controls/burger.css +67 -0
  171. package/src/css/controls/button.css +226 -0
  172. package/src/css/controls/checkbox.css +53 -0
  173. package/src/css/controls/chip.css +85 -0
  174. package/src/css/controls/field.css +124 -0
  175. package/src/css/controls/glass.css +220 -0
  176. package/src/css/controls/icon.css +26 -0
  177. package/src/css/controls/segmented.css +60 -0
  178. package/src/css/controls/switch.css +72 -0
  179. package/src/css/default-theme.css +123 -0
  180. package/src/css/effects/README.md +134 -0
  181. package/src/css/effects/anim.css +224 -0
  182. package/src/css/effects/fade.css +15 -0
  183. package/src/css/effects/float.css +64 -0
  184. package/src/css/effects/frost.css +62 -0
  185. package/src/css/effects/grain.css +58 -0
  186. package/src/css/effects/loading.css +60 -0
  187. package/src/css/effects/success.css +22 -0
  188. package/src/css/effects/text.css +67 -0
  189. package/src/css/fonts.css +3 -0
  190. package/src/css/states.css +51 -0
  191. package/src/css/themes/black-green.css +126 -0
  192. package/src/css/themes/black.css +126 -0
  193. package/src/css/themes/blue.css +126 -0
  194. package/src/css/themes/brown.css +126 -0
  195. package/src/css/themes/cold-blue.css +126 -0
  196. package/src/css/themes/funny.css +126 -0
  197. package/src/css/themes/gray.css +126 -0
  198. package/src/css/themes/green.css +126 -0
  199. package/src/css/themes/modern-1.css +126 -0
  200. package/src/css/themes/neogreen.css +126 -0
  201. package/src/css/themes/new.css +126 -0
  202. package/src/css/themes/new2.css +126 -0
  203. package/src/css/themes/oled.css +126 -0
  204. package/src/css/themes/orange.css +126 -0
  205. package/src/css/themes/pastel-pink.css +126 -0
  206. package/src/css/themes/pink.css +126 -0
  207. package/src/css/themes/purple.css +126 -0
  208. package/src/css/themes/red.css +126 -0
  209. package/src/css/themes/super-blue.css +126 -0
  210. package/src/css/tokens.css +182 -0
  211. package/src/elements/base.ts +76 -0
  212. package/src/elements/index.ts +48 -0
  213. package/src/gl/index.ts +15 -0
  214. package/src/gl/liquid-blend/README.md +23 -0
  215. package/src/gl/liquid-blend/create-liquid-blend.ts +7 -0
  216. package/src/gl/liquid-blend/shader.ts +9 -0
  217. package/src/gl/matcap/README.md +23 -0
  218. package/src/gl/matcap/create-matcap.ts +7 -0
  219. package/src/gl/matcap/shader.ts +16 -0
  220. package/src/gl/particle-hero/README.md +41 -0
  221. package/src/gl/particle-hero/create-particle-hero.ts +544 -0
  222. package/src/gl/particle-hero/particle-hero.css +19 -0
  223. package/src/gl/particle-hero/shaders.ts +84 -0
  224. package/src/gl/shader-blur/README.md +23 -0
  225. package/src/gl/shader-blur/create-shader-blur.ts +7 -0
  226. package/src/gl/shader-blur/shader.ts +11 -0
  227. package/src/gl/shader-grain/README.md +23 -0
  228. package/src/gl/shader-grain/create-shader-grain.ts +7 -0
  229. package/src/gl/shader-grain/shader.ts +6 -0
  230. package/src/gl/shared/create-shader-effect.ts +186 -0
  231. package/src/gl/shared/shader.css +3 -0
  232. package/src/gl/shared/shaders.ts +30 -0
  233. package/src/index.ts +177 -0
  234. package/src/motion/anchor.ts +45 -0
  235. package/src/motion/chat.ts +97 -0
  236. package/src/motion/confetti.ts +130 -0
  237. package/src/motion/count.ts +95 -0
  238. package/src/motion/details.ts +70 -0
  239. package/src/motion/drag-dismiss.ts +231 -0
  240. package/src/motion/effects.ts +81 -0
  241. package/src/motion/entrances.ts +27 -0
  242. package/src/motion/floating.ts +389 -0
  243. package/src/motion/flow.ts +115 -0
  244. package/src/motion/indicator.ts +44 -0
  245. package/src/motion/layout.ts +39 -0
  246. package/src/motion/liquid.ts +227 -0
  247. package/src/motion/morph.ts +540 -0
  248. package/src/motion/reveal.ts +112 -0
  249. package/src/motion/sheet.ts +65 -0
  250. package/src/motion/surface.ts +108 -0
  251. package/src/react/animated-number.tsx +30 -0
  252. package/src/react/flip-group.tsx +44 -0
  253. package/src/react/frost.tsx +33 -0
  254. package/src/react/index.ts +80 -0
  255. package/src/react/slot-text.tsx +44 -0
  256. package/src/react/theme-provider.tsx +42 -0
  257. package/src/react/use-card-dock.ts +9 -0
  258. package/src/react/use-cascade.ts +9 -0
  259. package/src/react/use-contrast.ts +9 -0
  260. package/src/react/use-counter.ts +8 -0
  261. package/src/react/use-curved-carousel.ts +10 -0
  262. package/src/react/use-depth-grid.ts +9 -0
  263. package/src/react/use-details.ts +7 -0
  264. package/src/react/use-dock-pill.ts +10 -0
  265. package/src/react/use-drag-ruler.ts +10 -0
  266. package/src/react/use-fill-text.ts +9 -0
  267. package/src/react/use-fit-text.ts +8 -0
  268. package/src/react/use-flow.ts +8 -0
  269. package/src/react/use-frame-zoom.ts +9 -0
  270. package/src/react/use-infinite-reel.ts +8 -0
  271. package/src/react/use-letters.ts +9 -0
  272. package/src/react/use-liquid-blend.ts +8 -0
  273. package/src/react/use-marquee.ts +9 -0
  274. package/src/react/use-mask-text.ts +9 -0
  275. package/src/react/use-matcap.ts +8 -0
  276. package/src/react/use-parallax.ts +9 -0
  277. package/src/react/use-particle-hero.ts +9 -0
  278. package/src/react/use-pile.ts +8 -0
  279. package/src/react/use-pop.ts +8 -0
  280. package/src/react/use-radial-menu.ts +10 -0
  281. package/src/react/use-recipe.ts +38 -0
  282. package/src/react/use-reflow.ts +9 -0
  283. package/src/react/use-repel-bento.ts +8 -0
  284. package/src/react/use-reveal.ts +8 -0
  285. package/src/react/use-rotator.ts +10 -0
  286. package/src/react/use-shader-blur.ts +8 -0
  287. package/src/react/use-shader-grain.ts +8 -0
  288. package/src/react/use-slot-text.ts +17 -0
  289. package/src/react/use-snap-strip.ts +9 -0
  290. package/src/react/use-sortable.ts +14 -0
  291. package/src/react/use-spring-cards.ts +8 -0
  292. package/src/react/use-stretch-footer.ts +20 -0
  293. package/src/react/use-tabs.ts +10 -0
  294. package/src/react/use-text-roll.ts +9 -0
  295. package/src/react/use-ticket-menu.ts +15 -0
  296. package/src/react/use-words.ts +8 -0
  297. package/src/recipes/card-dock/README.md +36 -0
  298. package/src/recipes/card-dock/card-dock.css +178 -0
  299. package/src/recipes/card-dock/create-card-dock.ts +97 -0
  300. package/src/recipes/cascade/README.md +33 -0
  301. package/src/recipes/cascade/create-cascade.ts +111 -0
  302. package/src/recipes/contrast/README.md +29 -0
  303. package/src/recipes/contrast/create-contrast.ts +68 -0
  304. package/src/recipes/counter/README.md +42 -0
  305. package/src/recipes/counter/create-counter.ts +84 -0
  306. package/src/recipes/curved-carousel/README.md +50 -0
  307. package/src/recipes/curved-carousel/carousel-math.ts +20 -0
  308. package/src/recipes/curved-carousel/create-curved-carousel.ts +257 -0
  309. package/src/recipes/curved-carousel/curved-carousel.css +50 -0
  310. package/src/recipes/depth-grid/README.md +30 -0
  311. package/src/recipes/depth-grid/create-depth-grid.ts +120 -0
  312. package/src/recipes/details/README.md +31 -0
  313. package/src/recipes/details/create-details.ts +27 -0
  314. package/src/recipes/dock-pill/README.md +23 -0
  315. package/src/recipes/dock-pill/create-dock-pill.ts +68 -0
  316. package/src/recipes/dock-pill/dock-pill.css +5 -0
  317. package/src/recipes/drag-ruler/README.md +21 -0
  318. package/src/recipes/drag-ruler/create-drag-ruler.ts +95 -0
  319. package/src/recipes/drag-ruler/drag-ruler.css +16 -0
  320. package/src/recipes/fill-text/README.md +27 -0
  321. package/src/recipes/fill-text/create-fill-text.ts +93 -0
  322. package/src/recipes/fit-text/README.md +37 -0
  323. package/src/recipes/fit-text/create-fit-text.ts +55 -0
  324. package/src/recipes/fit-text/fit-text.css +6 -0
  325. package/src/recipes/flow/README.md +46 -0
  326. package/src/recipes/flow/create-flow.ts +55 -0
  327. package/src/recipes/frame-zoom/README.md +29 -0
  328. package/src/recipes/frame-zoom/create-frame-zoom.ts +91 -0
  329. package/src/recipes/infinite-reel/README.md +23 -0
  330. package/src/recipes/infinite-reel/create-infinite-reel.ts +140 -0
  331. package/src/recipes/infinite-reel/infinite-reel.css +8 -0
  332. package/src/recipes/letters/README.md +30 -0
  333. package/src/recipes/letters/create-letters.ts +113 -0
  334. package/src/recipes/marquee/README.md +32 -0
  335. package/src/recipes/marquee/create-marquee.ts +74 -0
  336. package/src/recipes/marquee/marquee.css +41 -0
  337. package/src/recipes/mask-text/README.md +39 -0
  338. package/src/recipes/mask-text/create-mask-text.ts +134 -0
  339. package/src/recipes/parallax/README.md +31 -0
  340. package/src/recipes/parallax/create-parallax.ts +74 -0
  341. package/src/recipes/pile/README.md +48 -0
  342. package/src/recipes/pile/create-pile.ts +50 -0
  343. package/src/recipes/pile/pile-math.ts +27 -0
  344. package/src/recipes/pile/pile.css +63 -0
  345. package/src/recipes/pill/README.md +30 -0
  346. package/src/recipes/pill/pill.css +48 -0
  347. package/src/recipes/pop/README.md +36 -0
  348. package/src/recipes/pop/create-pop.ts +52 -0
  349. package/src/recipes/radial-menu/README.md +44 -0
  350. package/src/recipes/radial-menu/create-radial-menu.ts +96 -0
  351. package/src/recipes/radial-menu/radial-menu.css +45 -0
  352. package/src/recipes/reflow/README.md +47 -0
  353. package/src/recipes/reflow/create-reflow.ts +49 -0
  354. package/src/recipes/repel-bento/README.md +21 -0
  355. package/src/recipes/repel-bento/create-repel-bento.ts +65 -0
  356. package/src/recipes/repel-bento/repel-bento.css +3 -0
  357. package/src/recipes/reveal/README.md +36 -0
  358. package/src/recipes/reveal/create-reveal.ts +48 -0
  359. package/src/recipes/rotator/README.md +21 -0
  360. package/src/recipes/rotator/create-rotator.ts +66 -0
  361. package/src/recipes/rotator/rotator.css +3 -0
  362. package/src/recipes/slot-text/README.md +44 -0
  363. package/src/recipes/slot-text/create-slot-text.ts +244 -0
  364. package/src/recipes/slot-text/slot-text.css +42 -0
  365. package/src/recipes/snap-strip/README.md +31 -0
  366. package/src/recipes/snap-strip/create-snap-strip.ts +133 -0
  367. package/src/recipes/snap-strip/snap-strip.css +23 -0
  368. package/src/recipes/sortable/README.md +88 -0
  369. package/src/recipes/sortable/create-sortable.ts +863 -0
  370. package/src/recipes/sortable/sortable.css +40 -0
  371. package/src/recipes/spring-cards/README.md +48 -0
  372. package/src/recipes/spring-cards/create-spring-cards.ts +140 -0
  373. package/src/recipes/spring-cards/spring-cards.css +23 -0
  374. package/src/recipes/stretch-footer/README.md +44 -0
  375. package/src/recipes/stretch-footer/create-stretch-footer.ts +69 -0
  376. package/src/recipes/stretch-footer/stretch-footer.css +28 -0
  377. package/src/recipes/tabs/README.md +39 -0
  378. package/src/recipes/tabs/create-tabs.ts +91 -0
  379. package/src/recipes/tabs/tabs.css +19 -0
  380. package/src/recipes/text-roll/README.md +35 -0
  381. package/src/recipes/text-roll/create-text-roll.ts +137 -0
  382. package/src/recipes/text-roll/text-roll.css +21 -0
  383. package/src/recipes/ticket-menu/README.md +24 -0
  384. package/src/recipes/ticket-menu/create-ticket-menu.ts +6 -0
  385. package/src/recipes/words/README.md +43 -0
  386. package/src/recipes/words/create-words.ts +114 -0
  387. package/src/theme/css-format.ts +32 -0
  388. package/src/theme/generate.ts +72 -0
  389. package/src/theme/index.ts +15 -0
  390. package/src/theme/presets.ts +79 -0
  391. package/src/theme/theme.ts +119 -0
@@ -0,0 +1,224 @@
1
+ /* Stepbro's utility animations (shared stylesheet) and Dousan's strong shake. Replay them with animate(el, name). */
2
+ .mk-anim-out {
3
+ animation: mk-out 0.5s ease forwards;
4
+ }
5
+
6
+ .mk-anim-out-left {
7
+ animation: mk-out-left 0.5s ease forwards;
8
+ }
9
+
10
+ .mk-anim-out-bottom {
11
+ animation: mk-out-bottom 0.5s ease forwards;
12
+ }
13
+
14
+ .mk-anim-collapse {
15
+ overflow: hidden;
16
+ animation: mk-collapse 0.25s forwards;
17
+ }
18
+
19
+ .mk-anim-highlight {
20
+ animation: mk-highlight 1s;
21
+ }
22
+
23
+ .mk-anim-shake {
24
+ animation: mk-shake 0.5s cubic-bezier(0.6, 0.6, 0.12, 1.26) forwards;
25
+ }
26
+
27
+ .mk-anim-shake-strong {
28
+ animation: mk-shake-strong 0.4s ease-in-out;
29
+ }
30
+
31
+ .mk-anim-fade {
32
+ animation: mk-fade 0.3s ease both;
33
+ }
34
+
35
+ .mk-anim-wipe {
36
+ position: relative;
37
+ overflow: hidden;
38
+ }
39
+
40
+ .mk-anim-wipe::before {
41
+ position: absolute;
42
+ inset: 0;
43
+ z-index: 1;
44
+ background: linear-gradient(to right, transparent, var(--mk-wipe-color, var(--md-sys-color-surface-container)) 30%);
45
+ content: '';
46
+ pointer-events: none;
47
+ transform: scaleX(1.4) translate(100%);
48
+ transform-origin: right;
49
+ animation: mk-wipe 0.7s cubic-bezier(0.38, 0.49, 0, 1);
50
+ }
51
+
52
+ .mk-anim-progress-in {
53
+ animation: mk-progress-in 1s cubic-bezier(0.75, 0, 0.41, -0.06);
54
+ }
55
+
56
+ @keyframes mk-out {
57
+ from {
58
+ opacity: 1;
59
+ filter: blur(0);
60
+ transform: translateY(0);
61
+ }
62
+
63
+ to {
64
+ opacity: 0;
65
+ filter: blur(16px);
66
+ transform: translateY(-20px);
67
+ }
68
+ }
69
+
70
+ @keyframes mk-out-left {
71
+ from {
72
+ opacity: 1;
73
+ filter: blur(0);
74
+ transform: translate(0);
75
+ }
76
+
77
+ to {
78
+ opacity: 0;
79
+ filter: blur(16px);
80
+ transform: translate(-64px);
81
+ }
82
+ }
83
+
84
+ @keyframes mk-out-bottom {
85
+ from {
86
+ opacity: 1;
87
+ filter: blur(0);
88
+ transform: translateY(0);
89
+ }
90
+
91
+ to {
92
+ opacity: 0;
93
+ filter: blur(16px);
94
+ transform: translateY(24px);
95
+ }
96
+ }
97
+
98
+ @keyframes mk-collapse {
99
+ from {
100
+ max-height: var(--mk-collapse-from, 94px);
101
+ }
102
+
103
+ to {
104
+ max-height: 0;
105
+ margin-bottom: -8px;
106
+ padding-top: 0;
107
+ padding-bottom: 0;
108
+ opacity: 0;
109
+ filter: blur(16px);
110
+ }
111
+ }
112
+
113
+ @keyframes mk-highlight {
114
+ 0% {
115
+ box-shadow: 0 0 0 0 var(--md-sys-color-primary-container) inset;
116
+ transform: scale(1);
117
+ }
118
+
119
+ 50% {
120
+ box-shadow: 0 0 0 4px var(--md-sys-color-primary-container) inset;
121
+ }
122
+
123
+ to {
124
+ box-shadow: 0 0 0 0 var(--md-sys-color-primary-container) inset;
125
+ transform: scale(1);
126
+ }
127
+ }
128
+
129
+ @keyframes mk-shake {
130
+ 0% {
131
+ transform: translate(0);
132
+ }
133
+
134
+ 25% {
135
+ transform: translate(-4px);
136
+ }
137
+
138
+ 50% {
139
+ transform: translate(4px);
140
+ }
141
+
142
+ 75% {
143
+ transform: translate(-4px);
144
+ }
145
+
146
+ to {
147
+ transform: translate(0);
148
+ }
149
+ }
150
+
151
+ @keyframes mk-shake-strong {
152
+ 0% {
153
+ transform: translate(0);
154
+ }
155
+
156
+ 20% {
157
+ transform: translate(-10px);
158
+ }
159
+
160
+ 40% {
161
+ transform: translate(10px);
162
+ }
163
+
164
+ 60% {
165
+ transform: translate(-10px);
166
+ }
167
+
168
+ 80% {
169
+ transform: translate(10px);
170
+ }
171
+
172
+ to {
173
+ transform: translate(0);
174
+ }
175
+ }
176
+
177
+ @keyframes mk-fade {
178
+ from {
179
+ opacity: 0;
180
+ }
181
+
182
+ to {
183
+ opacity: 1;
184
+ }
185
+ }
186
+
187
+ @keyframes mk-wipe {
188
+ from {
189
+ transform: scaleX(1.4) translate(0);
190
+ }
191
+
192
+ to {
193
+ transform: scaleX(1.4) translate(100%);
194
+ }
195
+ }
196
+
197
+ @keyframes mk-progress-in {
198
+ from {
199
+ opacity: 0;
200
+ }
201
+
202
+ to {
203
+ opacity: 1;
204
+ }
205
+ }
206
+
207
+ /* Reduced motion: exits jump to their end; the rest do not play. */
208
+ @media (prefers-reduced-motion: reduce) {
209
+ .mk-anim-out,
210
+ .mk-anim-out-left,
211
+ .mk-anim-out-bottom,
212
+ .mk-anim-collapse {
213
+ animation-duration: 1ms;
214
+ }
215
+
216
+ .mk-anim-highlight,
217
+ .mk-anim-shake,
218
+ .mk-anim-shake-strong,
219
+ .mk-anim-fade,
220
+ .mk-anim-wipe::before,
221
+ .mk-anim-progress-in {
222
+ animation: none;
223
+ }
224
+ }
@@ -0,0 +1,15 @@
1
+ /* Siena's edge masks: content fades out at the edges of a strip or a column. */
2
+ .mk-fade-x {
3
+ -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
4
+ mask-image: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
5
+ }
6
+
7
+ .mk-fade-x-soft {
8
+ -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 30%, #000 70%, transparent 85%);
9
+ mask-image: linear-gradient(to right, transparent 15%, #000 30%, #000 70%, transparent 85%);
10
+ }
11
+
12
+ .mk-fade-y {
13
+ -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
14
+ mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
15
+ }
@@ -0,0 +1,64 @@
1
+ /* .mk-float — Dousan's floating tags: a slow bob (ease-in-out, infinite); children of .mk-float-group alternate Dousan's five paths. */
2
+ .mk-float,
3
+ .mk-float-group > * {
4
+ --mk-float-y: 4px;
5
+ --mk-float-duration: 6s;
6
+ animation: mk-float var(--mk-float-duration) ease-in-out infinite;
7
+ transition: scale var(--mk-dur-press) var(--mk-ease-press);
8
+ }
9
+
10
+ .mk-float-group > :nth-child(5n + 1) {
11
+ --mk-float-y: 4px;
12
+ --mk-float-duration: 5.5s;
13
+ }
14
+
15
+ .mk-float-group > :nth-child(5n + 2) {
16
+ --mk-float-y: -4px;
17
+ --mk-float-duration: 6.2s;
18
+ }
19
+
20
+ .mk-float-group > :nth-child(5n + 3) {
21
+ --mk-float-y: 5px;
22
+ --mk-float-duration: 5.8s;
23
+ }
24
+
25
+ .mk-float-group > :nth-child(5n + 4) {
26
+ --mk-float-y: -5px;
27
+ --mk-float-duration: 5s;
28
+ }
29
+
30
+ .mk-float-group > :nth-child(5n + 5) {
31
+ --mk-float-y: 3.5px;
32
+ --mk-float-duration: 6s;
33
+ }
34
+
35
+ @media (hover: hover) {
36
+ .mk-float:hover,
37
+ .mk-float-group > :hover {
38
+ scale: 1.05;
39
+ }
40
+ }
41
+
42
+ .mk-float:active,
43
+ .mk-float-group > :active {
44
+ scale: 0.98;
45
+ }
46
+
47
+ @keyframes mk-float {
48
+ 0%,
49
+ 100% {
50
+ transform: translateY(calc(var(--mk-float-y) * -1));
51
+ }
52
+
53
+ 50% {
54
+ transform: translateY(var(--mk-float-y));
55
+ }
56
+ }
57
+
58
+ @media (prefers-reduced-motion: reduce) {
59
+ .mk-float,
60
+ .mk-float-group > * {
61
+ animation: none;
62
+ transition: none;
63
+ }
64
+ }
@@ -0,0 +1,62 @@
1
+ /* .mk-frost — Dousan's progressive blur: five backdrop-blur layers with staggered masks, so the blur grows toward the edge. */
2
+ .mk-frost {
3
+ --mk-frost-strength: 1;
4
+ position: absolute;
5
+ inset: auto 0 0;
6
+ z-index: 2;
7
+ height: var(--mk-frost-height, 60px);
8
+ pointer-events: none;
9
+ }
10
+
11
+ .mk-frost--top {
12
+ inset: 0 0 auto;
13
+ }
14
+
15
+ .mk-frost--fixed {
16
+ position: fixed;
17
+ z-index: 40;
18
+ }
19
+
20
+ .mk-frost > i {
21
+ position: absolute;
22
+ inset: 0;
23
+ }
24
+
25
+ .mk-frost--top > i {
26
+ transform: scaleY(-1);
27
+ }
28
+
29
+ .mk-frost > i:nth-child(1) {
30
+ -webkit-backdrop-filter: blur(calc(1px * var(--mk-frost-strength)));
31
+ backdrop-filter: blur(calc(1px * var(--mk-frost-strength)));
32
+ -webkit-mask-image: linear-gradient(transparent 0%, #000 100%);
33
+ mask-image: linear-gradient(transparent 0%, #000 100%);
34
+ }
35
+
36
+ .mk-frost > i:nth-child(2) {
37
+ -webkit-backdrop-filter: blur(calc(1px * var(--mk-frost-strength)));
38
+ backdrop-filter: blur(calc(1px * var(--mk-frost-strength)));
39
+ -webkit-mask-image: linear-gradient(transparent 25%, rgb(0 0 0 / 70%) 80%, #000 100%);
40
+ mask-image: linear-gradient(transparent 25%, rgb(0 0 0 / 70%) 80%, #000 100%);
41
+ }
42
+
43
+ .mk-frost > i:nth-child(3) {
44
+ -webkit-backdrop-filter: blur(calc(1.5px * var(--mk-frost-strength)));
45
+ backdrop-filter: blur(calc(1.5px * var(--mk-frost-strength)));
46
+ -webkit-mask-image: linear-gradient(transparent 45%, rgb(0 0 0 / 50%) 80%, #000 100%);
47
+ mask-image: linear-gradient(transparent 45%, rgb(0 0 0 / 50%) 80%, #000 100%);
48
+ }
49
+
50
+ .mk-frost > i:nth-child(4) {
51
+ -webkit-backdrop-filter: blur(calc(2px * var(--mk-frost-strength)));
52
+ backdrop-filter: blur(calc(2px * var(--mk-frost-strength)));
53
+ -webkit-mask-image: linear-gradient(transparent 65%, rgb(0 0 0 / 30%) 85%, #000 100%);
54
+ mask-image: linear-gradient(transparent 65%, rgb(0 0 0 / 30%) 85%, #000 100%);
55
+ }
56
+
57
+ .mk-frost > i:nth-child(5) {
58
+ -webkit-backdrop-filter: blur(calc(2.5px * var(--mk-frost-strength)));
59
+ backdrop-filter: blur(calc(2.5px * var(--mk-frost-strength)));
60
+ -webkit-mask-image: linear-gradient(transparent 80%, rgb(0 0 0 / 20%) 90%, #000 100%);
61
+ mask-image: linear-gradient(transparent 80%, rgb(0 0 0 / 20%) 90%, #000 100%);
62
+ }
@@ -0,0 +1,58 @@
1
+ /* .mk-grain — film grain (Siena's noise, .07) in CSS: an SVG turbulence tile that jumps between 8 places, like film. */
2
+ :where(.mk-grain) {
3
+ position: relative;
4
+ isolation: isolate;
5
+ }
6
+
7
+ .mk-grain::after {
8
+ position: absolute;
9
+ inset: 0;
10
+ z-index: 1;
11
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
12
+ background-size: 180px 180px;
13
+ content: '';
14
+ mix-blend-mode: overlay;
15
+ opacity: var(--mk-grain, 0.07);
16
+ pointer-events: none;
17
+ animation: mk-grain 0.8s steps(1) infinite;
18
+ }
19
+
20
+ @keyframes mk-grain {
21
+ 0% {
22
+ background-position: 0 0;
23
+ }
24
+
25
+ 12.5% {
26
+ background-position: -40px 25px;
27
+ }
28
+
29
+ 25% {
30
+ background-position: 30px -50px;
31
+ }
32
+
33
+ 37.5% {
34
+ background-position: -10px 70px;
35
+ }
36
+
37
+ 50% {
38
+ background-position: 60px 10px;
39
+ }
40
+
41
+ 62.5% {
42
+ background-position: -50px -30px;
43
+ }
44
+
45
+ 75% {
46
+ background-position: 20px 60px;
47
+ }
48
+
49
+ 87.5% {
50
+ background-position: -60px -10px;
51
+ }
52
+ }
53
+
54
+ @media (prefers-reduced-motion: reduce) {
55
+ .mk-grain::after {
56
+ animation: none;
57
+ }
58
+ }
@@ -0,0 +1,60 @@
1
+ /* Stepbro's loading sweeps (animation-loading-1 / -2) and hover shimmer (hover-magic-1). */
2
+ .mk-loading {
3
+ position: relative;
4
+ overflow: hidden;
5
+ pointer-events: none;
6
+ }
7
+
8
+ .mk-loading::before {
9
+ position: absolute;
10
+ inset: 0;
11
+ z-index: 2;
12
+ border-radius: inherit;
13
+ background: linear-gradient(to right, transparent, light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 5%)), transparent);
14
+ box-shadow: none;
15
+ content: '';
16
+ opacity: 1;
17
+ transform: translate(-100%);
18
+ animation: mk-sweep 1s infinite;
19
+ }
20
+
21
+ .mk-loading--soft::before {
22
+ z-index: 20;
23
+ background: linear-gradient(
24
+ to right,
25
+ transparent,
26
+ color-mix(in srgb, var(--mk-loading-color, var(--md-sys-color-background)), transparent 20%),
27
+ transparent
28
+ );
29
+ }
30
+
31
+ .mk-shimmer {
32
+ position: relative;
33
+ overflow: hidden;
34
+ transition:
35
+ transform 0.25s cubic-bezier(0, 0, 0.5, 1),
36
+ box-shadow 0.25s cubic-bezier(0, 0, 0.5, 1);
37
+ }
38
+
39
+ .mk-shimmer::before {
40
+ position: absolute;
41
+ inset: 0;
42
+ background: linear-gradient(to right, transparent, rgb(255 255 255 / 10%), transparent);
43
+ content: '';
44
+ pointer-events: none;
45
+ transform: translate(-100%);
46
+ animation: mk-sweep 2s infinite;
47
+ }
48
+
49
+ @keyframes mk-sweep {
50
+ to {
51
+ transform: translate(100%);
52
+ }
53
+ }
54
+
55
+ @media (prefers-reduced-motion: reduce) {
56
+ .mk-loading::before,
57
+ .mk-shimmer::before {
58
+ animation: none;
59
+ }
60
+ }
@@ -0,0 +1,22 @@
1
+ /* .mk-success — Dousan's success mark: grows and untwists on a 260/18 spring after 0.15 s. Pair it with confetti(). */
2
+ .mk-success {
3
+ display: inline-grid;
4
+ place-items: center;
5
+ animation: mk-success-in var(--mk-dur-success) var(--mk-ease-success) 0.15s both;
6
+ }
7
+
8
+ @keyframes mk-success-in {
9
+ from {
10
+ transform: scale(0) rotate(-45deg);
11
+ }
12
+
13
+ to {
14
+ transform: scale(1) rotate(0);
15
+ }
16
+ }
17
+
18
+ @media (prefers-reduced-motion: reduce) {
19
+ .mk-success {
20
+ animation: none;
21
+ }
22
+ }
@@ -0,0 +1,67 @@
1
+ /* Stepbro's animated gradient text: a rainbow (6 s) and one in the theme's colours (8 s). */
2
+ .mk-text-rainbow,
3
+ .mk-text-gradient {
4
+ -webkit-background-clip: text;
5
+ background-clip: text;
6
+ -webkit-text-fill-color: transparent;
7
+ }
8
+
9
+ .mk-text-rainbow {
10
+ background-image: linear-gradient(
11
+ 90deg,
12
+ light-dark(#b00020, #ff6b8a),
13
+ light-dark(#b54700, #ffb15a),
14
+ light-dark(#8a6a00, #ffe27a),
15
+ light-dark(#0a7a2f, #7bff9b),
16
+ light-dark(#006c84, #7fe8ff),
17
+ light-dark(#0050c7, #89a8ff) 80%,
18
+ light-dark(#6f2dbd, #d2a6ff)
19
+ );
20
+ background-size: 300% 100%;
21
+ animation: mk-rainbow 6s linear infinite;
22
+ }
23
+
24
+ .mk-text-gradient {
25
+ background-image: linear-gradient(
26
+ 120deg,
27
+ var(--md-sys-color-primary) 0%,
28
+ var(--md-sys-color-primary-container) 20%,
29
+ var(--md-sys-color-secondary) 40%,
30
+ var(--md-sys-color-secondary-container) 60%,
31
+ var(--md-sys-color-tertiary) 80%,
32
+ var(--md-sys-color-tertiary-container) 100%
33
+ );
34
+ background-size: 240% 240%;
35
+ animation: mk-gradient-flow 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
36
+ }
37
+
38
+ @keyframes mk-rainbow {
39
+ from {
40
+ background-position: 0% 50%;
41
+ }
42
+
43
+ to {
44
+ background-position: 300% 50%;
45
+ }
46
+ }
47
+
48
+ @keyframes mk-gradient-flow {
49
+ 0% {
50
+ background-position: 0% 50%;
51
+ }
52
+
53
+ 50% {
54
+ background-position: 100% 50%;
55
+ }
56
+
57
+ to {
58
+ background-position: 0% 50%;
59
+ }
60
+ }
61
+
62
+ @media (prefers-reduced-motion: reduce) {
63
+ .mk-text-rainbow,
64
+ .mk-text-gradient {
65
+ animation: none;
66
+ }
67
+ }
@@ -0,0 +1,3 @@
1
+ /* Stepbro's fonts from Google Fonts: DM Sans (variable), Geist Mono, Material Symbols Rounded (FILL/wght axes).
2
+ Optional: without it the tokens fall back to system fonts. */
3
+ @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Geist+Mono:wght@100..900&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Initial (hidden) entrance states. They apply only when MK_HEAD_SCRIPT has added
3
+ * `.mk-js` to <html>, only with motion allowed, and they are dropped again if no
4
+ * recipe started in time (`.mk-failed`). Without JavaScript everything is visible.
5
+ */
6
+ @media (prefers-reduced-motion: no-preference) {
7
+ .mk-js:not(.mk-failed) [data-mk~='words']:not([data-mk-ready]) {
8
+ visibility: hidden;
9
+ }
10
+
11
+ .mk-js:not(.mk-failed) [data-mk~='counter']:not([data-mk-ready]),
12
+ .mk-js:not(.mk-failed) [data-mk~='reveal'][data-mk-trigger='load']:not([data-mk-ready]) {
13
+ visibility: hidden;
14
+ }
15
+
16
+ /* iyo: the island drops in from above, the fill-text starts dimmed. */
17
+ .mk-js:not(.mk-failed) :is(.mk-island, mk-island):not([data-mk-ready]) .mk-island__shell {
18
+ visibility: hidden;
19
+ }
20
+
21
+ .mk-js:not(.mk-failed) [data-mk~='fill-text']:not([data-mk-ready]) {
22
+ opacity: 0.2;
23
+ }
24
+
25
+ .mk-js:not(.mk-failed) [data-mk~='mask-text']:not([data-mk-ready]),
26
+ .mk-js:not(.mk-failed) [data-mk~='cascade']:not([data-mk-ready]) [data-mk-cascade] {
27
+ visibility: hidden;
28
+ }
29
+
30
+ .mk-js:not(.mk-failed) [data-mk~='flow']:not([data-mk-ready]) > *,
31
+ .mk-js:not(.mk-failed) [data-mk~='pop']:not([data-mk-ready]) {
32
+ opacity: 0;
33
+ }
34
+
35
+ .mk-js:not(.mk-failed) [data-mk~='spring-cards']:not([data-mk-ready]) [data-mk-card] {
36
+ transform: scale(0);
37
+ }
38
+
39
+ .mk-js:not(.mk-failed) .mk-pile:not([data-mk-inview]) .mk-pile__media {
40
+ scale: 0.7;
41
+ }
42
+
43
+ .mk-js:not(.mk-failed) .mk-pile:not([data-mk-inview]) .mk-pile__shadow {
44
+ opacity: 0;
45
+ }
46
+
47
+ .mk-js:not(.mk-failed) [data-mk-carousel]:not([data-mk-inview]) .mk-carousel__media {
48
+ scale: 0.8;
49
+ translate: 0 20%;
50
+ }
51
+ }