Skip to content

Commit 824484e

Browse files
warengonzagaeltonmesquita
authored andcommitted
Minor Updates and Small Fixes (#790)
* Update the devDependencies * Update the gitignore file * Update the version of gulp * Fix the build error in the gulpfile script * Update node version testing for travis * Update the package.json * Fix some errors * Update the devdependencies * Re arrange the .gitignore * Update devdependency to the latest stable version * Add new line at the end of the file * Fix versioning error * Update DevDependencies * Update the version from 3.6.1 into 3.6.2 * Add delays up to 5 seconds * Update the files from 3.6.1 into 3.6.2 * Modify the documentation and add delay option
1 parent da9afc0 commit 824484e

File tree

7 files changed

+79
-26
lines changed

7 files changed

+79
-26
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
.db
2+
.DS_Store
3+
.idea
4+
.ini
5+
.log
16
.sass-cache
27
node_modules/
3-
npm-debug.log
48
test/
5-
.idea
6-
.DS_Store
7-
Thumbs.db
8-
Desktop.ini

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ npm install animate.css --save
2020

2121
## Basic Usage
2222

23-
1. Include the stylesheet on your document's `<head>`
23+
1. Include the stylesheet on your document's `<head>`
2424

2525
```html
2626
<head>
@@ -56,9 +56,9 @@ You may [generate a SRI hash](https://www.srihash.org/) of that particular versi
5656
</head>
5757
```
5858

59-
2. Add the class `animated` to the element you want to animate. You may also want to include the class `infinite` for an infinite loop.
59+
2. Add the class `animated` to the element you want to animate. You may also want to include the class `infinite` for an infinite loop.
6060

61-
3. Finally you need to add one of the following classes:
61+
3. Finally you need to add one of the following classes:
6262

6363
| Class Name | | | |
6464
| ----------------- | ------------------ | ------------------- | -------------------- |
@@ -85,7 +85,7 @@ You may [generate a SRI hash](https://www.srihash.org/) of that particular versi
8585
Full example:
8686

8787
```html
88-
<h1 class="animated infinite bounce">Example</h1>
88+
<h1 class="animated infinite bounce delay-2s">Example</h1>
8989
```
9090

9191
[Check out all the animations here!](https://daneden.github.io/animate.css/)
@@ -199,6 +199,14 @@ You can change the duration of your animations, add a delay or change the number
199199

200200
_Note: be sure to replace "vendor" in the CSS with the applicable vendor prefixes (webkit, moz, etc)_
201201

202+
You can also add delays directly on the element's class attribute, just like this:
203+
204+
```html
205+
<div class="animated bounce delay-2s">Example</div>
206+
```
207+
208+
_Note: the default delays are from 1 seconds to 5 seconds only. If you want to add customized delays, you can add it directly to your css_
209+
202210
## Custom Builds
203211

204212
Animate.css is powered by [gulp.js](http://gulpjs.com/), and you can create custom builds pretty easily. First of all, you’ll need Gulp and all other dependencies:

animate.css

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* animate.css -http://daneden.me/animate
5-
* Version - 3.6.0
5+
* Version - 3.6.2
66
* Licensed under the MIT license - http://opensource.org/licenses/MIT
77
*
88
* Copyright (c) 2018 Daniel Eden
@@ -20,6 +20,31 @@
2020
animation-iteration-count: infinite;
2121
}
2222

23+
.animated.delay-1s {
24+
-webkit-animation-delay: 1s;
25+
animation-delay: 1s;
26+
}
27+
28+
.animated.delay-2s {
29+
-webkit-animation-delay: 2s;
30+
animation-delay: 2s;
31+
}
32+
33+
.animated.delay-3s {
34+
-webkit-animation-delay: 3s;
35+
animation-delay: 3s;
36+
}
37+
38+
.animated.delay-4s {
39+
-webkit-animation-delay: 4s;
40+
animation-delay: 4s;
41+
}
42+
43+
.animated.delay-5s {
44+
-webkit-animation-delay: 5s;
45+
animation-delay: 5s;
46+
}
47+
2348
@-webkit-keyframes bounce {
2449
from,
2550
20%,

animate.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ var opts = {
2525

2626
autoprefixer: {
2727
browsers: ['> 1%', 'last 2 versions', 'Firefox ESR'],
28-
cascade: false,
28+
cascade: false
2929
},
3030

3131
minRename: {
32-
suffix: '.min',
32+
suffix: '.min'
3333
},
3434

3535
banner: [
@@ -41,7 +41,7 @@ var opts = {
4141
' *',
4242
' * Copyright (c) <%= new Date().getFullYear() %> <%= author.name %>',
4343
' */\n\n',
44-
].join('\n'),
44+
].join('\n')
4545
};
4646

4747
// ----------------------------

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "animate.css",
3-
"version": "3.6.1",
3+
"version": "3.6.2",
44
"main": "animate.css",
55
"repository": {
66
"type": "git",
@@ -20,19 +20,19 @@
2020
}
2121
},
2222
"devDependencies": {
23-
"autoprefixer": "^7.1.6",
24-
"cssnano": "^3.5.1",
25-
"eslint": "^4.11.0",
23+
"autoprefixer": "^8.0.0",
24+
"cssnano": "^3.10.0",
25+
"eslint": "^4.18.0",
2626
"gulp": "^3.9.1",
27-
"gulp-concat": "^2.6.0",
28-
"gulp-header": "^1.7.1",
29-
"gulp-postcss": "^7.0.0",
27+
"gulp-concat": "^2.6.1",
28+
"gulp-header": "^2.0.1",
29+
"gulp-postcss": "^7.0.1",
3030
"gulp-rename": "^1.2.2",
31-
"gulp-util": "^3.0.7",
31+
"gulp-util": "^3.0.8",
3232
"husky": "^0.14.3",
33-
"lint-staged": "^6.0.0",
34-
"prettier": "^1.9.1",
35-
"run-sequence": "^2.2.0"
33+
"lint-staged": "^7.0.0",
34+
"prettier": "^1.10.2",
35+
"run-sequence": "^2.2.1"
3636
},
3737
"lint-staged": {
3838
"*.{js,json,md,css}": ["prettier --write", "git add"]

source/_base.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,23 @@
66
.animated.infinite {
77
animation-iteration-count: infinite;
88
}
9+
10+
.animated.delay-1s {
11+
animation-delay: 1s;
12+
}
13+
14+
.animated.delay-2s {
15+
animation-delay: 2s;
16+
}
17+
18+
.animated.delay-3s {
19+
animation-delay: 3s;
20+
}
21+
22+
.animated.delay-4s {
23+
animation-delay: 4s;
24+
}
25+
26+
.animated.delay-5s {
27+
animation-delay: 5s;
28+
}

0 commit comments

Comments
 (0)