Skip to main content
100%

Motion Design Demo

✓ Published0🌍 Public
CCurran Kelleher
Last edited Nov 14, 2025
Created on Nov 14, 2025
Forked from P5 Starter

This example demonstrates motion design principles through an animated visualization of rotating vertical lines. The piece shows parallel lines distributed across the canvas, each rotating independently around its center with a phase shift based on horizontal position, creating an organic wave-like effect with endpoint circles marking each rotation axis. Built with p5.js, the animation uses the Canvas API with a semi-transparent rectangle overlay to create a fading trail effect that emphasizes movement over time. The rotation speed is tied to `frameCount`, and the layout responds dynamically to window resizing.

AI-generated description

Motion Design: Rotating Lines Animation

Overview

This project demonstrates fundamental motion design principles through an animated visualization of rotating vertical lines. It creates a mesmerizing, organic effect by applying independent rotational motion to parallel lines distributed across the canvas, combined with a trailing fade effect to emphasize movement over time.

Concept: Motion Design

Motion design uses animation and movement to communicate ideas, create visual interest, and guide user attention. This project explores several core motion design principles:

Key Motion Design Principles Demonstrated

1. Independent Motion

  • Each vertical line rotates independently around its own center point
  • The rotation angle is determined by both elapsed time (frameCount) and the line's horizontal position (x / width)
  • This creates a phase-shifted wave effect where lines near the left rotate differently than those on the right

2. Temporal Layering (Trails & Persistence)

  • Instead of clearing the canvas each frame, a semi-transparent rectangle is drawn
  • This creates a "fade trail" that gradually diminishes previous frames
  • Emphasizes the path of motion and creates a sense of velocity and continuity

3. Rhythm & Pacing

  • The rotation speed is controlled by frameCount * 0.01, establishing a consistent, measurable rhythm
  • The consistent timing creates predictable, danceable motion that feels intentional rather than random

4. Endpoint Emphasis

  • Circles drawn at the endpoints of each line serve as anchor points
  • These visual markers help track the motion of each line and emphasize the rotation points

5. Responsive Scale

  • The animation adapts to window dimensions, maintaining the motion design across different viewport sizes
  • Lines are evenly spaced with a consistent interval, scaling the number of elements to fit the screen

Technical Implementation

Technologies

  • p5.js: Creative coding library for drawing and animation
  • D3.js: Included for potential data visualization extensions
  • HTML5 Canvas: Renders the animation to the browser

How It Works

MIT Licensed

Similar vizzes