Skip to content
animorio
IT
All components

Skip intro button

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

The “Skip intro” button of a streaming app’s player. Its orange border burns away for as long as the intro lasts, the seconds running down beside the label. Pressed, the rest of the border burns at once, the two chevrons shoot ahead twice, the pill lunges and leaves. Leave it alone and, once the intro is over, it leaves by itself.

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>
<!--
  "Skip intro 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>Skip intro button</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 Skip intro button of a streaming app: its border burns away for as long as the intro lasts;
         press it and the chevrons shoot forward, the pill lunges and leaves; wait and it leaves by itself -->
    <button class="sk" type="button" data-sk>
      <svg class="sk__edge" viewBox="0 0 212 58" aria-hidden="true">
        <rect class="sk__track" x="1.250" y="1.250" width="209.500" height="55.500" rx="27.750"></rect>
        <rect class="sk__burn" data-burn x="1.250" y="1.250" width="209.500" height="55.500" rx="27.750" pathLength="1"></rect>
      </svg>
      <span class="sk__roll sk__label"><span data-label>Skip intro</span></span>
      <span class="sk__time" data-time aria-hidden="true">0:06</span>
      <svg class="sk__go" viewBox="0 0 26 20" aria-hidden="true">
        <path data-chev d="M4 4.500 10 10l-6 5.500"></path>
        <path data-chev d="M13 4.500 19 10l-6 5.500"></path>
      </svg>
    </button>
    <span class="sk__say" data-say aria-live="polite"></span>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.

11 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Skip intro button” 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 black, a dark pill 58 pixels tall: “Skip intro”, the seconds left and two chevrons. It comes in from below with a bounce, its orange border whole; then the border starts burning away along the perimeter and the seconds run down, 0:06, 0:05. Hover and the chevrons lean ahead. On press the label rolls to “Skipping”, what is left of the border burns in an instant, the two chevrons shoot right, come back in from the left and shoot again, and the pill squashes slightly, stretches forward and slides off to the right. Untouched, when the border is gone the pill sinks and disappears: the intro has passed. In the demo it comes back after a moment, as at the next episode.

How it works

The border is the time

A rounded SVG rectangle with pathLength 1 over the pill: stroke-dashoffset is the part of the intro already gone, updated every frame from GSAP’s ticker.

The skip

Three things at once: the remaining border goes to zero in a third of a second, the chevrons make two staggered dashes (out to the right, back in from the left), the pill anticipates by squashing and then stretches with its origin on the left.

Two different exits

On a skip the pill leaves forwards, to the right; when the intro ends it sinks and fades. You can tell without reading whether you skipped or the moment passed.

A real button

It is a button: Enter and Space skip, it is disabled once it leaves and an aria-live region says “Intro skipped” or “Intro over”.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#ff6a3dThe colour of the border that burns away.
INTROscript.js6How many seconds the intro lasts: the border burns away in this time.
AWAYscript.js1.2How many seconds the button stays away before coming back (in the demo: the next episode).
PUSHscript.js1How far the button stretches forward when it skips: 0 = not at all, 2 = a lot.
LOOPscript.jstrueLeft alone, the demo’s pointer skips one intro and lets the next one run out.

Try them in the Playground

When to use it

Over the video of a streaming app, bottom right, while the intro or the recap plays; the same timed button suits “Skip ad”, “Next episode” or an offer that expires.

On phones

The same button, 212 by 58 pixels: it fits any screen and is easy on a thumb. With no hover the chevrons stay still until you press.

With reduced motion

The button sits still with its border whole and no countdown starts; pressed, it says “Skipping” and then “Skip intro” again, with no dashes or slides. The demo does not move by itself.

Pitfalls

  • Here time is a number that runs down by itself: in a real player the border’s share comes from the video’s currentTime and the intro’s start and end seconds, so it stays right when paused or rewound.
  • The SVG rectangle has the pill’s size written in its viewBox (212 by 58): change the button’s width and change it there too.
  • A round-capped stroke of zero length leaves a dot: once the border is gone the stroke is hidden.
  • The button that has left stays in the DOM: disable it, or Tab finds it and Enter skips an intro that is not there.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 21 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 components