Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-mouse-driven-orbit

Skill by MengTo

Adds restrained mouse-driven orbit and parallax depth to a Three.js hero scene. It suits passive cinematic 3D heroes and pointer-responsive scenes, not product viewers that need drag and zoom.

  • Score 93
  • 8.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-mouse-driven-orbit

Built from the published package, never by AI.

git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Skills/agent-skills/web-design/add-mouse-driven-orbit ~/.claude/skills/add-mouse-driven-orbit

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-mouse-driven-orbit in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill adds passive, mouse-driven orbit and parallax depth to a Three.js hero. It records normalized pointer coordinates, damps them in the frame loop, and splits the result across camera translation, camera look-at, and small rotations of near and far objects. The damping makes motion ease rather than snap, and settled values are rounded so the scene stops redrawing style or uniform writes once they stop changing.

It is aimed at cinematic 3D heroes, pointer-responsive scenes, and organic model parallax. The guidance also covers keeping framing intact across breakpoints, reduced-motion stills, pausing when hidden, and disposing resources on teardown. The source says it is not for direct product inspection. For that, it points to OrbitControls, and for drag, zoom, or gameplay cameras, to a separate camera controls skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • Pointer dampingRecords normalized pointer coordinates and eases them with a frame-rate independent damping step.
  • Split camera and object motionMoves the camera, its look-at target, and near and far objects by different, opposing amounts.
  • Frame-rate independent easingClamps the time step to 1/30 s and resets the time base after resume.
  • Breakpoint framingRecalculates camera aspect and scale on resize and checks extreme pointer corners for clipping.
  • Reduced motion stillRenders a designed three-quarter still under prefers-reduced-motion while keeping controls live.
  • Lifecycle cleanupPauses when hidden and, on teardown, cancels the frame, disconnects observers, and disposes Three.js resources.

What you need

  • Three.js

Try asking

  • Add subtle mouse-driven orbit parallax to my Three.js hero section.
  • Make my 3D hero react to the pointer without showing a draggable product viewer.
  • Add reduced-motion fallback and cleanup to my pointer-driven Three.js scene.

Good to know

  • Not for direct manipulation; use OrbitControls when users must inspect a product.
  • Not for drag, zoom, occlusion, or gameplay cameras; the source points to a separate skill for those.
  • Coarse pointers keep the authored center pose, so touch input does not drive the orbit.
  • The orbit math is cheap; the cost comes from the underlying scene redraw.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent-skills/web-design/add-mouse-driven-orbit/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • agents/openai.yaml244 B
  • demo/PROMPT.md2 KB
  • demo/assets/card-ethos.jpg309 KB
  • demo/assets/lexend-latin.woff239 KB
Show all 8 files
  • demo/assets/three.min.js594 KB
  • demo/index.html13 KB
  • demo/preview.jpg107 KB

Alternatives to add-mouse-driven-orbit

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-mouse-driven-orbit: common questions

How is this different from OrbitControls?

The source says OrbitControls suits product inspection with direct manipulation. This skill is passive depth that follows the pointer without dragging or zooming.

Does it work on touch devices?

The source says coarse pointers keep the authored center pose and touch input is ignored for the orbit, so the center composition stays complete.

How does it handle users who prefer reduced motion?

Under prefers-reduced-motion, the source renders a designed three-quarter still instead of autonomous easing, and keeps the X and Y range controls live.

How do I install add-mouse-driven-orbit?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-mouse-driven-orbit free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is add-mouse-driven-orbit safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. 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 add-mouse-driven-orbit?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-mouse-driven-orbit Install

Add to stack

Loading.