Eldora UI
Eldora UI
  1. Components
  2. Text Animations
  3. Blurin

Blurin

Text animation that gradually blurs in from an out-of-focus state.

Blur In

<Blurindemo/>

Installation

Install the following dependencies:

npm install framer-motion

Copy and paste the following code into your project.

import clsx from "clsx";
import { motion } from "framer-motion";

export function BlurIn() {
  const variants1 = {
    hidden: { filter: "blur(10px)", opacity: 0 },
    visible: { filter: "blur(0px)", opacity: 1 },
  };
  return (
    <motion.h1
      initial="hidden"
      animate="visible"
      transition={{ duration: 1 }}
      variants={variants1}
      className={clsx(
        "text-center font-display font-bold drop-shadow-sm",
        "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",
        "tracking-[-0.02em]",
        "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]"
      )}
    >
      Blur In
    </motion.h1>
  );
}

Update the import paths to match your project setup.

Built by karthikmudunuri. The source code is available on GitHub.