You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/yesiamrocks/cssanimation)
11
10
12
11
**AnimText** is a lightweight JavaScript enhancer for animating text with **letter-by-letter, word-by-word, and line-by-line** animations to your projects. It's designed to work seamlessly with [{css}animation](https://github.com/yesiamrocks/cssanimation), for robust and customizable text effects.
13
12
@@ -104,7 +103,7 @@ This will animate the letters of the heading using your chosen animation class.
104
103
</h2>
105
104
```
106
105
107
-
## 1. Letter Animation Usage
106
+
## Letter Animation Usage
108
107
109
108
Animate text one letter at a time with different sequencing styles:
110
109
@@ -132,15 +131,15 @@ Animate text one letter at a time with different sequencing styles:
@@ -184,7 +183,7 @@ You don't need to add `data-at-separator` for `<br>` or newlines, this is the **
184
183
185
184
[Check out this Text & Letter Animations Preview Tool to easily generate the animation code for your text.](https://yesiamrocks.github.io/cssanimation/text-animation.html)
186
185
187
-
## `data-at-delay`
186
+
## Animation Delay
188
187
189
188
The `data-at-delay` attribute specifies the delay before each animated unit (letter, word, or line) begins its animation. The values are in milliseconds (ms).
190
189
@@ -206,7 +205,7 @@ The `data-at-delay` attribute specifies the delay before each animated unit (let
206
205
207
206
This allows you to create rhythmic or staggered entry effects easily, like `data-at-delay="50 100 100"` as in your example. The first unit gets 50ms delay, and all subsequent units get 100ms delay.
208
207
209
-
## `data-at-base-duration`
208
+
## Animation Base Duration`
210
209
211
210
The `data-at-base-duration` attribute provides a simple way to set a global default animation duration for all units (letters, words, or lines) in milliseconds (ms).
212
211
@@ -236,5 +235,3 @@ This means `data-at-base-duration` gives you a convenient way to set a project-w
236
235
- If you pass more classes or values than needed, the extra elements are skipped, and a warning might be logged to your console to help with debugging.
237
236
- Delay and duration values are parsed safely; non-numeric strings will fall back to default behaviors to prevent errors.
238
237
- Animation duration is determined in this order of precedence: `data-at-base-duration` > CSS-detected duration > internal default.
0 commit comments