Skip to content
animorio
IT
Back to the library

Course syllabus

Scroll, TextGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The syllabus section of the sales page of a made-up online course, Type in Motion by Fieldnote School, six weeks of animated type. Scrolling, the left column stays still with the course title, ‘Week 3 of 6’ with the digit rolling and a thin rail with six stops that fills up; on the right the weeks rise one at a time and, as they reach the middle, compile out of their skeleton: the title comes into focus word by word and takes weight, the grey bars give way to the lesson names, the length bars fill and the minutes count, the week's project lands in a small card with a glint. At the end the Enroll button fills with the accent colour.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Course syllabus" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Type in Motion syllabus</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the syllabus section of the sales page of a made-up online course, Type in Motion by Fieldnote School. The stage
       sticks while you scroll: on the left the course stays still, with the current week rolling and a thin progress
       rail; on the right the six weeks rise one at a time and each one compiles when it reaches the middle (the title
       comes into focus word by word, the lessons are listed with their length, the week's project lands in a small
       card). The weeks are built by script.js from the WEEKS list. -->
  <main>
    <section class="course" data-course>
      <div class="stage" data-stage>
        <div class="light" data-light aria-hidden="true"></div>
        <div class="grain" aria-hidden="true"></div>

        <div class="frame" data-frame>
          <article class="card" data-card>
            <span class="card__glow" data-glow aria-hidden="true"></span>

            <aside class="side">
              <p class="side__brand">
                <span class="side__mark" aria-hidden="true">
                  <svg viewBox="0 0 16 16"><path d="M4.5 12.5V3.5h7M4.5 8h5"/></svg>
                </span>
                Fieldnote School
              </p>
              <h2 class="side__title" data-title>Type in Motion</h2>
              <p class="side__lede">Animate type with intent, from a single letter to a full title sequence.</p>

              <p class="side__week" aria-hidden="true">
                <span class="side__weekword">Week</span>
                <span class="roll" data-roll><span class="roll__strip" data-roll-strip><b>1</b><b>2</b><b>3</b><b>4</b><b>5</b><b>6</b></span></span>
                <span class="side__of">of 6</span>
              </p>

              <div class="rail" data-rail aria-hidden="true">
                <span class="rail__track"></span>
                <span class="rail__fill" data-rail-fill></span>
                <ol class="rail__stops" data-stops></ol>
              </div>

              <div class="side__foot">
                <p class="side__meta"><span data-meta-lessons>18</span> lessons <span class="side__sep"></span> <span data-meta-time>4h</span></p>
                <button class="enroll" type="button" data-enroll>
                  <span class="enroll__fill" data-enroll-fill aria-hidden="true"></span>
                  <span class="enroll__face">
                    <span class="enroll__words">Enroll</span>
                    <span class="enroll__price">$240</span>
                  </span>
                </button>
              </div>
            </aside>

            <div class="weeks" data-weeks>
              <div class="weeks__track" data-track></div>
            </div>
          </article>
        </div>
      </div>
    </section>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

32 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Course syllabus” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm white page with a soft orange light behind, a white card with layered shadows rises, split in two. On the left, on a slightly warmer grey, the Fieldnote School mark, the title ‘Type in Motion’ that widens on the width axis as it arrives, a line saying what the course is, ‘Week 1 of 6’ with the digit in the accent colour, the thin rail with six stops and their names (Foundations, Timing, Rhythm, Paths, Sound, Sequence) and at the bottom ‘18 lessons · 3h 29m’ with the Enroll button and the price. On the right the six weeks in a column, each in a card: the far ones are skeletons, with a pale blurred title, grey bars instead of the lessons and a dashed box instead of the project. Scrolling, the left column stays still and the weeks rise one at a time, rest a while in the middle and move on. When a week reaches the middle it compiles: the card lifts and settles on a spring that passes the mark by a pixel, the name of its stop lights up, the words of the title come into focus one after the other and take weight, the grey bars pull back and the lesson names rise in their place, each one's circle with the triangle swells, the length bar fills with a small bounce and the minutes count up to their value; then the dashed box makes way for the card of the week's project, with a glint running across it. Meanwhile on the left the digit of ‘Week 3 of 6’ rolls, the rail fills to the right stop and its notch lights up, the stop's name takes weight. The week that leaves goes back to its skeleton, quicker. At the end the Enroll button fills with orange from the left. With the pointer a soft light follows it on the card; over a lesson the row takes a faint tint, the circle turns orange and the triangle swells; the button can be pressed.

How it works

One timeline for the scroll

The scroll drives, through ScrollTrigger and scrub, a GSAP timeline that carries a number from 0 to 5, the week. Between one week and the next there is a still stretch, so each one rests in the middle; the power2.inOut ease of each stretch makes the column start and land softly.

The column placed in pixels

On every update the column of weeks moves by half the window minus the centre of the current week, interpolated between two cards. The centres are measured with offsetTop on load and on every resize, because the demo's window changes height while you watch.

Compile on time, not on the scrub

The scroll only decides which week is in focus. The compiling is a small timed timeline for each week: the title words go from blur(6px) and weight 420 to sharp and weight 650, staggered; each lesson's skeleton pulls back as the name rises; the length bar goes to length/16 with back.out; the minutes count with an onUpdate. The week that leaves runs the same timeline backwards at timeScale 2.4.

The rolling digit and the rail

‘Week 3 of 6’ has a strip with the six digits in a window one line tall: it moves by yPercent with back.out. The rail is filled by a CSS variable --p written by the script: upright it becomes scaleY, on the phone, where the rail lies down, scaleX.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the six weeks take: 2 is twice as long.
COMPILEscript.js1How slowly a week compiles: 2 is twice as slow.
BLURscript.js6How blurred the title words are before they come into focus, in pixels.
STAGGERscript.js0.08The seconds between one title word and the next.
ROLLscript.js0.55The seconds the week digit takes to roll.
GLOWscript.js1How strong the warm light behind the card is.

Try them in the Playground

When to use it

For the sales page of an online course, a school, a bootcamp or a training path: the syllabus section, which tells lessons, lengths and projects week by week as you scroll, with the course and the enroll button always in view.

On phones

The same animation with adapted sizes: under 640 pixels wide the course moves to the top, with the title, ‘Week 3 of 6’ on the right and the rail lying down with its six notches; the intro line and the button go away, and the week cards are sized on the window's height, so each one fits whole in the box.

With reduced motion

No long scroll and no movement: the card fades in with every week already compiled and the third one in the middle, the rail already filled up to it and the digit resting on ‘Week 3 of 6’.

Pitfalls

  • If the scrub drove the compiling too, the springs and the counting minutes would follow the wheel in steps: the scroll only picks the week in focus, and each week has its own timed timeline that can reverse halfway.
  • The column's position depends on the cards' height, which depends on the window: the centres are measured again on every resize and every ScrollTrigger refresh, otherwise in the phone box the week in focus ends up off centre.
  • The week card GSAP scales is the outer element; shadow, border and hover sit on the inner face, so GSAP's inline transform wipes nothing out.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 19 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations