axi0motion

Blur text

Words, or letters, come into focus out of a soft blur, one after another.

  • enhancer
  • entrance
  • scroll
  • blur
  • focus
  • since 0.1

Background Studio: tune it below, then copy the code

Your system asks for reduced motion: the demo shows its final state and nothing moves.

Live demo

Blur text example

Each word comes into focus.

Controls

90 ms
800 ms
0 ms

Code

It follows the controls above: change an option and the code changes with it.

<link rel="stylesheet" href="/axi0/motion/motion.css?v=6">
<script src="/axi0/motion/motion.js?v=10" defer></script>

<p class="demo-big" data-motion="blur-text">Each word comes into focus.</p>

The wrappers: BlurText.tsx (React, TypeScript) and BlurText.vue (Vue). Both render the same attributes as the HTML; the loader does the rest.

Options

AttributeDefaultWhat it does
data-motion-splitwordswords or chars (letters)
data-motion-stagger90milliseconds between pieces
data-motion-duration800milliseconds per piece
data-motion-delay0milliseconds before the first piece

Accessibility

The same rules as split text, whose script and styles it loads first (a few hundred bytes of its own).

Size

blur-text.js is 0.1 KB gzip, with split-text.js 1.3 KB it needs. A page loads the loader (2.7 KB) and core.js (1.4 KB) once, whatever it uses.