Skip to content
animorio
IT
Back to the library

Icon splash intro

Intro, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.7 KBGSAP 28 KBFreeDownload the zip

An app opening on a phone, in the clean style of today’s apps: tap the icon and it grows to fill the screen, becomes the splash screen with the logo settling, then the logo rises into the header and the first screen builds row by row. Pull up from the bottom and the app shrinks back into its icon.

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>
<!--
  "Icon splash intro" 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 app that opens from its icon into the splash screen</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>
    <!-- tap an app icon on the home screen: the icon grows to fill the screen and becomes the splash,
         the logo settles, rises and the first screen of the app builds row by row; swipe up and the app
         shrinks back into its icon -->
    <div class="phone" data-phone>
      <div class="phone__screen" data-screen>
        <div class="home" data-home>
          <div class="wall" aria-hidden="true"><i class="wall__a"></i><i class="wall__b"></i><i class="wall__c"></i></div>
          <div class="grid" data-grid></div>
          <div class="dock" data-dock></div>
        </div>

        <!-- the window of the app: it starts as the icon and grows to the whole screen -->
        <div class="sheet" data-sheet aria-hidden="true">
          <div class="sheet__splash" data-splash></div>
          <div class="sheet__glyph" data-glyph>
            <svg viewBox="0 0 48 48"><path class="g-sun" d="M30.5 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"/><path class="g-hill" d="M6 34 17.5 21l7 7.5 5.5-5 12 10.5"/><path class="g-wave" d="M8 39.5c4-2.6 8 2.6 12 0s8 2.6 12 0 8 2.6 9 1.6"/></svg>
          </div>
          <p class="sheet__word" data-word>Tarnwell</p>

          <div class="app" data-app>
            <header class="app__head" data-row>
              <span class="app__logo-slot" data-logo-slot></span>
              <span class="app__title">Journal</span>
              <span class="app__avatar">AV</span>
            </header>
            <p class="app__hello" data-row>Good morning, Ada</p>
            <div class="app__card" data-row>
              <p class="app__kicker">Today, 6:12 AM</p>
              <p class="app__entry">Mist on the lake again. The far shore came back slowly, one tree at a time.</p>
              <div class="app__meta"><span class="chip">Lake Arlen</span><span class="chip">4 °C</span><span class="app__words">48 words</span></div>
            </div>
            <p class="app__label" data-row>This week</p>
            <ul class="app__list">
              <li data-row><b>Tuesday</b><span>First frost on the jetty</span><em>2 photos</em></li>
              <li data-row><b>Monday</b><span>Rowed out before work</span><em>1 photo</em></li>
              <li data-row><b>Sunday</b><span>Long walk round the tarn</span><em>3 photos</em></li>
            </ul>
            <p class="app__label" data-row>Recent photos</p>
            <div class="app__photos" data-row aria-hidden="true">
              <i class="ph ph--a"></i><i class="ph ph--b"></i><i class="ph ph--c"></i><i class="ph ph--d"></i>
            </div>
            <nav class="app__tabs" data-row aria-hidden="true">
              <span class="is-on"><svg viewBox="0 0 24 24"><path d="M5 5.5h14v13H5ZM8.5 9.5h7M8.5 13h4.5"/></svg>Journal</span>
              <span><svg viewBox="0 0 24 24"><path d="M4 7.5 9 5l6 2.5L20 5v11.5L15 19l-6-2.5L4 19Z"/></svg>Places</span>
              <span><svg viewBox="0 0 24 24"><path d="M12 6v12M6 12h12"/></svg>New</span>
            </nav>
          </div>
        </div>

        <!-- the status bar stays above the app: white on the splash, dark on the app -->
        <div class="status" data-status>
          <span class="status__time">9:41</span>
          <span class="status__icons" aria-hidden="true">
            <svg viewBox="0 0 18 12"><path d="M1 11h2.2V8.2H1Zm4.6 0h2.2V6H5.6Zm4.6 0h2.2V3.6h-2.2Zm4.6 0H17V1h-2.2Z"></path></svg>
            <svg viewBox="0 0 26 12"><rect class="s" x="0.8" y="0.8" width="21.4" height="10.4" rx="3"></rect><rect x="2.6" y="2.6" width="14.2" height="6.8" rx="1.6"></rect></svg>
          </span>
        </div>

        <!-- the home indicator: drag it up to close the app -->
        <div class="indicator" data-indicator aria-label="Swipe up to go home"><i></i></div>
      </div>
      <div class="phone__notch" aria-hidden="true"></div>
    </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>

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.

