Hover effects and basic parallax are table stakes. Cursor tracking, physics-based motion, scroll choreography, and spatial depth are the patterns that make websites feel built by someone who cares.
Hover effects and basic parallax are the bare minimum. These are the interaction equivalent of picking a nice font: expected and unremarkable.
The second tier is what separates a built-for-you site from a template: cursor-aware environments, spring dynamics, scroll timelines that choreograph content like a film, and spatial depth effects that make flat screens feel dimensional. This article catalogs the patterns that push the web forward and explains when each one earns its complexity cost.
Why the Body Matters
Different physical actions activate different cognitive processes. The body is not just an input device. It shapes how users understand content.
Before cataloging interaction patterns, it is worth understanding why they work at a level deeper than "it looks cool." Different physical actions produce different cognitive relationships to content. Scrolling is continuous and proprioceptive: you feel the content flowing through your body's motion. Clicking is discrete and decisional: each click is a choice, a commitment. Dragging is haptic and spatial: you are physically placing things in relationship to each other.
This is not abstract philosophy. The phenomenologist Maurice Merleau-Ponty argued that perception is not a mental event that follows a physical one. The two are the same event. Applied to interaction design: the user does not watch content appear during a scroll. They physically produce the appearance through their body's action. The content and the motion are experienced as a single act of discovery, not as "I scrolled, then content appeared."
This matters practically because it means the choice of interaction modality is a choice about the cognitive relationship between user and content. A click-to-reveal accordion creates a different understanding than a scroll-to-reveal timeline, even if the content is identical. The interaction is not a delivery mechanism for the content. It is part of the content.
Cursor Awareness: The Environment That Responds
Cursor tracking turns passive viewing into active exploration by making the page respond to where the user is, not just what they click.
The simplest version of cursor awareness is a hover effect. The most sophisticated is an entire environment that shifts, distorts, or reacts to the cursor's position, velocity, and dwell time.
Magnetic pull: Elements that subtly attract toward the cursor as it approaches, then snap back when it leaves. Flat design has no physicality. Magnetic pull adds it. The cursor becomes a force field, not just a pointer. Navigation links, buttons, and interactive elements can all benefit from a 10-20px magnetic radius.
Reactive backgrounds: Particle systems, gradient meshes, or geometric patterns that shift based on cursor position. These work best as hero section treatments where the user naturally moves their cursor while reading. The key constraint: the effect must be subtle enough to ignore and engaging enough to discover.
Googly eyes and character: Our Puffy Sticker Eyes component demonstrates the simplest and most effective form of cursor tracking. Eyes that follow the cursor tap into a biological response: we cannot help but notice something watching us. This pattern works for team pages, about sections, and anywhere personality is appropriate.
The technical foundation for cursor tracking is straightforward: a mousemove event listener that updates component state with normalized cursor coordinates. The craft is in the response curve (linear feels robotic, spring physics feels alive) and the performance (use requestAnimationFrame, not state updates on every pixel).
Physics-Based Motion: Why Easing Curves Are Not Enough
Spring dynamics, inertia, and velocity-aware animations create motion that feels natural because they model real-world physics.
CSS easing curves (ease-in, ease-out, cubic-bezier) are mathematical functions. They produce smooth motion, but the motion feels computed because it is. Springs are different. A spring animation has mass, tension, and friction. It overshoots and settles. It responds to interruption mid-flight. It feels alive because it models physical reality.
Framer Motion's spring animations are the most accessible implementation of this concept. A transition: { type: "spring", stiffness: 300, damping: 20 } produces motion that a bezier curve cannot replicate: natural overshoot, interruptible physics, and velocity-aware continuation.
Where springs earn their complexity:
- Modals and drawers: A spring-based drawer feels like pulling a physical panel. A bezier drawer feels like watching a tween.
- Drag interactions: Release velocity determines how far the element travels and how it settles. This is impossible with easing curves.
- Hover states: A button that bounces back slightly on hover release feels tactile. A button that ease-in-outs feels flat.
- List reordering: Springs create the illusion of items having weight and momentum as they rearrange.
Scroll Storytelling: From Parallax to Choreography
Scroll-driven animation has evolved from simple parallax (background moves slower than foreground) to full choreographed timelines where scroll position controls every element.
Basic parallax is a single trick: different scroll speeds create depth. It was novel in 2013 and unremarkable by 2016. What replaced it is more interesting.
Scroll-triggered reveals: Content that fades, slides, or scales into view as the user scrolls past a threshold. Nearly universal on modern marketing sites. The pattern works because it creates a rhythm of discovery that rewards continued scrolling.
Scroll-linked transforms: Element properties (opacity, scale, position, rotation, color) that continuously map to scroll position. Premium product launch pages are the canonical example: as you scroll, the product rotates, specs appear, and the narrative unfolds at the user's pace.
Scroll timelines: Full choreographed sequences where scroll position drives a multi-phase animation. A sticky section holds in place while internal elements animate through states: fade out, transform, fade in. These create keynote-style reveals where the user controls the pacing.
The key principle: scroll-driven animation works because the user controls the tempo. Unlike autoplay animations, scroll animations respect user agency. The user can speed up, slow down, or scroll back. This is why scroll animations hold attention longer than autoplay sequences.
Spatial Depth: Making Flat Screens Feel Dimensional
Spatial computing headsets and WebXR are influencing 2D web design, creating interfaces with layered depth, parallax planes, and perspective awareness.
Spatial operating systems have introduced a design language that is starting to influence traditional web design in three ways:
Layered depth: Multiple planes at different z-depths that shift with cursor movement. This creates a parallax effect within a single section rather than between background and foreground. Cards that float above the page surface, text that sits on a different plane than images.
Glassmorphism with depth: Frosted glass effects combined with depth cues. When a translucent panel overlays content and both shift with the cursor, the illusion of physical space emerges.
Perspective-aware cards: Cards that tilt based on cursor position, creating a 3D rotation effect. Combined with shadows that shift to match the tilt direction, these create a tactile quality that flat cards lack.
Data as Interactive Experience
The Pudding, scrollytelling, and interactive data journalism prove that complex information becomes engaging when the user controls the exploration.
The Pudding's interactive essays are the gold standard for data-driven web experiences. Each piece uses custom visualization, scroll-driven narrative, and interactive exploration to communicate findings that would be forgettable in a static format. The format proves that information density and engagement are not opposing forces.
For commercial applications, interactive data works in pricing calculators, ROI estimators, and portfolio case studies. Any context where the user's specific situation determines the relevant data benefits from interaction over static presentation.
WebGL and WebGPU: The Creative Frontier
WebGL enables shader effects, 3D environments, and generative visuals that push websites into experiential territory.
WebGL remains the most powerful (and most complex) tool in the interaction designer's toolkit. Commercial examples include:
- Gradient mesh backgrounds and glitch typography treatments
- Image displacement effects where hover warps the image surface
- Particle systems that form logos, text, or abstract patterns
- 3D product viewers that replace static product photography with interactive exploration
The barrier is cost. WebGL requires shader programming (GLSL), performance optimization, and mobile fallbacks. But libraries like Three.js, shader components, and pre-built effects have made basic WebGL accessible to designers who are willing to learn and experiment.
AI is part of this frontier too, but it should be treated as a collaborator, not an autopilot. It is useful for generating shader starting points, motion studies, and fast prototypes. The risk is aesthetic averaging when teams ship the first generated output without direction. The better workflow is to use AI for exploration, then apply human taste, brand judgment, and accessibility review before shipping.
The Accessibility Layer: Every Pattern Needs One
Every interactive pattern must degrade gracefully for users with motion sensitivities, screen readers, and keyboard navigation.
None of the patterns above should be required for content access. Every one should respect prefers-reduced-motion. The implementation pattern:
- Check motion preference:
window.matchMedia('(prefers-reduced-motion: reduce)') - Provide static fallback: The content should be fully accessible without any animation
- Keyboard alternatives: Cursor-tracking effects need keyboard-triggered equivalents or graceful absence
- Screen reader context: Decorative animations should be hidden from assistive technology with
aria-hidden="true"
The goal is progressive enhancement, not progressive gatekeeping. The interactive layer makes the experience richer for users who can enjoy it. The base layer makes it accessible to everyone.
Sources
- Material Design. Animation Principles in UI (2023)
- Framer Motion Documentation (2024)
- The Pudding (2024)
- MDN Web Docs. prefers-reduced-motion (2024)
- Apple Human Interface Guidelines. Designing for Spatial Computing (2024)
- Three.js Documentation (2024)
- Anderson, B.R., Shah, J.H., & Kreminski, M.. Homogenization Effects of Large Language Models on Human Creative Ideation (2024)
- W3C WAI. Understanding Success Criterion 2.3.3: Animation from Interactions (2024)