Typewriter Effect Generator

โ† Bumalik sa DashboardMga Tool ng Developer

Typewriter Effect Generator

I-customize at i-preview ang makinis na pag-type at pagbura ng teksto sa real time, at mag-export ng malinis na code para sa React, JS, at CSS.

Mga Setting ng Effect
Paghiwalayin ang mga parirala gamit ang bagong linya (Enter)
Mga Mabilisang Preset
Bilis ng Pag-type80 ms
Bilis ng Pagbura40 ms
Tagal ng Paghinto1.5 s
typewriter-preview.sh
|
Nagtatype (1/4)
0 mga titik
Ang mga pagbabago sa setting ay agad na makikita sa terminal preview.
Nabuong Source Code
import React, { useState, useEffect } from "react";

export function Typewriter() {
  const words = [
  "Hello, World! ๐Ÿ‘‹",
  "Build beautiful web applications.",
  "100% Client-Side Typewriter Effect.",
  "Fast, smooth, and fully customizable."
];
  const [currentText, setCurrentText] = useState("");
  const [wordIdx, setWordIdx] = useState(0);
  const [isDeleting, setIsDeleting] = useState(false);

  useEffect(() => {
    const currentWord = words[wordIdx % words.length];
    let timer;

    if (!isDeleting) {
      if (currentText.length < currentWord.length) {
        timer = setTimeout(() => {
          setCurrentText(currentWord.slice(0, currentText.length + 1));
        }, 80);
      } else {
        timer = setTimeout(() => setIsDeleting(true), 1500);
      }
    } else {
      if (currentText.length > 0) {
        timer = setTimeout(() => {
          setCurrentText(currentWord.slice(0, currentText.length - 1));
        }, 40);
      } else {
        setIsDeleting(false);
        setWordIdx((prev) => (prev + 1) % words.length);
      }
    }
    return () => clearTimeout(timer);
  }, [currentText, isDeleting, wordIdx]);

  return (
    <div className="font-mono text-2xl font-bold text-slate-100 flex items-center">
      <span>{currentText}</span>
      <span className="animate-pulse ml-0.5 text-blue-500">|</span>
    </div>
  );
}

Paano Gamitin ang Typewriter Effect Generator

Gumawa ng nakakaakit na mga animated na header para sa mga landing page at website.

Real-Time Terminal Preview

Panoorin ang iyong mga parirala na lumalabas at nabubura sa isang madilim na frame ng terminal.

Tumpak na Bilis at Kontrol sa Cursor

I-adjust ang bilis ng pag-type, pagbura, at piliin ang estilo ng kumikislap na cursor.

Pag-export sa React, HTML at CSS

Bumuo ng mga handang gamitin na snippet para sa mga modernong proyekto sa web.

Mabilis na Brain Break

Kumusta ang isang mabilis na mini-game para makapagpahinga?

Kailangan ng 2 minutong pag-refresh ng kaisipan? Tumalon sa isang klasikong larong puzzle sa iyong browser.