
Tiles that rise
SVG, Hover, Physics
The timeline of a project app, six weeks and five tasks: drag one along the days and the tasks that depend on it follow on a spring, one after the other, the dependency lines redraw themselves and the launch date at the bottom rolls to its new day, with how many days late. In the style of product micro-interactions, one gesture only: Drag.
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>
<!--
"Gantt chart drag" 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>The Gantt chart with tasks to drag</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" data-stage>
<!-- the timeline of a project tool: drag a task along the weeks and the tasks that depend on it follow on a spring,
the dependency lines redraw themselves and the launch date at the bottom rolls to its new day -->
<section class="card" data-card aria-label="Project timeline">
<header class="head">
<div class="head__left">
<span class="logo" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M4 15.5 10 4.5l6 11"></path><path d="M6.6 11h6.8"></path></svg></span>
<div>
<p class="head__app">Quillwork</p>
<h1 class="head__title">Website relaunch</h1>
</div>
</div>
<div class="head__right">
<span class="seg" aria-hidden="true"><span class="seg__on">Weeks</span><span>Months</span></span>
</div>
</header>
<div class="chart" data-chart>
<div class="axis" data-axis aria-hidden="true"></div>
<div class="body" data-body>
<div class="grid" data-grid aria-hidden="true"></div>
<div class="today" data-today aria-hidden="true"><span>Today</span></div>
<svg class="links" data-links aria-hidden="true"></svg>
<ul class="rows" data-rows></ul>
</div>
</div>
<footer class="foot">
<div class="foot__label">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M5 17V3.5"></path><path d="M5 4h9.5l-2 3 2 3H5"></path></svg>
<span>Launch</span>
</div>
<p class="foot__date" data-date aria-live="polite"></p>
<span class="chip" data-chip></span>
</footer>
</section>
<div class="tip" data-tip aria-hidden="true"><span data-tip-text></span></div>
<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>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.
25 values to change
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 “Gantt chart drag” from Animorio and fit it into my siteEach task has a start day, a length and the list of tasks it depends on. At every change the plan is redone in order: a task starts on its own day or, if later, the day after the end of the last one it depends on, plus GAP. The bars are as wide as their length times the width of a day, measured again on every resize.
The grabbed bar follows the finger in pixels and its day is the nearest one: as soon as it changes, the plan is redone and the label with the dates updates. Before the last task it depends on and after the last day the bar only lets itself be pulled a little, like a rubber band, and when let go it goes back to the right day.
Every free bar chases its day with a damped spring, integrated in four steps per frame in GSAP’s ticker; SPRING makes it stiffer, BOUNCE takes away damping. A task further down the chain waits LAG seconds more per level before starting, so they move one after the other.
On every frame the dependency lines are recomputed from the real positions of the bars, not from the plan: an elbow with six pixel curves if there is room between the two tasks, a loop under the row if they touch, and the arrowhead as a drawn triangle. The ones that move take the accent colour.
The launch date is made of separate letters: when it changes, only the different ones leave upwards and the new ones come in from below, or the other way round if the date goes back. Next to it, the delay against the starting plan.
| Name | File | Default | What it changes |
|---|---|---|---|
SPRING | script.js | 1 | How stiff the spring the dependent tasks follow with: higher is snappier. |
BOUNCE | script.js | 0.18 | How much the tasks bounce when they reach their day. |
GAP | script.js | 0 | The days of slack between a task and the one that depends on it. |
LAG | script.js | 0.06 | The delay with which each task further down the chain starts after the one before. |
ACCENT | script.js | #4f46e5 | The colour of the launch bar, the today line and the active dependencies. |
HOLD | script.js | 1.4 | The seconds of pause before the autopilot starts again. |
For the page of a project app or a team tool, for a dashboard with deadlines, or as a piece of a prototype: it shows in one gesture what happens to the launch when a task slips.
The same animation with adapted sizes: the names column narrows, the days shrink with the width, short bars keep only the number of days, and the bars are dragged with a finger.
No springs and no movement: the bars go straight to their day, the autopilot changes the plan with a fade, and the launch date changes by fading.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.3 KB; the libraries: GSAP 28 KB.
Tested on 28 October 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.