タイピング効果生成器

タイプライター効果ジェネレーター

文字を一文字ずつ打ち込み消去するスタイリッシュなタイピング演出をブラウザ上で作成し、React、HTML/JS、純粋CSSコードを生成します。

タイピング設定
改行(Enter)で複数のフレーズを区切ります
おすすめプリセット
入力速度80 ms
削除速度40 ms
待機時間1.5 s
typewriter-preview.sh
|
入力中 (1/4)
0 文字
設定を変更するとプレビュー画面に即座に反映されます。
生成されたソースコード
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>
  );
}

タイプライター効果生成器の使い方と特徴

WebサイトのヒーローセクションやLPを彩るインタラクティブな文字タイピング演出を簡単作成。

リアルタイムなタイピングプレビュー

複数フレーズが滑らかに入力・削除されるアニメーションをダーク端末風UIで即座に確認できます。

細やかな速度・カーソル調整

タイピング速度や削除速度、待機時間、パイプやアンダースコアなどのカーソル形状を自在に調整可能です。

React・HTML・CSSコード出力

Reactコンポーネント、Vanilla HTML/JS、CSSキーフレームなど、実際のプロジェクトに即時導入できるコードを生成します。

クイック ブレイン ブレーク

気分転換に簡単なミニゲームはいかがですか?

作業の合間に脳をリフレッシュできる無料ブラウザゲームコレクションです。