Kosorikōsori alpha
Loaders

Dot Wave

Sequentally bouncing dots that rise and fall.

Installation

Add the keyframe

Add the keyframe to the keyframes object in your tailwind.config.js file.

tailwind.config.ts
import type { Config } from 'tailwindcss';
 
const config: Config = {
  // ...
  theme: {
    // ...
    extend: {
      // ...
      keyframes: {

        jump: {
          '0%': { transform: 'translateY(0)' },
          '50%': { transform: 'translateY(-1rem)' },
          '100%': { transform: 'translateY(0)' },
        },
      },
    },
  },
};
 
export default config;

Add the animation

Add the animation to the animation object in your tailwind.config.js file.

tailwind.config.ts
import type { Config } from 'tailwindcss';
 
const config: Config = {
  // ...
  theme: {
    // ...
    extend: {
      // ...
      animation: {
        jump: 'jump 1s ease-in-out infinite',
      },
    },
  },
};
 
export default config;

On this page