Skip to content
animorio
IT
Back to the library

Seasonal produce calendar

Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 4.7 KBGSAP 28 KBFreeDownload the zip

A greengrocer’s seasonal calendar: eight rows, one per fruit or vegetable, each with the bar of the months it is available. A vertical hairline follows the month under the pointer: what is in season turns green, its name steps forward and a knot ties onto the bar.

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>
<!--
  "Seasonal produce calendar" 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>Seasonal calendar of fruit and vegetables with the month that lights up what is in season</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>
  <main class="stage">
    <!-- a greengrocer's seasonal calendar: every row is a fruit or a vegetable with the months it is in season;
         the hairline follows the month under the pointer and lights up what you can buy now -->
    <section class="sc" data-sc aria-label="Seasonal calendar">
      <header class="sc__head">
        <p class="sc__kicker">In season at Orto Nove</p>
        <p class="sc__count"><b data-count></b> of <span data-total></span></p>
        <p class="sc__month"><span data-month></span></p>
      </header>
      <div class="sc__chart" data-chart role="slider" tabindex="0" aria-label="Month" aria-valuemin="1" aria-valuemax="12">
        <div class="sc__months" data-months aria-hidden="true"></div>
        <div class="sc__rows" data-rows></div>
        <div class="sc__track" aria-hidden="true"><div class="sc__hair" data-hair><span class="sc__cap"></span><div class="sc__knots" data-knots></div></div></div>
      </div>
    </section>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

15 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 “Seasonal produce calendar” 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 paper-coloured ground, a light card: at the top “In season at Orto Nove”, the month’s name large and light and how many of the eight are in season. Below, the initials of the twelve months and eight rows: oranges, artichokes, asparagus, strawberries, tomatoes, figs, grapes, pumpkin, each with a grey bar over its months (oranges have two, across the new year). On opening the bars stretch out one after the other. A vertical hairline sits on the chosen month: moving the pointer over the chart, or a finger, or the arrow keys, the hairline slides to the new month with a small settle, the month’s initial lights up, the month’s name rolls in the right direction, and what comes into season answers in a cascade: the name steps forward and darkens, the bar turns green and swells for a moment, a ring knot ties on where the hairline crosses it. What goes out of season fades.

How it works

The hairline in months, not pixels

The hairline’s position is a number of months that GSAP animates with back.out and that is written as a percentage: it stays right when the card changes width, with nothing to recompute.

Only what changes answers

At each month, who was in season is compared with who is now: only the rows coming in do the step, the bar’s swell and the knot, 0.06 s apart; the ones that stay just nudge the knot.

Seasons across the new year

Each row has a first and a last month: if the first comes after the last (December to March) the bars become two and the check uses “or” instead of “and”.

Values to change

NameFileDefaultWhat it changes
STARTscript.js2The month lit at the start: 0 January, 11 December.
ACCENTscript.js#2f9259The colour of what is in season.
GLIDEscript.js0.55How many seconds the hairline takes to reach the month.
PAUSEscript.js1.5On its own: how many seconds it stays on each month.
LOOPscript.jstrueLeft alone, the hairline moves from month to month.

Try them in the Playground

When to use it

On the site of a greengrocer, a farm shop, a veg box subscription or a food blog: to say what to buy now. It also suits a restaurant’s seasonal menus.

On phones

The same card, as wide as the screen: the month is chosen by tapping or dragging a finger across the chart, and the page below still scrolls vertically.

With reduced motion

The hairline, the colours and the month’s name change at once, with no sliding or bouncing; on its own the tour of the months carries on, in steps.

Pitfalls

  • The seasons in the demo are indicative: they change with the place and the year, and must be replaced with the seller’s real ones.
  • The chart is a keyboard slider (arrows, Home, End) and aria-valuetext says the month and what is in season: without it, to a screen reader it would only be a drawing.
  • The hairline follows the mouse on hover, but a finger only while touching: touch-action leaves vertical scrolling to the page.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 4.7 KB; the libraries: GSAP 28 KB.

Testing

Tested on 16 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