mirror of
https://github.com/l-lin/font-awesome-animation.git
synced 2024-12-28 06:21:32 +08:00
feat(#30): add fa-rising
This commit is contained in:
parent
9b69a99b89
commit
79c14ee7b4
21
README.md
21
README.md
@ -8,18 +8,22 @@ Getting started
|
|||||||
Download
|
Download
|
||||||
----------------
|
----------------
|
||||||
### Manually
|
### Manually
|
||||||
|
|
||||||
The files can be downloaded from:
|
The files can be downloaded from:
|
||||||
|
|
||||||
* Minified [CSS](https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.min.css) for production usage
|
* Minified [CSS](https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.min.css) for production usage
|
||||||
* Un-minified [CSS](https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.css) for development
|
* Un-minified [CSS](https://raw.githubusercontent.com/l-lin/font-awesome-animation/master/dist/font-awesome-animation.css) for development
|
||||||
|
|
||||||
### With BowerJS
|
### With BowerJS
|
||||||
```
|
|
||||||
$ bower install font-awesome-animation
|
```bash
|
||||||
|
bower install font-awesome-animation
|
||||||
```
|
```
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
----------------
|
----------------
|
||||||
Include CSS file in your index.html file:
|
Include CSS file in your index.html file:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="font-awesome-animation.min.css">
|
<link rel="stylesheet" href="font-awesome-animation.min.css">
|
||||||
```
|
```
|
||||||
@ -32,22 +36,25 @@ Development
|
|||||||
================
|
================
|
||||||
This project is using:
|
This project is using:
|
||||||
* [GruntJS](http://gruntjs.com/) for adding prefixes and minification purpose
|
* [GruntJS](http://gruntjs.com/) for adding prefixes and minification purpose
|
||||||
* the CSS preprocessor [Myth](http://www.myth.io/) to generate the the prefixes for common browsers
|
* the CSS preprocessor [Myth](http://www.myth.io/) to generate the prefixes for common browsers
|
||||||
|
|
||||||
Getting started
|
Getting started
|
||||||
----------------
|
----------------
|
||||||
You will need to install the dependencies:
|
You will need to install the dependencies:
|
||||||
```
|
|
||||||
$ npm install
|
```bash
|
||||||
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Build
|
Build
|
||||||
----------------
|
----------------
|
||||||
You can generate the CSS file with prefixes and the minified CSS file by executing the following command:
|
You can generate the CSS file with prefixes and the minified CSS file by executing the following command:
|
||||||
```
|
|
||||||
$ grunt
|
```bash
|
||||||
|
grunt
|
||||||
```
|
```
|
||||||
|
|
||||||
License
|
License
|
||||||
================
|
================
|
||||||
|
|
||||||
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
|
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
|
||||||
|
@ -326,5 +326,25 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-rocket faa-rising animated"></i>
|
||||||
|
faa-rising animated
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<a href="#">
|
||||||
|
<i class="fas fa-rocket faa-rising animated-hover"></i>
|
||||||
|
faa-rising animated-hover
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<a href="#" class="faa-parent animated-hover">
|
||||||
|
<i class="fas fa-rocket faa-rising"></i>
|
||||||
|
faa-rising
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
67
dist/font-awesome-animation.css
vendored
67
dist/font-awesome-animation.css
vendored
File diff suppressed because one or more lines are too long
2
dist/font-awesome-animation.min.css
vendored
2
dist/font-awesome-animation.min.css
vendored
File diff suppressed because one or more lines are too long
1271
package-lock.json
generated
1271
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -345,7 +345,6 @@
|
|||||||
50% {transform:translateY(0%); opacity:1}
|
50% {transform:translateY(0%); opacity:1}
|
||||||
100% {transform:translateY(50%); opacity:0}
|
100% {transform:translateY(50%); opacity:0}
|
||||||
}
|
}
|
||||||
|
|
||||||
.faa-falling.animated,
|
.faa-falling.animated,
|
||||||
.faa-falling.animated-hover:hover,
|
.faa-falling.animated-hover:hover,
|
||||||
.faa-parent.animated-hover:hover > .faa-falling {
|
.faa-parent.animated-hover:hover > .faa-falling {
|
||||||
@ -361,3 +360,26 @@
|
|||||||
.faa-parent.animated-hover:hover > .faa-falling.faa-slow {
|
.faa-parent.animated-hover:hover > .faa-falling.faa-slow {
|
||||||
animation: falling 3s linear infinite;
|
animation: falling 3s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* RISING */
|
||||||
|
@keyframes rising {
|
||||||
|
0% {transform:translateY(50%); opacity:0}
|
||||||
|
50% {transform:translateY(0%); opacity:1}
|
||||||
|
100% {transform:translateY(-50%); opacity:0}
|
||||||
|
}
|
||||||
|
.faa-rising.animated,
|
||||||
|
.faa-rising.animated-hover:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising {
|
||||||
|
animation: rising 2s linear infinite;
|
||||||
|
}
|
||||||
|
.faa-rising.animated.faa-fast,
|
||||||
|
.faa-rising.animated-hover.faa-fast:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising.faa-fast {
|
||||||
|
animation: rising 1s linear infinite;
|
||||||
|
}
|
||||||
|
.faa-rising.animated.faa-slow,
|
||||||
|
.faa-rising.animated-hover.faa-slow:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising.faa-slow {
|
||||||
|
animation: rising 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -345,7 +345,6 @@
|
|||||||
50% {transform:translateY(0%); opacity:1}
|
50% {transform:translateY(0%); opacity:1}
|
||||||
100% {transform:translateY(50%); opacity:0}
|
100% {transform:translateY(50%); opacity:0}
|
||||||
}
|
}
|
||||||
|
|
||||||
.faa-falling.animated,
|
.faa-falling.animated,
|
||||||
.faa-falling.animated-hover:hover,
|
.faa-falling.animated-hover:hover,
|
||||||
.faa-parent.animated-hover:hover > .faa-falling {
|
.faa-parent.animated-hover:hover > .faa-falling {
|
||||||
@ -361,3 +360,26 @@
|
|||||||
.faa-parent.animated-hover:hover > .faa-falling.faa-slow {
|
.faa-parent.animated-hover:hover > .faa-falling.faa-slow {
|
||||||
animation: falling 3s linear infinite;
|
animation: falling 3s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* RISING */
|
||||||
|
@keyframes rising {
|
||||||
|
0% {transform:translateY(50%); opacity:0}
|
||||||
|
50% {transform:translateY(0%); opacity:1}
|
||||||
|
100% {transform:translateY(-50%); opacity:0}
|
||||||
|
}
|
||||||
|
.faa-rising.animated,
|
||||||
|
.faa-rising.animated-hover:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising {
|
||||||
|
animation: rising 2s linear infinite;
|
||||||
|
}
|
||||||
|
.faa-rising.animated.faa-fast,
|
||||||
|
.faa-rising.animated-hover.faa-fast:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising.faa-fast {
|
||||||
|
animation: rising 1s linear infinite;
|
||||||
|
}
|
||||||
|
.faa-rising.animated.faa-slow,
|
||||||
|
.faa-rising.animated-hover.faa-slow:hover,
|
||||||
|
.faa-parent.animated-hover:hover > .faa-rising.faa-slow {
|
||||||
|
animation: rising 3s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user