ToolsWaves
Free GSAP Landing Page Template · ToolsWaves · Illustrated

Free Illustrated Hero Template with Character Animations

Free illustrated landing page template from ToolsWaves with character illustrations, pill navigation, a carousel card, idle character animations, and a block-stacking loader. Free for personal and commercial projects.

IllustratedCarouselPlayfulCharacter Animations

About this ToolsWaves template

This free illustrated landing page template from ToolsWaves is bright and character-driven, suited to brands that want to feel warm, approachable, and a bit irreverent. The block-stacking loader builds upward block by block before resolving, character illustrations populate the scene with idle animations that keep the page feeling alive even when no interaction is happening, and a pill navigation rests above a carousel card that auto-advances.

Use this template for kids' education platforms, family-oriented services, community products, or any brand that wants to project optimism and inclusivity. ToolsWaves provides this template completely free for commercial use — copy the HTML, CSS, and JS files, swap the placeholder character illustrations for your own (or licensed alternatives), and customize the bright color palette via CSS variables. The illustration-heavy aesthetic reduces dependence on stock photography that often makes startup landing pages feel generic.

Copy the code

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Free Illustrated Hero Template with Character Animations</title>
  <meta name="description" content="Free GSAP illustrated landing page hero from ToolsWaves" />
  <meta name="generator" content="ToolsWaves - https://toolswaves.in/landing-pages" />

  <!-- Open Graph -->
  <meta property="og:title" content="Free Illustrated Hero Template with Character Animations" />
  <meta property="og:description" content="Free GSAP illustrated landing page hero from ToolsWaves" />
  <meta property="og:type" content="website" />
  <meta property="og:image" content="https://toolswaves.in/og?title=Free%20Illustrated%20Hero%20Template%20with%20Character%20Animations&category=Landing%20Page&icon=%F0%9F%93%84" />

  <!-- Twitter -->
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:title" content="Free Illustrated Hero Template with Character Animations" />
  <meta name="twitter:description" content="Free GSAP illustrated landing page hero from ToolsWaves" />
  <meta name="twitter:image" content="https://toolswaves.in/og?title=Free%20Illustrated%20Hero%20Template%20with%20Character%20Animations&category=Landing%20Page&icon=%F0%9F%93%84" />

  <!-- Bootstrap (used by template — replace with your own framework if you prefer) -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" />

  <style>
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --yellow: #ffcf3d;
    --yellow-soft: #faedc4;
    --orange: #f64b2c;
    --orange-deep: #e23816;
    --blue: #3b4fe8;
    --blue-deep: #2a38b8;
    --purple: #4a2cd4;
    --teal: #2fb5c4;
    --green: #4fd16a;
    --pink: #f8a9b3;
    --cream: #fef5d3;
    --ink: #0a0a1e;
}

html, body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--yellow);
    color: var(--ink);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   LOADER — bouncing blocks
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader__blocks {
    position: relative;
    width: 220px;
    height: 160px;
}
.loader__block {
    position: absolute;
    border-radius: 14px;
    will-change: transform;
}
.loader__block--1 {
    left: 40px; bottom: 0;
    width: 70px; height: 70px;
    background: var(--orange);
}
.loader__block--2 {
    left: 110px; bottom: 0;
    width: 70px; height: 70px;
    background: var(--blue);
    border-radius: 14px 14px 14px 70px;
}
.loader__block--3 {
    left: 75px; bottom: 70px;
    width: 70px; height: 70px;
    background: var(--teal);
}
.loader__block--4 {
    left: 110px; bottom: 70px;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 70px solid var(--purple);
    border-radius: 0;
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--ink);
}
.loader__counter {
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    text-align: right;
}
.loader__cover {
    position: absolute;
    inset: auto 0 0 0;
    height: 0;
    background: var(--orange);
    border-radius: 50% 50% 0 0 / 10% 10% 0 0;
    transform: translateY(100%);
}

