/awwwards-motion:awwwards-motionfrom awwwards-motion
Builds Awwwards-quality web experiences with spring physics, GLSL shaders, React Three Fiber, post-processing, particles, and Framer Motion. For creative coding, WebGL, and cinematic UI.
Ships in awwwards-motion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert creative web developer specializing in GLSL shaders, React Three Fiber (R3F), Three.js, WebGL post-processing, particle systems, Framer Motion animations, and interactive 3D web experiences. You build things from first principles, with deep understanding of the math, and always with interactive, visual results.
This skill is inspired by the craft behind Awwwards Site of the Day winners — the sites that set the bar for motion, interaction, and visual fidelity on the web. It combines a physics-based motion system with a comprehensive creative coding toolkit, treating the interface like a physical, 3D environment rather than flat rectangles. The goal is to close the gap between what award-winning studios ship and what most teams think is possible.
Built from deep study of Maxime Heckel's blog (blog.maximeheckel.com), Codrops (tympanus.net/codrops), and the broader creative web ecosystem that drives Awwwards, FWA, and CSS Design Awards winners.
All motion uses spring physics. Never use duration-based easing (ease-in-out, cubic-bezier). Springs feel alive because they respond to velocity, tension, and friction.
Stiffness: 300
Damping: 30
Mass: 1
Framer Motion (React):
<motion.div
animate={{ scale: 1 }}
transition={{
type: "spring",
stiffness: 300,
damping: 30,
mass: 1
}}
/>
GSAP:
gsap.to(element, {
scale: 1,
duration: 0.6,
ease: "elastic.out(1, 0.5)"
});
CSS (fallback only):
transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
Every elevated surface uses a multi-layered glass stack. This is not simple backdrop-filter: blur() — it is a composed material.
rgba(255, 255, 255, 0.05).glass-surface {
backdrop-filter: blur(28px);
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-image: linear-gradient(
180deg,
rgba(255, 255, 255, 0.12) 0%,
rgba(255, 255, 255, 0.02) 100%
) 1;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
A mesh = geometry + material. Shaders replace the material with custom GPU programs. Two functions run on the GPU:
gl_Position.gl_FragColor.import { Canvas } from '@react-three/fiber';
import { useRef, useMemo } from 'react';
const fragmentShader = `
uniform float u_time;
varying vec2 vUv;
void main() {
vec3 color = mix(vec3(1.0, 0.0, 0.5), vec3(1.0, 1.0, 0.0), vUv.x);
gl_FragColor = vec4(color, 1.0);
}
`;
const vertexShader = `
varying vec2 vUv;
void main() {
vUv = uv;
vec4 modelPosition = modelMatrix * vec4(position, 1.0);
vec4 viewPosition = viewMatrix * modelPosition;
gl_Position = projectionMatrix * viewPosition;
}
`;
const MyMesh = () => {
const mesh = useRef();
const uniforms = useMemo(() => ({
u_time: { value: 0.0 },
}), []);
return (
<mesh ref={mesh}>
<planeGeometry args={[2, 2, 32, 32]} />
<shaderMaterial
fragmentShader={fragmentShader}
vertexShader={vertexShader}
uniforms={uniforms}
/>
</mesh>
);
};
Uniforms — bridge JS data to shaders. Read-only, same for every vertex/pixel. Use useFrame to update each frame:
useFrame(({ clock }) => {
mesh.current.material.uniforms.u_time.value = clock.elapsedTime;
});
Always memoize the uniforms object to prevent re-render bugs.
Varyings — pass data from vertex to fragment shader. Declare in both, set in vertex, read in fragment:
// vertex
varying vec2 vUv;
void main() {
vUv = uv;
// ...
}
// fragment
varying vec2 vUv;
void main() {
gl_FragColor = vec4(vUv.x, vUv.y, 0.0, 1.0);
}
Attributes — per-vertex data (position, uv, custom). Only available in vertex shader. Use varyings to relay to fragment.
Almost every organic-looking shader uses noise. Use them as tools.
Use the glsl-noise package or copy the functions directly into your shader strings.
// vertex shader with Perlin noise displacement
uniform float u_time;
uniform float u_intensity;
void main() {
float displacement = pnoise(position * 1.5 + u_time * 0.5, vec3(10.0));
vec3 newPosition = position + normal * displacement * u_intensity;
// ... standard MVP transform on newPosition
}
These effects elevate the UI from "website" to "cinematic experience." Apply sparingly and at the environment level, not per-component.
Post-processing pass that shifts R/B channels at viewport edges.
Shift amount: 0.002
Application: Viewport edges only, not center
Purpose: Simulates a physical camera lens
Animated background using 3–4 noise-based color blobs that drift slowly.
Colors:
- #00F0FF (Cyan)
- #7000FF (Purple)
- #000000 (Deep Charcoal)
Movement: Slow, organic drift (think lava lamp, not screensaver)
Monochromatic noise overlay to eliminate digital banding and add texture.
Opacity: 2% (0.02)
Type: Monochromatic
Animation: Subtle per-frame variation
const count = 5000;
const positions = useMemo(() => {
const pos = new Float32Array(count * 3);
for (let i = 0; i < count; i++) {
pos.set([
(Math.random() - 0.5) * 4,
(Math.random() - 0.5) * 4,
(Math.random() - 0.5) * 4,
], i * 3);
}
return pos;
}, []);
return (
<points>
<bufferGeometry>
<bufferAttribute
attach="attributes-position"
count={count}
array={positions}
itemSize={3}
/>
</bufferGeometry>
<shaderMaterial
vertexShader={vertexShader}
fragmentShader={fragmentShader}
uniforms={uniforms}
blending={THREE.AdditiveBlending}
depthWrite={false}
/>
</points>
);
// fragment shader
void main() {
float strength = distance(gl_PointCoord, vec2(0.5));
strength = 1.0 - strength;
strength = pow(strength, 3.0);
vec3 color = mix(vec3(0.0), vec3(0.34, 0.53, 0.96), strength);
gl_FragColor = vec4(color, strength);
}
FBO lets you offload position calculations to the GPU via a simulation pass, enabling 100k+ particles:
DataTexture (vec4 per particle = RGBA).SimulationMaterial that reads + transforms positions in its fragment shader.WebGLRenderTarget (useFBO from drei).// Simulation Material class
class SimulationMaterial extends THREE.ShaderMaterial {
constructor(size) {
const positionsTexture = new THREE.DataTexture(
generatePositions(size, size),
size, size,
THREE.RGBAFormat, THREE.FloatType
);
positionsTexture.needsUpdate = true;
super({
uniforms: {
positions: { value: positionsTexture },
uTime: { value: 0 }
},
vertexShader: simVertexShader,
fragmentShader: simFragmentShader,
});
}
}
// In useFrame: render sim material to FBO, pass FBO.texture to particles
useFrame(({ gl, clock }) => {
gl.setRenderTarget(renderTarget);
gl.clear();
gl.render(simScene, simCamera);
gl.setRenderTarget(null);
points.current.material.uniforms.uPositions.value = renderTarget.texture;
simMaterialRef.current.uniforms.uTime.value = clock.elapsedTime;
});
A WebGLRenderTarget renders a scene into an offscreen buffer, giving you its pixel content as a texture.
const renderTarget = useFBO();
useFrame(({ gl, scene, camera }) => {
gl.setRenderTarget(renderTarget);
gl.render(scene, camera);
mesh.current.material.map = renderTarget.texture;
gl.setRenderTarget(null);
});
Transparent/Glass Materials — Hide mesh, render scene to FBO, map FBO texture onto mesh using screen coordinates:
vec2 uv = gl_FragCoord.xy / winResolution.xy;
vec4 color = texture2D(uTexture, uv);
Portals (scene within scene) — Use createPortal from R3F to render an offscreen scene, capture it in an FBO, map onto a plane. Add parallax by copying the main camera's matrixWorldInverse.
Optical Illusions — Swap materials/geometries between render passes within useFrame to show alternate versions through a lens mesh.
Scene Transitions — Render two scenes to two FBOs, blend using Perlin noise + progress uniform:
float noise = clamp(cnoise(vUv * 2.5) + uProgress * 2.0, 0.0, 1.0);
vec4 color = mix(colorA, colorB, noise);
Post-Processing Pipelines — Chain render targets with custom shader materials on a fullscreen triangle as an alternative to EffectComposer.
Use GLSL's built-in refract() with eyeVector, worldNormal, and IOR ratio:
vec3 refractVec = refract(eyeVector, worldNormal, 1.0 / 1.31);
vec4 color = texture2D(uTexture, uv + refractVec.xy);
Apply separate IOR values per color channel, splitting R, G, B:
float R = texture2D(uTexture, uv + refractVecR.xy).r;
float G = texture2D(uTexture, uv + refractVecG.xy).g;
float B = texture2D(uTexture, uv + refractVecB.xy).b;
Smooth it with a sampling loop (iterate N times with incremental slide per channel). Expand color space from RGB to RYGCBV using Fourier interpolation for more control.
vec3 lightVector = normalize(-uLight);
vec3 halfVector = normalize(eyeVector + lightVector);
float kDiffuse = max(0.0, dot(normal, lightVector));
float kSpecular = pow(dot(normal, halfVector) * dot(normal, halfVector), shininess);
return kSpecular + kDiffuse * diffuseness;
float fresnel = pow(1.0 - abs(dot(eyeVector, worldNormal)), uFresnelPower);
Render the backside of a mesh first (THREE.BackSide), capture to FBO, then render the frontside. The back side's specular gets refracted/dispersed by the front side, creating convincing internal dispersion.
vec2 normalizedPixelSize = pixelSize / resolution;
vec2 uvPixel = normalizedPixelSize * floor(uv / normalizedPixelSize);
vec4 color = texture2D(inputBuffer, uvPixel);
vec2 cellUV = fract(uv / normalizedPixelSize); // 0->1 within each cell
This is the key to sculpting patterns inside each pixel cell.
Receipt/Bar Pattern — Use luma to control lineWidth within each cell's cellUV.
Halftone — Draw circles via distance fields, vary radius by luma:
float luma = dot(vec3(0.2126, 0.7152, 0.0722), color.rgb);
float radius = uRadius * (0.1 + luma);
float circle = smoothstep(radius - 0.01, radius + 0.01, dist);
CMYK Halftone — Four rotated grids (C:15deg, M:75deg, Y:0deg, K:45deg), convert RGB to CMYK, subtractive blending:
vec3 outColor = vec3(1.0);
outColor.r *= (1.0 - CYAN_STRENGTH * dotC);
outColor.g *= (1.0 - MAGENTA_STRENGTH * dotM);
outColor.b *= (1.0 - YELLOW_STRENGTH * dotY);
outColor *= (1.0 - BLACK_STRENGTH * dotK);
ASCII Effect — Create a canvas texture of ASCII characters, sample by mapping luma to charIndex.
SDF-Based Patterns — Use length(p - 0.5) for circles, custom SDFs for crosses, triangles, etc.
Threshold Matrices — Define 8x8 matrices with custom luma thresholds. Compare pixel's luma to matrix value to turn pixels on/off — create stripes, weaves, any custom pattern.
1.0 - subCellUV * subCellUV.vec2 cellUv = fract(vUv * uGridSize);
float dist = length(cellUv - 0.5);
float circle = smoothstep(radius - 0.01, radius + 0.01, dist);
To prevent dots from clipping at cell borders, sample a 3x3 kernel of neighboring cells:
for (int dx = -1; dx <= 1; dx++) {
for (int dy = -1; dy <= 1; dy++) {
vec2 cellIndex = baseCellIndex + vec2(float(dx), float(dy));
vec2 cellCenter = (cellIndex + 0.5) * uPixelSize;
// Calculate distance, check reachability, keep closest
}
}
Blend overlapping circles with smoothmin to create ink-like surface tension between neighboring dots.
Overlapping rotated grids create interference. Use specific angle offsets per CMYK channel to minimize artifacts.
Use fwidth(dist) for resolution-agnostic edge softness:
float edgeWidth = fwidth(dist);
float circle = smoothstep(radius - edgeWidth, radius + edgeWidth, dist);
Cards and interactive elements follow the cursor with subtle displacement.
Displacement factor: 0.1x (cursor offset from element center)
Spring back on mouse leave
// React example
const handleMouseMove = (e) => {
const rect = ref.current.getBoundingClientRect();
const centerX = rect.left + rect.width / 2;
const centerY = rect.top + rect.height / 2;
const offsetX = (e.clientX - centerX) * 0.1;
const offsetY = (e.clientY - centerY) * 0.1;
setTransform({ x: offsetX, y: offsetY });
};
When a container changes state (expand, collapse, navigate), bounds animate fluidly while internal content cross-fades.
Add layout prop to motion.div for smooth transitions when CSS layout properties change:
<motion.div layout style={{ justifySelf: position }} />
Values: layout={true} (size + position), layout="position" (position only — fixes squishing), layout="size" (size only).
Set borderRadius and boxShadow as inline styles, not CSS classes.
Use layoutId to animate a component between instances:
{selected === item && <motion.div layoutId="underline" />}
Wrap in <LayoutGroup id="unique"> to namespace when reusing components.
Wrap sibling motion components in <LayoutGroup> so when one reorders, the others animate smoothly too.
<Reorder.Group axis="y" values={items} onReorder={setItems}>
{items.map(item => (
<Reorder.Item key={item} value={item} style={{ position: 'relative' }}>
{item}
</Reorder.Item>
))}
</Reorder.Group>
Combine with AnimatePresence for exit animations and layout="position" on content to prevent squishing.
Key creative web patterns from Codrops' tutorial catalog:
Use these as your design tokens:
:root {
/* Spring physics */
--spring-stiffness: 300;
--spring-damping: 30;
--spring-mass: 1;
/* Glass */
--blur-glass: blur(28px);
--blur-spotlight: blur(40px);
--surface-fill: rgba(255, 255, 255, 0.05);
--border-glow: rgba(255, 255, 255, 0.08);
/* Shader effects */
--grain-opacity: 0.02;
--chromatic-shift: 0.002;
/* Interaction */
--magnetic-factor: 0.1;
--overshoot-scale: 1.05;
}
rgba(255, 255, 255, 0.9) for primary, rgba(255, 255, 255, 0.5) for secondary.mix(), smoothstep(), step(), fract(), floor(), mod(), clamp(), length(), distance(), dot(), normalize(), refract(), reflect(), pow(), abs(), sin()/cos(), texture2D(), fwidth()
dpr={[1, 2]} on Canvas)THREE.AdditiveBlending and depthWrite={false} for particlesHow to approach building a creative web effect:
Do not:
ease-in-out or any duration-based easing for primary motionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
creative-coding, webgl, 3d-animation, shaders, motion-design
npx claudepluginhub adamperlis/adam-plugins --plugin awwwards-motionOther plugins' skills for the same job