Skip to content
animorio
IT
All components

Report a bug button

Buttons, Hover, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The Report a bug button of a made-up finance app, Tessel. Above it sits a panel of the app with a revenue chart that stops loading halfway; below, the dark pill with a bug drawn in line. Pressed, an orange frame with thick corners finds the broken part and grows on a spring, the rest of the panel darkens and a tag gives the size; a white snap, like a screenshot, and the crop comes off the panel, lifts, flies in an arc into the pill as it opens and becomes the attached thumbnail, with a paperclip. In the form the sentence explaining the problem types itself with an orange caret; Send sends it: the thumbnail and the text slide into the button, a circle with a check drawing itself appears and the ticket number.

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>
<!--
  "Report a bug 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>The Report a bug button with the screen crop that flies into it</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the Report a bug button of a made-up finance app, Tessel: pressed, a frame crops the broken chart from the
         panel above, the screen flashes like a screenshot, the crop flies into the button, which opens into a small
         report form with the crop attached; the problem is typed, Send, and the button says the team is on it -->
    <div class="wrap" data-wrap>

      <!-- the piece of app being reported: a quiet panel with a chart that failed halfway -->
      <section class="panel" data-panel aria-label="Revenue chart, failed to load">
        <header class="panel__top">
          <span class="panel__title">Revenue</span>
          <span class="panel__chip">Last 30 days</span>
        </header>
        <div class="panel__value"><b>$48,210</b><i>+12.4%</i></div>
        <div class="panel__chart" data-chart>
          <svg viewBox="0 0 300 74" preserveAspectRatio="none" aria-hidden="true">
            <path class="grid" d="M0 18.5H300M0 37H300M0 55.5H300"></path>
            <path class="area" d="M0 60 L22 56 L44 58 L66 48 L88 50 L110 40 L132 44 L150 36 L150 74 L0 74Z"></path>
            <path class="line" d="M0 60 L22 56 L44 58 L66 48 L88 50 L110 40 L132 44 L150 36"></path>
            <path class="line line--broken" d="M150 36 L174 52 L198 30 L222 46 L246 22 L270 34 L300 18"></path>
          </svg>
          <span class="panel__error" data-error>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 2.2 14.4 13.4H1.6Z"></path><path d="M8 6.4v3.2M8 11.4v.2"></path></svg>
            Couldn’t load the rest
          </span>
        </div>
        <!-- the screenshot flash and the crop frame live over the panel -->
        <span class="panel__dim" data-dim aria-hidden="true"></span>
        <span class="flash" data-flash aria-hidden="true"></span>
        <span class="frame" data-frame aria-hidden="true">
          <i class="frame__c frame__c--tl"></i><i class="frame__c frame__c--tr"></i>
          <i class="frame__c frame__c--bl"></i><i class="frame__c frame__c--br"></i>
          <span class="frame__size" data-size>264 × 92</span>
        </span>
      </section>

      <!-- the crop that flies: a copy of the panel shown through a window the size of the frame -->
      <div class="crop" data-crop aria-hidden="true">
        <div class="crop__in" data-cropin></div>
      </div>

      <div class="pill" data-pill>
        <span class="pill__halo" aria-hidden="true"></span>
        <div class="pill__body">
          <span class="pill__grain" aria-hidden="true"></span>
          <span class="pill__light" aria-hidden="true"></span>

          <!-- rest: the button -->
          <button class="ask" type="button" data-ask aria-label="Report a bug with a screenshot">
            <span class="ask__in" data-askin>
              <svg class="bug" viewBox="0 0 24 24" aria-hidden="true">
                <g class="bug__legs" data-legs>
                  <path d="M7.4 10.4 4.2 9M7.2 13.6H3.8M7.6 16.6 4.6 18.4"></path>
                  <path d="M16.6 10.4 19.8 9M16.8 13.6H20.2M16.4 16.6 19.4 18.4"></path>
                </g>
                <path class="bug__body" d="M12 8.4c2.9 0 4.8 2.4 4.8 5.5S14.9 20 12 20s-4.8-3-4.8-6.1S9.1 8.4 12 8.4Z"></path>
                <path class="bug__head" d="M9.4 8.7a2.6 2.6 0 0 1 5.2 0"></path>
                <path class="bug__ant" d="M10.4 6.4 9 4.2M13.6 6.4 15 4.2"></path>
                <path class="bug__seam" d="M12 9v11"></path>
              </svg>
              <span class="ask__word" data-word>Report a bug</span>
            </span>
          </button>

          <!-- open: the small report form -->
          <form class="form" data-form autocomplete="off" aria-hidden="true">
            <span class="form__thumb" data-thumb aria-hidden="true">
              <span class="form__thumbin" data-thumbin></span>
              <span class="form__clip" aria-hidden="true">
                <svg viewBox="0 0 16 16"><path d="M10.6 4.6 5.4 9.8a1.6 1.6 0 0 0 2.3 2.3l5.4-5.4a3 3 0 0 0-4.3-4.3L3.4 7.8a4.4 4.4 0 0 0 6.2 6.2l4-4"></path></svg>
              </span>
            </span>
            <label class="form__field">
              <span class="sr">Describe the problem</span>
              <input class="form__input" data-input type="text" placeholder="What went wrong?" tabindex="-1">
              <span class="form__caret" data-caret aria-hidden="true"></span>
            </label>
            <button class="send" type="submit" data-send tabindex="-1" aria-label="Send the report">
              <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 15.6V4.6M5.4 9.2 10 4.6l4.6 4.6"></path></svg>
            </button>
          </form>

          <!-- done -->
          <div class="done" data-done aria-hidden="true">
            <span class="done__badge" data-badge>
              <svg viewBox="0 0 20 20"><path data-tick d="M5.6 10.4 8.6 13.4 14.6 7"></path></svg>
            </span>
            <span class="done__lines">
              <b data-donea>Thanks, we’re on it</b>
              <i data-doneb>Ticket <span class="mono" data-ticket>TSL-4821</span> · reply by email</i>
            </span>
          </div>
        </div>
      </div>

      <p class="sr" data-live aria-live="polite"></p>
    </div>
  </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.

