From ba74b6b4168c329c84b5621d2e9129661c785e1c Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 4 Jun 2026 14:35:19 +0200 Subject: [PATCH] feat(scroll-frames): adapt to framework + demo; add genie-class motion presets ScrollFrames (eidos) rebuilt as a first-class component -- it was draft WIP using bare native APIs. - No native globals: window scroll/resize -> dom.listen + dom.observeResize; requestAnimationFrame -> dom.raf (disposer); window.innerHeight / devicePixelRatio -> dom.getWindow(node); new Image() -> dom.getDocument().createElement('img'). - lang="ts" + typed props (types.ts) + index.ts + data-attrs + recipe CSS (no scoped \ No newline at end of file diff --git a/src/uix/eidos/components/scroll-frames/types.ts b/src/uix/eidos/components/scroll-frames/types.ts new file mode 100644 index 000000000..d8572d512 --- /dev/null +++ b/src/uix/eidos/components/scroll-frames/types.ts @@ -0,0 +1,39 @@ +import type { HTMLAttributes } from 'svelte/elements'; + +/** + * `ScrollFrames` — scroll-driven media scrubbing. Two mutually-exclusive modes + * (pick one by which prop you pass): + * + * - `video` → scrubs a `