Skip to content

Commit 86fee91

Browse files
committed
improve readme
1 parent 4354fd3 commit 86fee91

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Install tailwindcss plugin as described above and add it to your tailwind.config
4141
plugins: [
4242
// Other plugins
4343
require('tailwindcss-animatecss')({
44-
classes: ['fade', 'bounce', 'lightSpeedOut'],
44+
classes: ['animate__animated', 'animate__fadeIn', 'animate__bounceIn', 'animate__lightSpeedOut'],
4545
settings: {
4646
animatedSpeed: 1000,
4747
heartBeatSpeed: 1000,
@@ -55,7 +55,7 @@ plugins: [
5555
]
5656
```
5757

58-
You want to determine yourself which classes are used? You just have to set these class names at the classes array. Caution, class names without dot and without the ```animate``` prefix, for example if you want ```.animate__fade``` just add ```fade``` to the array.
58+
You want to determine yourself which classes are used? You just have to set these class names at the classes array. Caution, class names without dot and without the ```animate``` prefix, for example if you want ```.animate__fadeIn``` just add ```animate__fadeIn``` to the array.
5959
You can find all available class names further down.
6060

6161
Defining the classes is recommended to avoid to bloat your css with unused classes and keyframes.
@@ -64,7 +64,7 @@ Defining the classes is recommended to avoid to bloat your css with unused class
6464
plugins: [
6565
// Other plugins
6666
require('tailwindcss-animatecss')({
67-
classes: ['fade', 'bounce', ...],
67+
classes: ['animate__animated', 'animate__fadeIn', 'animate__bounceIn', ...],
6868
settings: {},
6969
variants: [],
7070
}),

animate/animate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ module.exports = function ({ classes = [], settings = {}, variants = ['responsiv
474474

475475
if (classes && classes.length > 0) {
476476
classes.forEach((el) => {
477-
utilities[`.${el}`] = fallbackUtilities[`.${el}`];
477+
utilities[`.animate__${el}`] = fallbackUtilities[`.animate__${el}`];
478478
keyFrames[`@keyframes ${el}`] = fallbackKeyframes[`@keyframes ${el}`];
479479
});
480480
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-animatecss",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Add Animate CSS as Tailwind CSS plugin to your project.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)