33 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 “Report a bug 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 a white ground there is only a small panel of the app, with the revenue and a chart whose line turns grey and dashed halfway with the notice Couldn’t load the rest, and below it the dark pill sixty pixels tall with the bug and Report a bug. On hover the pill rises by a pixel, a warm light follows the pointer and the bug moves its legs. Pressed, the frame crops the broken chart, the white snap takes the screenshot and the crop flies into the pill, which opens into the form with the thumbnail, the field and Send; after sending the pill says the team is on it and goes back to rest.

How it works

The frame and the shade around it

The frame is an element with four thick corners and a 999-pixel-wide shadow: it darkens the whole panel except the crop. It lives in a hidden-overflow box as large as the panel, so the shadow does not spill onto the page; GSAP animates position, size and the shadow variable with back.out.

The crop is a copy of the panel

The flying piece is a window the size of the frame holding a copy of the panel, anchored on the right: as the window narrows to the thumbnail’s shape, the broken part and the notice stay in view.

The flight with a single scale

The flight uses GSAP keyframes for the arc and the same scale on both axes, while the window’s width drops to the thumbnail’s proportion: no squashed picture. On arrival the real thumbnail takes the crop’s place and takes the hit with elastic.out.

Values to change

NameFileDefaultWhat it changes
LABELscript.jsReport a bugThe label of the closed button.
MESSAGEscript.jsChart stops loading after the 14thThe sentence that types itself in the form.
TICKETscript.jsTSL-4821The ticket number in the final message.
ACCENTscript.js#ff5b3aThe colour of the frame, the bug and Send.
TYPE_SPEEDscript.js26How many letters per second are typed in the form.
FLIGHTscript.js0.85The seconds of the crop’s flight into the button.
SPRINGscript.js0.75How long the spring opening and closing the pill lasts.
HOLDscript.js2.6The seconds of the final message before going back to rest.
IDLEscript.js1.2The seconds before the autopilot starts.

Try them in the Playground

When to use it

In apps and dashboards in beta or just launched, where people using the product must be able to report a problem without leaving the screen: a help menu, a bottom bar, the feedback button of a beta.

On phones

Everything narrows to a little less than the screen width, the open pill takes the full width and the text gets slightly smaller; the finger presses like the mouse. Without hover the light stays off and the bug still.

With reduced motion

No running frame, snap or flight: the pill changes width in a moment, the form and the thumbnail fade in with the sentence already written, and after Send the message with the check appears already drawn.

Pitfalls

  • The frame’s wide shadow would darken the whole page: it lives in a hidden-overflow box the size of the panel, while the panel’s own shadow stays outside and is not cut.
  • The thumbnail’s position is measured before the pill is open: it is opened for an instant with gsap.set, the rectangle is read and it is closed again, all in the same frame.

Libraries

GSAP 3.15.0, Geist e Geist Mono (font variabili) 5.3.0.

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

Testing

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