Courses / Scroll animation for developers

Applied motionAbout 50 minutes6 practical labs

Scroll animation for developers

Drive animation with scrolling. Read trigger markers, decide what each crossing does, scrub a drawing, pin a chapter stage and layer a hero without moving the words.

ScrollTrigger decisions for everyday pages: start and end positions, toggle actions, scrub, pinning and parallax layers. Horizontal scroll, snapping, smooth-scroll libraries and WebGL are outside this course.

Fit a lab into a lunch break or stay for a spare hour. Progress is saved so you can come and go. Labs need a laptop or desktop; the outline is available on any device.

The entire course is free: every lab and a personal completion download. No account or purchase is required. Progress is saved in this browser. Clearing browser data will remove it.

A trigger you can read.Interactive practice
Triggers, actions, scrub, pin and layersFree course

The curriculum

6 practical labs.
Decisions you can use.

Every lesson starts with a short principle and a page that needs work. You make the changes. The feedback tells you which relationships work and what to try next.

By the end, you can

  • Read and set ScrollTrigger start and end positions
  • Choose all four toggle actions deliberately
  • Scrub progress with a sensible runway and smoothing
  • Pin a stage with spacing and readable chapter timing
  • Layer parallax without moving the text

Basic HTML, CSS and JavaScript, and a first look at GSAP tweens. Motion design for developers is recommended preparation; no ScrollTrigger experience needed. Use a laptop or desktop with a browser window at least 1024px wide. Work at your own pace; there is no timer.

  1. 01
    Start where it can be seen

    A scroll trigger is two positions: a point on the element and a point in the viewport. When they meet, something happens. Most late, missing or “broken” scroll animations are a start position that the reader passes before the element is visible.

    7 min
  2. 02
    Decide what happens on the way back

    A reader crosses a trigger four ways: entering going down, leaving going down, entering coming back, leaving coming back. toggleActions is one decision for each. Copying “play none none none” gives you one of sixteen thousand combinations without choosing it.

    7 min
  3. 03
    Tie it to the thumb

    Some animation should not have a duration at all. A diagram that draws as you scroll, a bar that fills, a shape that turns: their progress is the reader’s scroll progress, so scrolling back undoes them. That is scrub.

    7 min
  4. 04
    Hold the stage

    Pinning holds a section still while the reader keeps scrolling, which turns scroll distance into time. It is the mechanism behind most scrollytelling. It is also the fastest way to hide the next section or trap the reader for three screens.

    8 min
  5. 05
    Move layers at different speeds

    Parallax is a speed difference. Things far away move less as you pass them. Applied to a page it is a scrubbed tween on each layer, and it goes wrong in two ways: text that drifts against the page, and shapes that slide so far they leave their section.

    7 min
  6. 06
    A fresh brief

    Transfer the five decisions to one page with new content and tighter budgets. The scroller is longer, the sections meet each other, and every trigger shares the same reader.

    12 min

Proper interaction.

Scroll a live page with real ScrollTrigger markers. Drag start and end lines on a viewport schematic, build the toggle-actions sentence, drag chapter keyframes on a pin track, set layer speeds and inspect the generated GSAP. Every drag has keyboard controls.

A completion record.

Pass the practical checks in each lab to download an optional personal completion record. It is created on your device, has no public verification page and is not an accredited qualification.

For you, or your team.

This course is free for individuals and teams. No account is needed. Progress is saved in this browser. Clearing browser data will remove it.