Frontory

Open code, practice, and notes →

Download source with English comments · for reading

GSAP · 07 Playback Controls

Series contents · Technology map

Stage: Tweens and the time model · Editable example · Storage ID: gsap-step-07

Goals and learning outcomes

Prerequisites

Prepare the exercise results on Label and Relative Position from Unit 6, “Labels and Overlap”.

Key concepts and explanations

Progress

progress handles normalized positions. seek moves to a time or label.

Synchronization

The slider and playhead update each other. There is no need to create a new tween on every onUpdate.

Practice setup

First check the execution scope guidance on the example screen. The following environment is for extending the assignment in a separate project. The existing gsap-01·02·03 are starting examples. Write new units in a separate local GSAP project. The gsap-02 preview uses native scroll events; install and register ScrollTrigger in an external project. Preserve CSP and iframe isolation.

The linked example is a starting point. It does not implement every task below. Complete work beyond its supported scope in a separate project.

Practice tasks

  1. In src/day-7.js of a separate practice project, connect a range input to timeline.progress and display the value with onUpdate. Refer to the existing Unit 1·14·28 examples only as starting points.
  2. Input conditions: seeking to 0·50·100%. Baseline: 1 time. Run under baseline conditions, then record observations and errors in notes/day-7.md.
  3. Variable: Seek Count; changed value: 10 times. Run again using the same input path. Deliverable to save: results from revisiting positions and the tween count. Hypothesis to check: The same progress produces the same scene. Compare with the actual results and record whether they agree and the causes of any differences.

Variables to observe

VariableBaselineChangeExpected change / hypothesis
Seek Count1 time10 timesThe same progress produces the same scene.

Predictions in this table are not measured results. Change one condition at a time and record why the actual result differs.

Completion criteria

Self-check

  1. Which processing stage does Progress affect in this exercise? Input case: seeking to 0·50·100%.
  2. Variable: Seek Count. Hypothesis to check: The same progress produces the same scene. Did the actual results match the hypothesis? Explain the evidence in terms of Synchronization.

Official references

Linked example and execution scope

Example source · Runtime environments and limits

This is an experiment on Playback Controls. It supports direct interaction and cleans up the resources it uses.

Source code and records are not overwritten automatically. Resetting an existing example also preserves your notes.

Next learning

Previous: Labels and Overlap · Next: Context and Restoration

Open code, practice, and notes →