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
animtext requires @hellouxpavel/cssanimation to function. It provides the actual animation classes (like ca\_\_fx-fadeIn) used in the HTML examples.
47
+
## Animation Classes Powered by {css}animation
48
+
49
+
**AnimText** is designed to work hand-in-hand with the animation classes from **[{css}animation](https://github.com/yesiamrocks/cssanimation)**. These CSS classes are required to make the **AnimText** actually animate elements, so be sure to include them in your project.
@@ -118,7 +160,9 @@ Split lines by periods `"."` or by `<br>` / `\n`. Use `data-at-separator="dot"`
118
160
119
161
You don't need to add `data-at-separator` for `<br>` or newlines, this is the **default behavior**.
120
162
121
-
**🔥You can assign different animation classes and delays to each word and line! Space-separate your class names and delay values.**
163
+
## Multiple Animation Classes
164
+
165
+
🔥You can assign different animation classes and delays to each **word and line**! Space-separate your class names and delay values.
122
166
123
167
```html
124
168
<h2
@@ -140,7 +184,7 @@ You don't need to add `data-at-separator` for `<br>` or newlines, this is the **
140
184
141
185
[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)
142
186
143
-
## `data-at-delay` in Detail
187
+
## `data-at-delay`
144
188
145
189
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).
146
190
@@ -162,7 +206,7 @@ The `data-at-delay` attribute specifies the delay before each animated unit (let
162
206
163
207
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.
164
208
165
-
## `data-at-base-duration` in Detail
209
+
## `data-at-base-duration`
166
210
167
211
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).
168
212
@@ -185,31 +229,6 @@ This value is used to explicitly set the duration for all units, overriding any
185
229
186
230
This means `data-at-base-duration` gives you a convenient way to set a project-wide or component-wide default duration without needing to edit CSS.
187
231
188
-
## Supported Attributes for Text Animations Plugin
0 commit comments