Skip to content
animorio
IT
Back to the library

Blog archive bars

HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.0 KBGSAP 28 KBFreeDownload the zip

The archive of a personal blog in a card: twelve bars, one per month, as tall as the posts that came out. The month under the pointer stands up and takes colour, its neighbours drop slightly, and below its titles arrive one after the other, with the date. Even the empty month has its line.

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>
<!--
  "Blog archive bars" 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>Blog archive with the months as bars and the posts of the month that open below</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">
    <!-- the archive of a personal blog: one bar per month, as tall as the posts written; the month under the pointer
         stands up in colour and its titles arrive below, one after the other -->
    <section class="ar" data-ar aria-label="Archive">
      <header class="ar__head">
        <span class="ar__title">Archive<i>2026</i></span>
        <span class="ar__sum"><b data-sum></b> essays this year</span>
      </header>
      <div class="ar__bars" data-bars role="tablist" aria-label="Months"></div>
      <div class="ar__month"><span class="ar__name"><span data-name></span></span><span class="ar__n"><span data-n></span></span></div>
      <ul class="ar__posts" data-posts></ul>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </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.

14 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 “Blog archive bars” 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 warm white, a white card: at the top “Archive 2026” and the count of the year’s posts, then twelve grey bars with the month’s initial below, and at the bottom the chosen month’s name, how many posts it has and up to three lines with titles and dates. On opening the bars grow from the floor from January to December. Hovering a month, its bar turns purple and rises slightly with a bounce, the two next to it drop a hair, the month’s name and the count roll in the direction you moved, and the old titles leave from one side while the new ones come in from the other, staggered. If the month has more than three posts the last line says how many more there are; August, empty, says the author went walking. The bars are real tabs: arrows and Tab work.

How it works

Bars in scale

Each bar is as tall as the whole well and has scaleY with the origin at the bottom: 0.14 plus 0.78 times the share of posts against the fullest month. The chosen month goes to LIFT times its size with back.out(3), the neighbours to 96%.

The direction

The name, the count and the titles leave and come back in the direction of the move between months (from March to May towards the left, the other way towards the right): a single variable, the sign of the difference between the indexes.

The titles

The list has a fixed height of three lines, so the card never changes size. The titles are rewritten halfway through the timeline, after the old ones have left; a new timeline stops the previous one.

Values to change

NameFileDefaultWhat it changes
STARTscript.js10The month open at the start: 0 January, 11 December.
ACCENTscript.js#5a48e0The colour of the chosen month.
LIFTscript.js1.08How much the chosen month’s bar grows.
PAUSEscript.js1.6Alone: how many seconds it stays on each month.
LOOPscript.jstrueLeft alone, a pointer visits four months.

Try them in the Playground

When to use it

On the archive page of a personal blog or a newsletter, at the bottom of a writer’s home page, in any collection ordered by month (podcasts, photos, notes) where seeing how much was made is part of the story.

On phones

The same card, as wide as the screen; the bars never exceed 20% of the height and long titles are cut with an ellipsis. You tap the bar.

With reduced motion

The bars are already at their size and do not rise: the chosen month only changes colour, and name, count and titles change at once.

Pitfalls

  • A month with no posts still has a thin bar and a line of text: an empty column would look like a mistake.
  • The months’ initials repeat (J, J, A, A, M, M): each tab has the full name in its aria-label.
  • The list has a fixed height: without it the card would jump at every month with a different number of posts.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 5.0 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