Skip to content

Commit 25448e3

Browse files
committed
Big update. Better file organisation, prefix dropping, workflow improvements.
1 parent 23ba4fe commit 25448e3

File tree

130 files changed

+3117
-6478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+3117
-6478
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.sass-cache
2+
node_modules/
3+
.DS_Store

Gruntfile.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
module.exports = function(grunt) {
2+
pkg: grunt.file.readJSON('package.json'),
3+
grunt.initConfig({
4+
5+
// Concatenate CSS files
6+
concat: {
7+
dist: {
8+
src: [
9+
// _base.css required for .animated helper class
10+
'source/_base.css',
11+
'source/**/*.css'
12+
]
13+
dest: 'animate.css'
14+
}
15+
},
16+
17+
// Auto-prefix CSS properties using Can I Use?
18+
autoprefixer: {
19+
options: {
20+
browsers: ['last 3 versions', 'bb 10', 'android 3']
21+
},
22+
no_dest: {
23+
// File to output
24+
src: 'animate.css'
25+
},
26+
},
27+
28+
// Minify CSS
29+
csso: {
30+
dist: {
31+
files: {
32+
// Output compressed CSS to style.min.css
33+
'animate.min.css': ['animate.css']
34+
}
35+
}
36+
},
37+
38+
// Watch files for changes
39+
watch: {
40+
css: {
41+
files: [
42+
'source/**/*',
43+
'!node_modules'
44+
],
45+
// Run Sass, autoprefixer, and CSSO
46+
tasks: ['concat', 'autoprefixer', 'csso'],
47+
}
48+
}
49+
50+
});
51+
52+
// Register our tasks
53+
grunt.loadNpmTasks('grunt-contrib-watch');
54+
grunt.loadNpmTasks('grunt-contrib-concat');
55+
grunt.loadNpmTasks('grunt-autoprefixer');
56+
grunt.loadNpmTasks('grunt-csso');
57+
grunt.registerTask('default', ['watch']);
58+
};

README.md

Lines changed: 30 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
##Usage
77
To use animate.css in your website, simply drop the stylesheet into your document's `<head>`, and add the class `animated` to an element, along with any of the animation names. That's it! You've got a CSS animated element. Super!
88

9+
```html
10+
<head>
11+
<link rel="stylesheet" href="animate.min.css">
12+
</head>
13+
```
14+
915
You can do a whole bunch of other stuff with animate.css when you combine it with jQuery or add your own CSS rules. Dynamically add animations using jQuery with ease:
1016

1117
```javascript
@@ -24,95 +30,32 @@ You can change the duration of your animations, add a delay or change the number
2430

2531
*Note: be sure to replace "vendor" in the CSS with the applicable vendor prefixes (webkit, moz, ms, o)*
2632

27-
*Note: Safari in Mountion Lion (OS 10.8) has a display glitch with the Flippers. They may not appear at all until the animation is completed, or the page may have other artifacting. One fix is to add overflow: hidden to the parent div.*
28-
29-
##License
30-
Animate.css is licensed under the MIT license. (http://opensource.org/licenses/MIT)
31-
32-
## Contributing
33-
Pull requests are the way to go here. I apologise in advance for the slow action on pull requests and issues. I only have two rules for submitting a pull request: match the naming convention (camelCase, categorised [fades, bounces, etc]) and let us see a demo of submitted animations in a [pen](http://codepen.io). That last one is important.
34-
35-
##Learn more
36-
You can learn more about animate.css over at http://daneden.me/animate
37-
You can also get in touch via email (dan.eden@me.com) or twitter (@_dte) if you need any help or have any issues.
38-
39-
##Cheat Sheet
40-
41-
####Attention seekers:
42-
flash
43-
bounce
44-
shake
45-
tada
46-
swing
47-
wobble
48-
pulse
49-
50-
####Flippers (currently Webkit, Firefox, &amp; IE10 only):
51-
flip
52-
flipInX
53-
flipOutX
54-
flipInY
55-
flipOutY
56-
57-
####Fading entrances:
58-
fadeIn
59-
fadeInUp
60-
fadeInDown
61-
fadeInLeft
62-
fadeInRight
63-
fadeInUpBig
64-
fadeInDownBig
65-
fadeInLeftBig
66-
fadeInRightBig
33+
## Custom Builds
34+
Animate.css is powered by Grunt, and you can create custom builds pretty easily. First of all, you’ll need Grunt and all other dependencies:
6735

68-
####Fading exits:
69-
fadeOut
70-
fadeOutUp
71-
fadeOutDown
72-
fadeOutLeft
73-
fadeOutRight
74-
fadeOutUpBig
75-
fadeOutDownBig
76-
fadeOutLeftBig
77-
fadeOutRightBig
78-
79-
####Bouncing entrances:
80-
bounceIn
81-
bounceInDown
82-
bounceInUp
83-
bounceInLeft
84-
bounceInRight
85-
86-
####Bouncing exits:
87-
bounceOut
88-
bounceOutDown
89-
bounceOutUp
90-
bounceOutLeft
91-
bounceOutRight
92-
93-
####Rotating entrances:
94-
rotateIn
95-
rotateInDownLeft
96-
rotateInDownRight
97-
rotateInUpLeft
98-
rotateInUpRight
99-
100-
####Rotating exits:
101-
rotateOut
102-
rotateOutDownLeft
103-
rotateOutDownRight
104-
rotateOutUpLeft
105-
rotateOutUpRight
36+
```
37+
$ cd path/to/animate.css/
38+
$ sudo npm install
39+
```
10640

107-
####Lightspeed:
108-
lightSpeedIn
109-
lightSpeedOut
41+
Next, run `grunt watch` to watch for changes and compile your custom builds. For example, if you want only the “attention seekers”, simply delete them from the repository, or change `Gruntfile.js` to only concatenate the files you want:
11042

111-
####Specials:
112-
hinge
113-
rollIn
114-
rollOut
43+
```javascript
44+
concat: {
45+
dist: {
46+
src: [
47+
// _base.css required for .animated helper class
48+
'source/_base.css',
49+
'source/attention_seekers/*.css',
50+
'source/flippers/*.css'
51+
],
52+
dest: 'animate.css'
53+
}
54+
}
55+
```
11556

116-
## Other Resources
57+
## License
58+
Animate.css is licensed under the MIT license. (http://opensource.org/licenses/MIT)
11759

118-
- There's a [Ruby gem](https://github.com/camelmasa/animate-rails) available for Animate.css
60+
## Contributing
61+
Pull requests are the way to go here. I apologise in advance for the slow action on pull requests and issues. I only have two rules for submitting a pull request: match the naming convention (camelCase, categorised [fades, bounces, etc]) and let us see a demo of submitted animations in a [pen](http://codepen.io). That last one is important.

0 commit comments

Comments
 (0)