TextPremium

Bounce In Letters

Each letter drops in from above with an elastic bounce — pure CSS animation cascaded at 80 ms intervals, zero dependencies, for memorable headlines.

JSCSSElastic

Updated

This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Text has 56 effects, including 4 free. Explore the category →

3 usage examples

Landing page — Headline that commands attention letter by letter — Bounce In Letters example 1

① Landing page — Headline that commands attention letter by letter

WhenThe visitor lands on a home page or portfolio hero section; the main title (1–2 words) enters on load.
WhyLetter-by-letter entry with bounce draws the eye and creates a memorable first impression without disrupting layout — the effect lasts under one second and immediately makes room for supporting copy.
Settingsfont-size 4–5rem, stagger 0.06 s (snappier on short words), cubic-bezier (.68, -.55, .265, 1.55) kept for a strong bounce.
Editorial layout — Featured keyword entrance in an article — Bounce In Letters example 2

② Editorial layout — Featured keyword entrance in an article

WhenA 'featured' section, article standfirst, category label, or pull-quote that needs to stand out in a content layout.
WhyThe effect is purely typographic — no canvas, no particles. It integrates into any content flow without extra positioning CSS and without disturbing surrounding text.
Settingsfont-size 2–3rem, stagger 0.08 s, CSS gradient on spans for added brand identity.
Onboarding screen — Welcome in large format — Bounce In Letters example 3

③ Onboarding screen — Welcome in large format

WhenThe user has just created their account and lands in the app for the first time — the screen is blank, the main interface has not yet loaded.
WhyWELCOME has 7 letters: with a 0.08 s stagger the cascade runs over 550 ms and each bounce has time to land before the next one starts — the exact window where the cubic-bezier elasticity is clearly visible letter by letter.
Settingsfont-size 3.2–4rem, stagger 0.08 s, plain or very lightly textured background so each letter's entrance is the only motion on screen, cubic-bezier (.68, -.55, .265, 1.55) kept.

How it works

The animation is driven by a single CSS @keyframes rule — bounceInLetter — that moves each letter from opacity:0, translateY(-50px) scale(.5) to opacity:1, translateY(0) scale(1) over 600 ms. The cubic-bezier(.68, -.55, .265, 1.55) easing produces an elastic overshoot: the 4th parameter exceeds 1, pushing the letter slightly past its final position before it snaps back — the characteristic bounce.

The splitText(el, text, delayStep) utility wraps each character in an individual span and applies an increasing animation-delay (0 s, 0.08 s, 0.16 s…) to each one. That staggered delay produces a cascade entrance rather than a simultaneous one. The animation-fill-mode: forwards mode ensures each letter stays visible after its animation ends, even while later letters are still in flight.

The Replay button calls replayBounceIn(): it clears the container's innerHTML then calls splitText again after a 50 ms delay — that gap gives the browser time to force a style recalculation before re-injecting the spans, guaranteeing a clean CSS animation restart.

Important caveat: the CSS does not include a @media (prefers-reduced-motion) rule. Since spans start at opacity:0, if CSS animations are disabled (system preference or old browser) the text stays invisible — add the fallback described in the A11y section.

Accessibility

  • prefers-reduced-motion not in the code: no @media rule is included. Add @media (prefers-reduced-motion: reduce) { .text-bounce-in span { animation: none; opacity: 1; transform: none; } } for motion-sensitive users.
  • Text is structured in inline <span> elements — screen readers read the full word in DOM order, unaffected by the per-letter split.
  • The Replay button is a native <button>, keyboard-focusable and reachable via Tab — no additional ARIA role needed.
  • Text contrast: white (#ffffff) on dark (#0a0a0f) background, ratio > 15:1 — well above WCAG AA (4.5:1) and AAA (7:1).
  • Without CSS animation support (very old browsers), letters stay at opacity:0 and text is invisible. Recommended fallback: @supports not (animation-name: a) { .text-bounce-in span { opacity:1; transform:none; } }.

Browser compatibility

Relies on CSS animations, cubic-bezier, and animation-fill-mode — supported in all modern browsers since 2015. Zero external dependencies.

Chrome 43+✓ Full
Firefox 16+✓ Full
Safari 9+✓ Full
Edge 12+✓ Full
Mobile iOS✓ Full
Android Chrome✓ Full

Without CSS animation support, letters remain at opacity:0 (text invisible). Safe fallback: @supports not (animation-name: a) { .text-bounce-in span { opacity:1; transform:none; } }.

The code

HTML structure to paste into your page (the CSS + JS come with your purchase):

index.html — structure
<div class="demo-preview">
  <span class="demo-text text-bounce-in" id="bounceInText">
    <!-- spans generated by splitText(el, 'WORD', 0.08) -->
    <span style="animation-delay: 0s">W</span>
    <span style="animation-delay: 0.08s">O</span>
    <span style="animation-delay: 0.16s">R</span>
    <span style="animation-delay: 0.24s">D</span>
  </span>
  <button class="replay-btn" onclick="replayBounceIn()">Replay</button>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
0.08 (3rd arg of splitText) 0.08 s Delay between each letter. Lower to 0.05 s for a short snappy word, raise to 0.12 s for a longer word to keep the cascade visible.
animation: .6s … 0.6 s Animation duration per letter (CSS, .text-bounce-in span line). Increase to 0.9 s for a slower, more cinematic feel.
cubic-bezier(.68, -.55, .265, 1.55) 1.55 (4th param.) Elastic overshoot amount. Raise to 1.8 for a pronounced bounce, lower to 1.1 for a softer entry.
translateY(-50px) -50px Initial fall distance in CSS. -80px for a more dramatic top entrance, -20px for a subtle slide.
scale(.5) 0.5 Starting scale of each letter in CSS. 0.8 for a light zoom, 0.1 for an appearance from near-zero.
font-size: 2.5rem 2.5rem Text size in CSS (.demo-text class). Works from 1rem to 8rem — adjust freely for your context.
'BOUNCE' (2nd arg of splitText) "BOUNCE" Text to animate. Change the string in the JS call to match your content — the effect works with any Unicode string.

FAQ

Yes. The splitText(el, text, delay) function takes an element as its first argument — call it on as many elements as you need with different id values. Each container must carry the text-bounce-in class to inherit the CSS animation rule.
Use an IntersectionObserver: observe the container, and in the callback call splitText(el, text, delay) as soon as isIntersecting becomes true. Call observer.unobserve(el) afterwards to trigger only once.
No. JS injects the <span> elements with their individual animation-delay values on load. Without JS, you can pre-render the spans server-side or directly in the HTML source: the CSS animation will then play without any JS call.