cube-motion
Skill by danielwh2
Adds four fixed UI motions (rise, leave, morph, reveal) built on the Web Animations API. It has zero dependencies and optional React, Vue, Solid and Svelte adapters. Aimed at developers who want consistent interface animation.
Install cube-motion
Built from the published package, never by AI.
git clone --depth 1 https://github.com/danielwh2/cube-motion /tmp/cube-motion && mkdir -p ~/.claude/skills && cp -r /tmp/cube-motion/skills/cube-motion ~/.claude/skills/cube-motionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/danielwh2/cube-motion /tmp/cube-motion && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cube-motion/skills/cube-motion ~/.gemini/antigravity-cli/skills/cube-motionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
cube-motion provides four fixed UI motions built on the Web Animations API: rise, leave, morph and reveal. It has zero dependencies and no options for duration, easing or distance, so the developer picks the motion that fits the job. Rise brings content in, leave animates content out before removal, morph swaps between two faces such as an icon or label, and reveal hides cards until they scroll into view.
Optional adapters provide Rise, Morph and Reveal components or hooks for React, Vue and Solid, and transitions and actions for Svelte. Every motion reads the current computed state, so an interrupted animation continues smoothly. Motion is reduced when prefers-reduced-motion is set. It suits developers building animated web interfaces such as toasts, dialogs, lists and card grids.
Written from the project's SKILL.md and checked against it.
What it can do
- riseFades and lifts an element or its children into view on mount, with optional stagger.
- leaveFades and drops an element out, so the node can be removed after the animation finishes.
- morphAnimates a swap between two faces, splitting text by grapheme where possible.
- revealHides elements and rises them on first intersection with the viewport during scrolling.
- React, Vue and Solid componentsRise, Morph and Reveal components and hooks that handle mount and unmount animation.
- Svelte transitions and actionsIn, out and action forms of rise, leave, morph and reveal for Svelte 4 and 5.
- Reduced motion supportDrops translate, scale and blur when prefers-reduced-motion is set, keeping opacity changes.
- Interruptible animationsEach motion reads the element's current state and continues from there when interrupted.
What you need
- npm to install the cube-motion package
Try asking
- Use cube-motion to animate a toast in and out when the open state changes.
- Add a cube-motion morph between Save and Saved labels on a button.
- Use cube-motion reveal to fade in product cards as the user scrolls.
Good to know
- Motions are fixed. Duration, easing and distance options are not offered.
- Svelte actions run only on the client. SSR needs the initial face layout and aria-hidden or inert attributes in markup.
- use:morph requires exactly two child faces.
- Cancelled animations reject finished with AbortError and must be caught.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cube-motion/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cube-motion
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cube-motion: common questions
Does cube-motion have dependencies?
The source says it has zero dependencies. It uses the browser's Web Animations API.
Can I change the animation duration or easing?
No. The source says there are no duration, easing, distance or scale options, and that the fix for an odd motion is a different job, not a setting.
Which frameworks does cube-motion support?
Core functions work in the browser. Optional adapters cover React, Vue, Solid and Svelte, and the source says imports are SSR-safe.
How do I install cube-motion?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cube-motion free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cube-motion safe to use?
It scores 73 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cube-motion?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
