Skip to content

Commit

Permalink
Add hatch animation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrykuzmenkov committed Jan 13, 2016
1 parent b2aecef commit 1e7c8d9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Here is full list of supported CSS animation name that you can use in animate fu

- bounce
- flash
- hatch
- head-shake
- jello
- pulse
Expand Down
1 change: 1 addition & 0 deletions component/animation/animation.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
"attention": [
"bounce",
"flash",
"hatch",
"head-shake",
"jello",
"pulse",
Expand Down
1 change: 1 addition & 0 deletions main.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "./src/main.less";
@import "./src/attention/bounce.less";
@import "./src/attention/flash.less";
@import "./src/attention/hatch.less";
@import "./src/attention/head-shake.less";
@import "./src/attention/jello.less";
@import "./src/attention/pulse.less";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"animation-kit",
"effects"
],
"version": "0.5.1",
"version": "0.5.2",
"browser": "index.js",
"main": "index.js",
"scripts": {
Expand Down
27 changes: 27 additions & 0 deletions src/attention/hatch.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@keyframes hatch {
0% {
transform: rotate(0deg) scaleY(0.6);
}
20% {
transform: rotate(-2deg) scaleY(1.05);
}
35% {
transform: rotate(2deg) scaleY(1);
}
50% {
transform: rotate(-2deg);
}
65% {
transform: rotate(1deg);
}
80% {
transform: rotate(-1deg);
}
100% {
transform: rotate(0deg);
}
}

.hatch-animation {
animation-name: hatch;
}

0 comments on commit 1e7c8d9

Please sign in to comment.