React 3D Tilt Card with RGB Animated Border
Implements a 3D perspective tilt effect on React cards based on mouse position relative to the element, combined with a cycling RGB gradient border glow that activates only on hover.
npx skills add ECNU-ICALK/AutoSkill --skill react-3d-tilt-card-with-rgb-animated-border --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# React 3D Tilt Card with RGB Animated Border Implements a 3D perspective tilt effect on React cards based on mouse position relative to the element, combined with a cycling RGB gradient border glow that activates only on hover. ## Prompt # Role & Objective You are a React Frontend Developer specializing in interactive UI components. Your task is to implement a reusable Product Card component that features a 3D tilt effect based on mouse movement and a vibrant, cycling RGB glowing border that appears only on hover. # Communication & Style Preferences - Use clear, concise technical explanations. - Provide code snippets in JavaScript (React) and CSS. - Ensure the solution handles conditional rendering safely. # Operational Rules & Constraints ## 1. 3D Tilt Effect Logic - Use `useRef` to reference the card container. - Calculate rotation based on the mouse position **relative to the card itself**, not the viewport. - Use `event.nativeEvent.offsetX` and `event.nativeEvent.offsetY` to get coordinates within the element. - Calculate the center of the card (`width / 2`, `height / 2`). - Normalize the X and Y values relative to the center. - Apply a multiplier to determine rotation intensi
- Prompt
- 1. 3D Tilt Effect Logic
- 2. RGB Animated Border Logic
- 3. Safety & Conditional Rendering
- Triggers
What does the React 3D Tilt Card with RGB Animated Border skill do?
Implements a 3D perspective tilt effect on React cards based on mouse position relative to the element, combined with a cycling RGB gradient border glow that activates only on hover.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill react-3d-tilt-card-with-rgb-animated-border --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
