aktonay/skillz / skills/design/react-bits
react-bits
VerifiedOver 215+ animated, interactive, copy-paste React micro-components and effects (text animations, interactive backgrounds, physics cards, custom cursors, blobs, and dock bars).
src/components/common/NotFound/shardIntro.js
View on GitHubconst random = seed => {
const value = Math.sin(seed * 127.1 + 311.7) * 43758.5453;
return value - Math.floor(value);
};
export const createShardIntro = (shard, index) => ({
delay: 0.1 + (Math.hypot(shard.px, shard.py) / FIELD_RADIUS) * 0.12 + random(index + 1) * 0.18,
duration: 1.05 + random(index + 17) * 0.32,
depth: 210 + random(index + 29) * 130,
rx: (random(index + 43) - 0.5) * 1.1,
ry: (random(index + 61) - 0.5) * 1.3,
rz: (random(index + 79) - 0.5) * 0.4
});
export const applyShardIntro = (pose, intro, time) => {
const progress = Math.max(0, Math.min(1, (time - intro.delay) / intro.duration));
const remaining = Math.pow(1 - progress, 3);
const depth = intro.depth * remaining;
// Follow the viewing ray while approaching: silhouettes settle at their own
// positions, rather than crossing through neighboring pieces on the way in.
const perspective = (1400 - pose[2] + depth) / (1400 - pose[2]);
pose[0] *= perspective;
pose[1] *= perspective;
pose[2] -= depth;
pose[3] += intro.rx * remaining;
pose[4] += intro.ry * remaining;
pose[5] += intro.rz * remaining;
};
import { FIELD_RADIUS } from './shardGeometry.js';
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |