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
Copy file name to clipboardExpand all lines: README.md
+30-87Lines changed: 30 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@
6
6
##Usage
7
7
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!
8
8
9
+
```html
10
+
<head>
11
+
<linkrel="stylesheet"href="animate.min.css">
12
+
</head>
13
+
```
14
+
9
15
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:
10
16
11
17
```javascript
@@ -24,95 +30,32 @@ You can change the duration of your animations, add a delay or change the number
24
30
25
31
*Note: be sure to replace "vendor" in the CSS with the applicable vendor prefixes (webkit, moz, ms, o)*
26
32
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, & 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:
67
35
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
+
```
106
40
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:
110
42
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
+
```
115
56
116
-
## Other Resources
57
+
## License
58
+
Animate.css is licensed under the MIT license. (http://opensource.org/licenses/MIT)
117
59
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