45 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 “Icon splash intro” 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 very light grey background there is a phone with a dark frame and its home screen: sixteen made-up apps with their geometric glyphs, the glass dock and the time at the top. The drawn pointer taps Tarnwell, a journal for people who go into the hills, with its lake-green icon and the mark of a hill, a sun and waves: the icon sinks and darkens slightly, then becomes the app’s window and grows to fill the screen, its corners going from the icon’s to the frame’s; behind it the home screen moves closer and dims. The mark flies to the middle of the splash, arrives a hair too big and settles, and below it the name writes itself letter by letter; the time turns white. Then the name leaves upwards, the logo rises into the header and lands on its small green square, the green gives way to the light paper of the app and the first screen arrives row by row with a small bounce: the greeting, the card of today’s page with its chips, the days of the week and the bar at the bottom. The pointer pulls up the handle at the bottom: the app becomes a card that follows the finger and shrinks, and let go it flies back into its icon, which bounces slightly as the home screen settles back.

How it works

A window that starts from the icon

The app’s window is an absolute box inside the screen: on opening it starts from the icon’s position, size and corners, and GSAP takes an object with x, y, width, height and radius up to the whole screen, with expo.out in OPEN_TIME seconds, rewriting the box on every frame.

The logo on its own

The app’s mark is a separate element inside the window, with its position worked out on the screen: it goes from the icon’s mark to the middle of the splash slightly too big, settles with elastic.out and then rises into the header, where it lands on the small green square that appears with a little bounce.

The splash becoming the app

The green splash and the first screen are two layers of the same window: after SPLASH_HOLD seconds the green fades while the app’s paper appears, and the rows rise by twelve units with back.out, ROW_STAGGER seconds apart.

Closing with the finger

Pulling up from the handle at the bottom, the window shrinks around a point that follows the finger and the first screen scales with it. Let go past a twelfth of the screen, the window goes back into the icon with expo.out in CLOSE_TIME seconds and the icon reappears on an elastic; below that threshold it springs back to full screen.

The sizes

The phone is sized on the height and the width of the window and everything comes from a single unit passed to the CSS: on every resize the positions of the icons, the window and the logo are recomputed in the state they are in.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js0.72The seconds in which the icon grows to fill the screen.
SPLASH_HOLDscript.js0.7The seconds the splash stays with the logo in the middle.
ROW_STAGGERscript.js0.07The delay between one row of the first screen and the next, in seconds.
CLOSE_TIMEscript.js0.6The seconds in which the app shrinks back into its icon.
HOME_ZOOMscript.js1.07How much the home screen moves closer while the app opens.
PAUSEscript.js1.3The seconds of pause of the drawn pointer between one gesture and the next.

Try them in the Playground

When to use it

For the page of an app that wants to show its first moment, from the icon to the first screen; to present a new splash screen and logo; or as a transition between a grid of shortcuts and a page, where the tapped tile becomes the page.

On phones

The same opening and closing with a finger: the phone is sized on the height of the box, everything scales with it, and the handle at the bottom is pulled up by touch.

With reduced motion

No zoom and no flying: tapping the icon the app appears already in place with a fade, the rows arrive together, and on closing the app fades out; the drawn pointer is hidden.

Pitfalls

  • The first screen laid out inside the growing window would reflow on every frame: it is laid out once on the whole screen and scaled with the window.
  • The logo inside the window would move along with it: its position is kept on the screen and the window’s is subtracted on every frame.
  • An opening that repeats by itself never lets the preview recording stop: the video has a fixed length.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 28 October 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