Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions css-typing-animation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CSS Typing Animation

A **pure HTML + CSS** typing effect that simulates text being typed on a screen.

## ✨ Features
- No JavaScript used
- Smooth "typing" effect with a blinking cursor
- Fully responsive and minimal

## 🧠 How It Works
Uses CSS keyframes with `steps()` to reveal characters one by one,
and a separate `blink` animation for the cursor effect.

## 🛠️ Files
44 changes: 44 additions & 0 deletions css-typing-animation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Typing Animation - DevToolkit</title>
<link rel="stylesheet" href="../../style.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #0f172a;
color: #f8fafc;
font-family: 'Courier New', Courier, monospace;
}

.typing-container {
font-size: 1.8rem;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid #38bdf8;
width: 0;
animation: typing 4s steps(30, end) forwards, blink 0.7s step-end infinite alternate;
}

@keyframes typing {
from { width: 0; }
to { width: 23ch; }
}

@keyframes blink {
50% { border-color: transparent; }
}
</style>
</head>
<body>

<div class="typing-container">
Welcome to My Page ✨
</div>
</body>
</html>