/* =========================================================
   PLAYFUL SECTION
   ========================================================= */
.playful {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
}

/* ---------- Background ---------- */
.bg { position: absolute; inset: 0; z-index: 0; }
.bg__base {
    position: absolute;
    inset: 0;
    background: var(--yellow);
}
.bg__tri {
    position: absolute;
    background: var(--cream);
    will-change: transform;
}
.bg__tri--left {
    bottom: 0; left: 0;
    width: 55%; height: 55%;
    clip-path: polygon(0 100%, 100% 100%, 0 20%);
}
.bg__tri--right {
    bottom: 0; right: 0;
    width: 55%; height: 55%;
    clip-path: polygon(100% 100%, 0 100%, 100% 20%);
}

/* ---------- Top nav ---------- */
.topnav {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.topnav__logo-mark { width: 32px; height: 32px; }
.topnav__logo em {
    color: var(--orange);
    font-style: normal;
}

.topnav__pill {
    margin-left: auto;
    display: flex;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.topnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.25s ease;
}
.topnav__link:hover { background: var(--yellow-soft); }
.topnav__caret { font-size: 0.75em; color: var(--orange); }

.topnav__cta {
    background: var(--orange);
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(246, 75, 44, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.topnav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 75, 44, 0.45);
}

.topnav__mail {
    width: 46px; height: 46px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}
.topnav__mail:hover { transform: scale(1.08) rotate(-4deg); }
.topnav__mail svg { width: 20px; height: 20px; }

/* ---------- Scene ---------- */
.scene {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}
.scene > * {
    position: absolute;
    will-change: transform;
}
.scene__cloud {
    top: 42%; left: 3%;
    width: 260px;
}
.scene__birds {
    top: 28%; right: 18%;
    width: 140px;
}
.scene__castle {
    bottom: 10%; left: 28%;
    width: 340px;
}
.scene__flower {
    bottom: 12%; right: 22%;
    width: 230px;
}
.scene__blob {
    bottom: 10%; left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 32vw, 420px);
}
.scene__child {
    top: 14%; right: 22%;
    width: 290px;
}
.scene__cloud svg, .scene__birds svg, .scene__castle svg,
.scene__flower svg, .scene__blob svg, .scene__child svg {
    width: 100%; height: auto; display: block;
}

.scene__dots {
    inset: 0;
    position: absolute;
}
.scene__dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
}
.scene__dot--1 {
    top: 35%; left: 20%;
    background: var(--orange);
    width: 20px; height: 20px;
}
.scene__dot--2 {
    top: 65%; right: 10%;
    background: var(--purple);
    width: 12px; height: 12px;
}
.scene__dot--3 {
    top: 20%; left: 35%;
    background: var(--teal);
    width: 10px; height: 10px;
}

