تأثير الآلة الكاتبة Typewriter Effect
يظهر النص حرفاً حرفاً كأن أحداً يكتبه، مع مؤشر يومض في آخره.
@keyframes width + steps()متى تستخدمه
لعناوين صفحات الهبوط.
خطأ شائع
لا تستخدمه لنص طويل؛ فالناس لا تنتظر.
إمكانية الوصول
Put the full text in the DOM for screen readers; animate only visually.
اسمه في الكود
| HTML/CSS | @keyframes width + steps() |
|---|---|
| React | typewriter-effect |
| Jetpack Compose | LaunchedEffect + substring |
| SwiftUI | Task + .animation per character |
برومبت جاهز لوكيل البرمجة
Add a Typewriter Effect to this screen.
What it is: Text appears letter by letter as if being typed, with a blinking cursor at the end.
Implement with: @keyframes width + steps() (HTML/CSS).
Accessibility: Put the full text in the DOM for screen readers; animate only visually.
When to use it: For landing-page headlines.
Avoid: Don’t use it on long text; people won’t wait.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.