[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115292":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},115292,"sakuga-vfx","finktheartist\u002Fsakuga-vfx","finktheartist","Twelve ordinary UI controls that react like anime. One file each, no dependencies.","https:\u002F\u002Fsakuga-vfx.vercel.app",null,"HTML",447,45,127,0,11,148,63,94.93,"MIT License",false,"main",true,[],"2026-11-15 21:19:34","2026-11-23 18:18:08","# Sakuga VFX\n\nOrdinary UI controls that react like anime. At rest they are plain. Use one and it squashes and overshoots on springs, and throws drawn effects around itself: smoke puffs, impact bursts, crystal chips, slashes, splashes and smoke rings, with manga sound-effect lettering (ドン!, カチッ, ズザッ). No characters, just the way a key animator would sell a hit.\n\nEvery effect is drawn in code on one canvas over the page. The lettering was painted with GPT Image and traced to paths, and the toggle is 43 painted frames; both live inside the component files, so there is nothing else to fetch. No dependencies, no build step for you, MIT licensed.\n\n## The twelve\n\n| | element | what happens |\n|---|---|---|\n| [Button](button\u002F) | `\u003Csakuga-button>` | Press and it squashes flat. Let go and it inverts for one frame, a burst goes off behind it, clouds roll off the corners and ドン! lands. `done()` puts a check on it. The secondary variant is a small squash and three wedges. |\n| [Toggle](toggle\u002F) | `\u003Csakuga-toggle>` | A drawn animation: the knob smears across, slams into the end and throws up a splash, and the track floods and settles. |\n| [Slider](slider\u002F) | `\u003Csakuga-slider>` | The thumb stretches into a teardrop and lags on a spring. Drag fast and cumulus rolls up behind it; let go and a crescent flies on ahead. |\n| [Checkbox](checkbox\u002F) | `\u003Csakuga-checkbox>` | Two crescents swing round the box, crystals fly, the tick draws itself, ズザッ in dotted letters. |\n| [Radio](radio\u002F) | `\u003Csakuga-radio>` | The dot springs in, a fan of wedges, two puffs and a hollow ポン. |\n| [Input](input\u002F) | `\u003Csakuga-input>` | Every key kicks up dust where the caret is. |\n| [Tabs](tabs\u002F) | `\u003Csakuga-tabs>` | The raised tab slides, stretching, and lands with wedges and a puff. |\n| [Progress](progress\u002F) | `\u003Csakuga-progress>` | A storm cloud rides the leading edge, pebbles lift off the ground, ゴゴゴゴ; at the end a burst, ドン! and a check. |\n| [Rating](rating\u002F) | `\u003Csakuga-rating>` | Stars pop in one after another; five gets a burst. |\n| [Toast](toast\u002F) | `\u003Csakuga-toast>` | Streaks in as a smear, lands in dust with ズザッ, leaves by shrinking. |\n| [Tooltip](tooltip\u002F) | `\u003Csakuga-tooltip>` | The hint springs out like a speech bubble with puffs and カチッ. |\n\n## The look\n\nWhite paper, two-tone effects (white, lavender and a violet line), pink accents, and an impact burst on every confirm. The controls' colours are `--sk-*` CSS variables (`--sk-ink`, `--sk-card`, `--sk-pri`, `--sk-acc` and so on), and a page's own `:root { --sk-acc: ... }` wins over the defaults.\n\n## Try them\n\nLive: https:\u002F\u002Fsakuga-vfx.vercel.app\n\nOr run it yourself:\n\n```sh\npython3 -m http.server 8000     # from this folder\n# open http:\u002F\u002Flocalhost:8000\u002F\n```\n\nThat opens the gallery, with all twelve live.\n\n## Use one\n\nEach is a single file that defines an element. Install it with the shadcn CLI, which puts the file in `public\u002Fsakuga-vfx\u002F`:\n\n```sh\nnpx shadcn add finktheartist\u002Fsakuga-vfx\u002Fbutton\nnpx shadcn add finktheartist\u002Fsakuga-vfx\u002Ftoggle\nnpx shadcn add finktheartist\u002Fsakuga-vfx\u002Fslider\n# ...checkbox, radio, input, tabs, progress, rating, toast, tooltip\n```\n\nOr copy the file into your project by hand. Then load it with a plain script tag and use its element:\n\n```html\n\u003Cscript src=\"button.js\">\u003C\u002Fscript>\n\u003Csakuga-button>Confirm\u003C\u002Fsakuga-button>\n\n\u003Cscript src=\"toggle.js\">\u003C\u002Fscript>\n\u003Csakuga-toggle label=\"Notifications\">\u003C\u002Fsakuga-toggle>\n\n\u003Cscript src=\"progress.js\">\u003C\u002Fscript>\n\u003Csakuga-progress label=\"Uploading\">\u003C\u002Fsakuga-progress>   \u003C!-- then el.set(0.4) -->\n```\n\nEach folder's README lists the attributes, properties and events. The value controls (toggle, slider, checkbox, radio, input, rating) work inside a `\u003Cform>` like the native ones.\n\n**How the files share.** Each file carries its own copy of the core (springs, the effects layer, the lettering, about 40 KB). The first one loaded sets `window.SakugaFX` and the others reuse it, so any mix of them on a page shares one canvas and one animation loop. The toggle is about 500 KB because its frames are inside it.\n\nFor agents, [llms.txt](llms.txt) lists every file and what it is. In the gallery each control has its install line and a \"Copy a prompt for your agent\" button; the prompt points a coding agent at the real file and tells it to wire it in, not redraw it.\n\n## Make your own\n\n`skills\u002Fsakuga-vfx\u002F` is the workflow these were made by, written as a skill for a coding agent. Install it with:\n\n```sh\nnpx skills add finktheartist\u002Fsakuga-vfx\n```\n\nOr copy the folder into your agent's skills folder by hand (for Claude Code, `~\u002F.claude\u002Fskills\u002F`). It has four files:\n\n- `SKILL.md` is the workflow and the rules.\n- `core.js` is the core every component is built on.\n- `starter.html` is the smallest whole example, a like button.\n- `look.mjs` stops the clock, steps a reaction to chosen moments and saves the frames side by side.\n\nAn agent with the skill gets a reasonable first pass. These took many rounds of looking at frames and fixing them, and yours will too.\n\n## Working on this repo\n\n- `core.js` is the source of the shared core. After editing it, run `node tools\u002Fbuild.mjs`, which copies it into every component file (between the `\u002F\u002F >>> sakuga core` markers) and into the skill. `node tools\u002Fbuild.mjs --check` exits 1 if any file is out of date.\n- `art\u002Fwords\u002F` holds the six painted sound-effect words. `tools\u002Ftrace.py` traces them into paths and writes them into `core.js` (`uv run --with potracer --with pillow --with numpy python tools\u002Ftrace.py`).\n- `toggle\u002Fframes.webp` is the toggle's sprite sheet (43 frames, 8 across, 300 by 325 each). The build writes it into `toggle.js`.\n- `node tools\u002Ftest.mjs http:\u002F\u002Flocalhost:8000\u002Fgallery\u002F` drives every control with real touch and key events at phone width, checks form values and sideways scroll, and exits 1 on a failure. `node tools\u002Fshot.mjs URL OUT W H SCALE` takes a full-page screenshot. Both need Chrome or Chromium (`CHROME=...` if it is somewhere unusual).\n\n## Limits\n\n- **Checked in headless Chromium,** with real touch and key events and frame-by-frame sheets. Not yet tried in Safari or Firefox, on a real phone, or with a screen reader.\n- **The effects canvas sits on top of everything,** at the highest z-index, and ignores the pointer. Effects can fly over a modal or a sticky header.\n- **Effects behind a control are drawn inside it** (the button's and the progress bar's bursts, the five-star burst) and are cut off by a parent with `overflow: hidden`.\n- **Reduced motion** turns every effect off; the springs and the state changes stay.\n\n## License\n\nMIT. See [LICENSE](LICENSE). The sound-effect lettering and the toggle frames were generated with GPT Image (through Higgsfield) for this project.\n","Sakuga VFX 是一套面向 Web 的动漫风格 UI 控件库，提供 12 个开箱即用的自定义 HTML 元素（如按钮、开关、滑块等），在交互时呈现手绘动画效果，包括弹簧形变、冲击爆发、烟雾环、拟声字（如「ドン!」「カチッ」）等。所有效果均通过单个 Canvas 动态绘制，无外部依赖、无需构建步骤，仅需引入对应 HTML 文件即可使用。适用于需要轻量级、高表现力且具二次元\u002F动画质感的网页界面，如创意展示页、粉丝向应用、互动式宣传页或设计系统原型。",2,"2026-11-24 04:50:34","CREATED_QUERY"]