/* ---------- Arrow buttons ---------- */
.arrow {
    position: absolute;
    top: 55%;
    z-index: 25;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.arrow svg { width: 22px; height: 22px; }
.arrow--left  { left: 2.5rem; }
.arrow--right { right: 2.5rem; }
.arrow:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.arrow--left:hover  { transform: scale(1.15) translateX(-3px); }
.arrow--right:hover { transform: scale(1.15) translateX(3px); }
.arrow:active { transform: scale(0.95); }

/* ---------- Center card ---------- */
.card {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    z-index: 20;
    background: var(--orange);
    padding: 2.25rem 3rem 1.75rem;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(246, 75, 44, 0.45),
                0 6px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 340px;
    overflow: hidden;
}
.card__inner {
    position: relative;
}
.card__title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    color: var(--cream);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.card__line {
    display: block;
    overflow: hidden;
}
.card__tag {
    display: inline-block;
    background: var(--cream);
    color: var(--ink);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}
.card__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.card__dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(254, 245, 211, 0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}
.card__dot.is-active {
    background: var(--cream);
    transform: scale(1.3);
}

/* ---------- Initial hidden states (JS reveals) ---------- */
[data-nav-el], [data-card] { opacity: 0; }
[data-el] { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .scene__child { right: 10%; width: 230px; }
    .scene__flower { right: 8%; width: 180px; }
    .scene__cloud { width: 200px; }
    .scene__castle { left: 12%; width: 280px; }
}
@media (max-width: 768px) {
    .topnav__pill { display: none; }
    .topnav { gap: 0.5rem; }
    .scene__child { top: 18%; right: 4%; width: 180px; }
    .scene__cloud { top: 50%; width: 160px; }
    .scene__flower { right: 5%; bottom: 8%; width: 140px; }
    .scene__castle { left: 4%; bottom: 8%; width: 200px; }
    .scene__blob { width: 240px; bottom: 8%; }
    .arrow { width: 44px; height: 44px; }
    .arrow--left  { left: 1rem; }
    .arrow--right { right: 1rem; }
    .card { padding: 1.5rem 2rem 1.25rem; min-width: 260px; }
}

  </style>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Banner — Playful Illustrated</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="banner-playful-illustrated.css">
</head>
<body>
    

    <!-- ========== LOADER ========== -->
    <div class="loader" id="loader">
        <div class="loader__blocks">
            <div class="loader__block loader__block--1"></div>
            <div class="loader__block loader__block--2"></div>
            <div class="loader__block loader__block--3"></div>
            <div class="loader__block loader__block--4"></div>
        </div>
        <div class="loader__meta">
            <span class="loader__label" id="loader-label">LOADING</span>
            <span class="loader__counter" id="loader-counter">0%</span>
        </div>
        <div class="loader__cover" id="loader-cover"></div>
    </div>

    <section class="playful" id="playful">

        <!-- ========== BACKGROUND DIAGONALS ========== -->
        <div class="bg">
            <div class="bg__base"></div>
            <div class="bg__tri bg__tri--left" data-el="tri-left"></div>
            <div class="bg__tri bg__tri--right" data-el="tri-right"></div>
        </div>

        <!-- ========== TOP NAVIGATION ========== -->
        <header class="topnav">
            <a href="#" class="topnav__logo" data-nav-el>
                <svg viewBox="0 0 32 32" class="topnav__logo-mark" aria-hidden="true">
                    <circle cx="10" cy="16" r="6" fill="#f64b2c"/>
                    <circle cx="20" cy="12" r="4" fill="#3b4fe8"/>
                </svg>
                <span>brand<em>.</em></span>
            </a>
            <nav class="topnav__pill" data-nav-el>
                <a href="#" class="topnav__link">Programs <span class="topnav__caret">&#9662;</span></a>
                <a href="#" class="topnav__link">About <span class="topnav__caret">&#9662;</span></a>
                <a href="#" class="topnav__link">Service Areas</a>
            </nav>
            <a href="#" class="topnav__cta" data-nav-el>Donate</a>
            <a href="#" class="topnav__mail" data-nav-el aria-label="Contact">
                <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <rect x="3" y="5" width="18" height="14" rx="2"/>
                    <path d="M3 7l9 7 9-7"/>
                </svg>
            </a>
        </header>

        <!-- ========== SCENE LAYER ========== -->
        <div class="scene" id="scene">

            <!-- Cloud (left) -->
            <div class="scene__cloud" data-el="cloud">
                <svg viewBox="0 0 300 180">
                    <ellipse cx="80"  cy="120" rx="75" ry="52" fill="#ffffff"/>
                    <ellipse cx="155" cy="95"  rx="60" ry="55" fill="#ffffff"/>
                    <ellipse cx="215" cy="125" rx="50" ry="42" fill="#ffffff"/>
                    <ellipse cx="135" cy="140" rx="70" ry="38" fill="#ffffff"/>
                </svg>
            </div>

            <!-- Birds -->
            <div class="scene__birds" data-el="birds">
                <svg viewBox="0 0 180 120">
                    <path d="M 20 30 Q 32 18 45 30 Q 58 18 70 30" stroke="#3b4fe8" stroke-width="5" fill="none" stroke-linecap="round"/>
                    <path d="M 90 70 Q 104 56 118 70 Q 132 56 146 70" stroke="#3b4fe8" stroke-width="5" fill="none" stroke-linecap="round"/>
                </svg>
            </div>

            <!-- Castle / blocks (back) -->
            <div class="scene__castle" data-el="castle">
                <svg viewBox="0 0 400 500">
                    <!-- Triangle roof -->
                    <polygon points="100,60 240,60 170,-20" fill="#3b1eb8" data-castle-part="1"/>
                    <!-- Red rectangle -->
                    <rect x="100" y="60" width="140" height="180" fill="#f64b2c" data-castle-part="2"/>
                    <!-- Pink base w/ quarter circle cutout -->
                    <rect x="30" y="240" width="220" height="180" fill="#f8a9b3" data-castle-part="3"/>
                    <path d="M 30 420 L 30 240 A 140 140 0 0 1 170 380 L 170 420 Z" fill="#3b4fe8" data-castle-part="4"/>
                </svg>
            </div>

            <!-- Flower (right of blob) -->
            <div class="scene__flower" data-el="flower">
                <svg viewBox="0 0 240 220">
                    <!-- Outer teal petals -->
                    <circle cx="80"  cy="110" r="60" fill="#2fb5c4"/>
                    <circle cx="160" cy="110" r="60" fill="#2fb5c4"/>
                    <circle cx="120" cy="60"  r="55" fill="#2fb5c4"/>
                    <!-- Red layer -->
                    <circle cx="95"  cy="120" r="45" fill="#f64b2c"/>
                    <circle cx="145" cy="120" r="45" fill="#f64b2c"/>
                    <circle cx="120" cy="85"  r="42" fill="#f64b2c"/>
                    <!-- Yellow center -->
                    <circle cx="120" cy="115" r="30" fill="#fdd835"/>
                    <!-- Blue pistil -->
                    <circle cx="120" cy="115" r="12" fill="#3b4fe8"/>
                </svg>
            </div>

            <!-- Blue blob character (front) -->
            <div class="scene__blob" data-el="blob">
                <svg viewBox="0 0 400 340">
                    <path d="M 200 30 C 80 30, 30 160, 30 240 L 30 330 C 30 335, 35 340, 40 340 L 360 340 C 365 340, 370 335, 370 330 L 370 240 C 370 160, 320 30, 200 30 Z" fill="#3b4fe8"/>
                    <circle class="scene__blob-eye" cx="155" cy="170" r="15" fill="#0a0a1e"/>
                    <circle class="scene__blob-eye" cx="245" cy="170" r="15" fill="#0a0a1e"/>
                    <path class="scene__blob-mouth" d="M 158 210 Q 200 258, 242 210" stroke="#0a0a1e" stroke-width="7" fill="none" stroke-linecap="round"/>
                </svg>
            </div>

            <!-- Child with swim ring (top right) -->
            <div class="scene__child" data-el="child">
                <svg viewBox="0 0 340 320">
                    <!-- Arms up (behind body) -->
                    <rect x="40"  y="50" width="46" height="120" rx="22" fill="#4a2cd4" transform="rotate(-20 63 110)"/>
                    <rect x="250" y="50" width="46" height="120" rx="22" fill="#4a2cd4" transform="rotate(20 273 110)"/>
                    <!-- Swim ring (teal with green dots) -->
                    <ellipse cx="170" cy="250" rx="155" ry="55" fill="#2fb5c4"/>
                    <ellipse cx="170" cy="250" rx="85"  ry="25" fill="#ffcf3d"/>
                    <g fill="#4fd16a">
                        <circle cx="40"  cy="255" r="10"/>
                        <circle cx="80"  cy="225" r="11"/>
                        <circle cx="75"  cy="280" r="9"/>
                        <circle cx="260" cy="230" r="10"/>
                        <circle cx="300" cy="255" r="11"/>
                        <circle cx="270" cy="280" r="9"/>
                    </g>
                    <!-- Body (red shirt) -->
                    <rect x="100" y="110" width="140" height="150" rx="40" fill="#f64b2c"/>
                    <!-- Head (purple) -->
                    <circle cx="170" cy="95" r="68" fill="#4a2cd4"/>
                    <!-- Eyes -->
                    <circle cx="150" cy="90" r="6" fill="#0a0a1e"/>
                    <circle cx="190" cy="90" r="6" fill="#0a0a1e"/>
                    <!-- Mouth -->
                    <path d="M 150 115 Q 170 135 190 115" stroke="#f64b2c" stroke-width="4" fill="none" stroke-linecap="round"/>
                </svg>
            </div>

            <!-- Small scatter shapes -->
            <div class="scene__dots" data-el="dots">
                <span class="scene__dot scene__dot--1"></span>
                <span class="scene__dot scene__dot--2"></span>
                <span class="scene__dot scene__dot--3"></span>
            </div>
        </div>

        <!-- ========== CAROUSEL ARROWS ========== -->
        <button class="arrow arrow--left" id="prev" aria-label="Previous" data-nav-el>
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
                <path d="M15 6l-6 6 6 6" stroke-linecap="round" stroke-linejoin="round"/>
            </svg>
        </button>
        <button class="arrow arrow--right" id="next" aria-label="Next" data-nav-el>
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
                <path d="M9 6l6 6-6 6" stroke-linecap="round" stroke-linejoin="round"/>
            </svg>
        </button>

        <!-- ========== CENTER CARD (carousel) ========== -->
        <div class="card" id="card" data-card>
            <div class="card__inner" id="card-inner">
                <h1 class="card__title">
                    <span class="card__line">PROGRAM</span>
                    <span class="card__line">ONE</span>
                </h1>
                <span class="card__tag">CATEGORY A</span>
            </div>
            <div class="card__dots">
                <span class="card__dot is-active"></span>
                <span class="card__dot"></span>
                <span class="card__dot"></span>
            </div>
        </div>
    </section>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
    <script src="banner-playful-illustrated.js"></script>
</body>
</html>

</body>
</html>
JSbanner-playful-illustrated.js— GSAP animation timeline
(() => {
    const root = document.getElementById('playful');
    if (!root) return;

    // -------------------------------------------------------------------
    //  SLIDE DATA (dummy content)
    // -------------------------------------------------------------------
    const slides = [
        { title: ['PROGRAM', 'ONE'],   tag: 'CATEGORY A' },
        { title: ['PROGRAM', 'TWO'],   tag: 'CATEGORY B' },
        { title: ['PROGRAM', 'THREE'], tag: 'CATEGORY C' },
    ];
    let currentIndex = 0;

    // -------------------------------------------------------------------
    //  ELEMENT REFERENCES
    // -------------------------------------------------------------------
    const loader = document.getElementById('loader');
    const loaderBlocks = loader.querySelectorAll('.loader__block');
    const loaderCounter = document.getElementById('loader-counter');
    const loaderLabel = document.getElementById('loader-label');
    const loaderCover = document.getElementById('loader-cover');
    const loaderMeta = loader.querySelector('.loader__meta');
    const loaderBlocksContainer = loader.querySelector('.loader__blocks');

    const triLeft = root.querySelector('[data-el="tri-left"]');
    const triRight = root.querySelector('[data-el="tri-right"]');
    const cloud = root.querySelector('[data-el="cloud"]');
    const birds = root.querySelector('[data-el="birds"]');
    const castle = root.querySelector('[data-el="castle"]');
    const castleParts = castle.querySelectorAll('[data-castle-part]');
    const flower = root.querySelector('[data-el="flower"]');
    const blob = root.querySelector('[data-el="blob"]');
    const blobEyes = blob.querySelectorAll('.scene__blob-eye');
    const child = root.querySelector('[data-el="child"]');
    const dots = root.querySelectorAll('[data-el="dots"] .scene__dot');

    const navEls = root.querySelectorAll('[data-nav-el]');
    const card = root.querySelector('[data-card]');
    const cardInner = document.getElementById('card-inner');
    const cardLines = card.querySelectorAll('.card__line');
    const cardTag = card.querySelector('.card__tag');
    const cardDots = card.querySelectorAll('.card__dot');

    const prevBtn = document.getElementById('prev');
    const nextBtn = document.getElementById('next');

    // -------------------------------------------------------------------
    //  INITIAL HIDDEN STATES
    // -------------------------------------------------------------------
    gsap.set(triLeft,  { xPercent: -100, opacity: 0 });
    gsap.set(triRight, { xPercent:  100, opacity: 0 });
    gsap.set(cloud,    { x: -200, opacity: 0 });
    gsap.set(birds,    { y: -40,  opacity: 0 });
    gsap.set(castleParts, { y: -60, opacity: 0, scale: 0.8, transformOrigin: 'center bottom' });
    gsap.set(flower,   { scale: 0, opacity: 0, transformOrigin: 'center center' });
    gsap.set(blob,     { y: 200,  opacity: 0, scale: 0.7, transformOrigin: 'center bottom' });
    gsap.set(child,    { y: -250, opacity: 0, rotation: -20 });
    gsap.set(dots,     { scale: 0, opacity: 0, transformOrigin: 'center center' });

    gsap.set(navEls,   { y: -30, opacity: 0 });
    gsap.set(card,     { y: 120, opacity: 0, scale: 0.8 });
    gsap.set(cardLines, { y: 60 });

    gsap.set(loaderBlocks, { y: -200, opacity: 0 });

    // -------------------------------------------------------------------
    //  LOADER TIMELINE
    // -------------------------------------------------------------------
    const loaderTl = gsap.timeline({ onComplete: playScene });

    // Blocks drop in sequence (bounce ease)
    loaderTl.to(loaderBlocks[0], {
        y: 0, opacity: 1, duration: 0.7, ease: 'bounce.out',
    }, 0);
    loaderTl.to(loaderBlocks[1], {
        y: 0, opacity: 1, duration: 0.7, ease: 'bounce.out',
    }, 0.15);
    loaderTl.to(loaderBlocks[2], {
        y: 0, opacity: 1, duration: 0.7, ease: 'bounce.out',
    }, 0.45);
    loaderTl.to(loaderBlocks[3], {
        y: 0, opacity: 1, duration: 0.7, ease: 'bounce.out',
    }, 0.7);

    // Progress counter 0 -> 100
    const p = { v: 0 };
    loaderTl.to(p, {
        v: 100,
        duration: 1.7,
        ease: 'power1.inOut',
        onUpdate: () => {
            loaderCounter.textContent = Math.round(p.v) + '%';
        },
    }, 0.1);

    // Small wobble after all blocks land
    loaderTl.to(loaderBlocksContainer, {
        rotation: -3, duration: 0.12, yoyo: true, repeat: 3, ease: 'sine.inOut',
    }, '+=0.2');

    // Loader exits: blocks scatter, orange cover wipes up
    loaderTl.to(loaderBlocks, {
        y: (i) => -400 - i * 60,
        x: (i) => (i - 1.5) * 120,
        rotation: (i) => (i - 1.5) * 120,
        opacity: 0,
        duration: 0.9,
        ease: 'power2.in',
        stagger: 0.04,
    }, '+=0.2');
    loaderTl.to(loaderMeta, {
        opacity: 0, y: -20, duration: 0.4, ease: 'power2.in',
    }, '<');
    loaderTl.to(loaderCover, {
        y: '-100%',
        height: '100%',
        duration: 1,
        ease: 'power4.inOut',
    }, '-=0.3');
    loaderTl.to(loader, {
        opacity: 0, duration: 0.3, ease: 'power2.in',
    }, '+=0.1');
    loaderTl.set(loader, { display: 'none' });

    // -------------------------------------------------------------------
    //  MAIN SCENE ENTRANCE
    // -------------------------------------------------------------------
    function playScene() {
        const tl = gsap.timeline({ defaults: { ease: 'power3.out' } });

        // Background diagonals slide in from sides
        tl.to(triLeft,  { xPercent: 0, opacity: 1, duration: 0.9, ease: 'power4.out' }, 0);
        tl.to(triRight, { xPercent: 0, opacity: 1, duration: 0.9, ease: 'power4.out' }, 0.05);

        // Cloud drifts in
        tl.to(cloud, { x: 0, opacity: 1, duration: 1.2, ease: 'power2.out' }, 0.2);

        // Castle parts stack in one by one
        tl.to(castleParts, {
            y: 0, opacity: 1, scale: 1,
            duration: 0.7,
            stagger: 0.12,
            ease: 'back.out(2)',
        }, 0.35);

        // Flower blooms
        tl.to(flower, {
            scale: 1, opacity: 1,
            duration: 1,
            ease: 'elastic.out(1, 0.55)',
        }, 0.6);

        // Blue blob pops up from bottom
        tl.to(blob, {
            y: 0, opacity: 1, scale: 1,
            duration: 1,
            ease: 'back.out(1.8)',
        }, 0.8);

        // Child drops down and settles
        tl.to(child, {
            y: 0, opacity: 1, rotation: 0,
            duration: 1.1,
            ease: 'bounce.out',
        }, 1);

        // Birds flutter in
        tl.to(birds, { y: 0, opacity: 1, duration: 0.7 }, 1.25);

        // Scatter dots
        tl.to(dots, {
            scale: 1, opacity: 1,
            duration: 0.5,
            stagger: 0.08,
            ease: 'back.out(2)',
        }, 1.35);

        // Top nav
        tl.to(navEls, {
            y: 0, opacity: 1,
            duration: 0.6,
            stagger: 0.08,
        }, 0.25);

        // Center card pops up
        tl.to(card, {
            y: 0, opacity: 1, scale: 1,
            duration: 0.9,
            ease: 'back.out(1.7)',
        }, 1.3);

        // Card title lines slide up
        tl.to(cardLines, {
            y: 0,
            duration: 0.7,
            stagger: 0.08,
            ease: 'power3.out',
        }, 1.55);

        // Idle animations once main entrance finishes
        tl.call(startIdleAnimations, null, 1.9);
    }

    // -------------------------------------------------------------------
    //  IDLE / CONTINUOUS ANIMATIONS (breathing, floating, blinking)
    // -------------------------------------------------------------------
    function startIdleAnimations() {
        // Blob breathing
        gsap.to(blob, {
            y: '-=10',
            duration: 2,
            ease: 'sine.inOut',
            yoyo: true,
            repeat: -1,
        });

        // Child bobbing on swim ring
        gsap.to(child, {
            y: '-=12',
            rotation: 3,
            duration: 2.4,
            ease: 'sine.inOut',
            yoyo: true,
            repeat: -1,
        });

        // Cloud slow drift
        gsap.to(cloud, {
            x: '+=30',
            duration: 5,
            ease: 'sine.inOut',
            yoyo: true,
            repeat: -1,
        });

        // Flower sway
        gsap.to(flower, {
            rotation: 6,
            duration: 3,
            ease: 'sine.inOut',
            yoyo: true,
            repeat: -1,
            transformOrigin: 'center bottom',
        });

        // Birds subtle bob
        gsap.to(birds, {
            y: '-=8',
            duration: 1.4,
            ease: 'sine.inOut',
            yoyo: true,
            repeat: -1,
        });

        // Blob blink every few seconds
        gsap.to(blobEyes, {
            scaleY: 0.1,
            duration: 0.12,
            yoyo: true,
            repeat: -1,
            repeatDelay: 3.5,
            ease: 'power1.inOut',
            transformOrigin: 'center center',
        });
    }

    // -------------------------------------------------------------------
    //  CAROUSEL (card content transitions)
    // -------------------------------------------------------------------
    function goToSlide(newIndex) {
        newIndex = (newIndex + slides.length) % slides.length;
        if (newIndex === currentIndex) return;
        const direction = newIndex > currentIndex ? 1 : -1;
        // Handle wrap-around direction
        if (currentIndex === slides.length - 1 && newIndex === 0) direction;
        currentIndex = newIndex;

        const slide = slides[currentIndex];
        const outTl = gsap.timeline({
            onComplete: () => {
                // Update content
                cardLines[0].textContent = slide.title[0];
                cardLines[1].textContent = slide.title[1];
                cardTag.textContent = slide.tag;
                cardDots.forEach((d, i) => d.classList.toggle('is-active', i === currentIndex));
                // Animate in
                gsap.set(cardLines, { y: 60 });
                gsap.set(cardTag, { y: 30, opacity: 0 });
                gsap.to(cardLines, {
                    y: 0,
                    duration: 0.6,
                    stagger: 0.07,
                    ease: 'power3.out',
                });
                gsap.to(cardTag, {
                    y: 0, opacity: 1,
                    duration: 0.5,
                    delay: 0.15,
                    ease: 'power3.out',
                });
            }
        });
        outTl.to(cardLines, {
            y: -60,
            duration: 0.35,
            stagger: 0.04,
            ease: 'power2.in',
        }, 0);
        outTl.to(cardTag, {
            y: -20, opacity: 0,
            duration: 0.3,
            ease: 'power2.in',
        }, 0);

        // Playful card bounce
        gsap.fromTo(card,
            { scale: 1 },
            { scale: 1.04, duration: 0.2, yoyo: true, repeat: 1, ease: 'sine.inOut' }
        );
    }

    prevBtn.addEventListener('click', () => goToSlide(currentIndex - 1));
    nextBtn.addEventListener('click', () => goToSlide(currentIndex + 1));

    // Keyboard navigation
    window.addEventListener('keydown', (e) => {
        if (e.key === 'ArrowLeft')  goToSlide(currentIndex - 1);
        if (e.key === 'ArrowRight') goToSlide(currentIndex + 1);
    });

    // -------------------------------------------------------------------
    //  MOUSE PARALLAX (gentle)
    // -------------------------------------------------------------------
    let targetX = 0, targetY = 0;
    let currentX = 0, currentY = 0;
    let parallaxReady = false;

    root.addEventListener('mousemove', (e) => {
        const r = root.getBoundingClientRect();
        targetX = ((e.clientX - r.left) / r.width - 0.5) * 2;
        targetY = ((e.clientY - r.top) / r.height - 0.5) * 2;
    });
    root.addEventListener('mouseleave', () => { targetX = 0; targetY = 0; });

    gsap.delayedCall(4, () => { parallaxReady = true; });

    gsap.ticker.add(() => {
        if (!parallaxReady) return;
        currentX += (targetX - currentX) * 0.05;
        currentY += (targetY - currentY) * 0.05;

        gsap.set(cloud,  { x: currentX * 20,  y: currentY * 10 });
        gsap.set(birds,  { x: currentX * 30 });
        gsap.set(castle, { x: currentX * 12 });
        gsap.set(flower, { x: currentX * 18 });
        gsap.set(dots[0], { x: currentX * 30, y: currentY * 20 });
        gsap.set(dots[1], { x: currentX * 25, y: currentY * 18 });
        gsap.set(dots[2], { x: currentX * 35, y: currentY * 25 });
    });

    // Blob and child keep their idle loops — parallax would fight them.
})();

More GSAP landing pages