
The star rating
Ratings, SVG, Hover
The button under a portfolio project that opens the real site: a dark pill with a small browser window, the address and an arrow. Pressed, the page in the small window writes itself line by line while an acid green line runs along the bottom of the pill; then the arrow takes off towards the corner, comes back from the opposite one and the label says the site is open in a new tab.
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>
<!--
"Visit live site button" 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>Visit live site button with the window that loads and the arrow that takes off</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 button under a portfolio project that opens the real site: pressed, the little window draws its page
line by line while a thin line runs along the bottom of the pill; then the arrow takes off, comes back
from the opposite corner and the label says the site is open in a new tab -->
<button class="vis" type="button" data-vis>
<span class="vis__body" aria-hidden="true"><span class="vis__bar" data-bar></span><span class="vis__light"></span></span>
<span class="vis__edge" aria-hidden="true"></span>
<span class="seat" data-seat aria-hidden="true">
<svg viewBox="0 0 24 24">
<rect x="3" y="4.5" width="18" height="15" rx="3.2"></rect>
<path d="M3 9h18"></path>
<path class="seat__mark" d="M6 6.8h2.600"></path>
<path class="seat__line" data-line pathLength="1" d="M6.4 12.3h7.400"></path>
<path class="seat__line" data-line pathLength="1" d="M6.4 14.900h11.200"></path>
<path class="seat__line" data-line pathLength="1" d="M6.4 17.300h5.200"></path>
</svg>
</span>
<span class="label">
<span class="label__main"><span data-word>Visit live site</span></span>
<span class="label__sub"><span data-sub>northfold.studio</span></span>
</span>
<span class="tag" data-tag aria-hidden="true"><svg viewBox="0 0 24 24"><g data-arrow><path d="M7.600 16.400 16.400 7.600M9.400 7.600h7v7"></path></g></svg></span>
</button>
<p class="sr" data-live aria-live="polite"></p>
<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.
12 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 “Visit live site button” from Animorio and fit it into my siteThe three lines in the small window are SVG paths with pathLength 1: on press their stroke-dashoffset goes to 1 (they are erased) and back to 0 with a stagger equal to a fifth of the loading time, so the page fills from the top.
A layer 2.5 pixels tall at the bottom of the pill, clipped by its round edge, goes from scaleX 0 to 1 with the slow(0.35, 0.7) ease: fast, almost still in the middle, fast again, like a real tab loading.
The arrow leaves by 15 pixels up and right in 0.2 seconds and comes back from the opposite corner with back.out; the circle has hidden overflow, so it seems to leave through a window and come back from the other side.
| Name | File | Default | What it changes |
|---|---|---|---|
SITE | script.js | northfold.studio | The address written below (invented). |
LOAD | script.js | 1.3 | How many seconds the loading takes. |
ACCENT | script.js | #c9ff45 | The colour of the line, of the page and of the arrived arrow. |
HOLD | script.js | 2.4 | On its own: how many seconds it stays on “Opened in a new tab” before going back. |
LOOP | script.js | true | Left alone, a pointer tries it by itself. |
For a project page in a portfolio or a case study: the button that leads to the real site. It suits any link that leaves the site: a product demo, the documentation, the shop. In a real product a link with target _blank takes the place of the button, and the animation lasts just long enough to accompany the opening.
The same button: the pill takes at most the screen width minus the margins; it is pressed with a finger and there is no light under the pointer.
No lines writing themselves, running line or arrow taking off: the loading line appears whole with a fade, then circle and label change in place.
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.
Tested on 15 November 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.