Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Heart-Beat animation #830

Merged
merged 9 commits into from
Jul 21, 2018
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ You may [generate a SRI hash](https://www.srihash.org/) of that particular versi
| `zoomOutDown` | `zoomOutLeft` | `zoomOutRight` | `zoomOutUp` |
| `slideInDown` | `slideInLeft` | `slideInRight` | `slideInUp` |
| `slideOutDown` | `slideOutLeft` | `slideOutRight` | `slideOutUp` |
| `heartBeat` |

Full example:

Expand Down
3 changes: 2 additions & 1 deletion animate-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"swing": true,
"tada": true,
"wobble": true,
"jello": true
"jello": true,
"hearBeat": true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually need to fix this typo first!

},

"bouncing_entrances": {
Expand Down
55 changes: 55 additions & 0 deletions animate.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,61 @@
animation-name: headShake;
}

@-webkit-keyframes heartBeat{
0%{
transform: scale(1);
}

14%{
transform: scale(1.3);
}

28%{
transform: scale(1);
}

42%{
transform: scale(1.3);
}

70%{
transform: scale(1);
}

}

@keyframes heartBeat{
0%{
transform: scale(1);
}

14%{
transform: scale(1.3);
}

28%{
transform: scale(1);
}

42%{
transform: scale(1.3);
}

70%{
transform: scale(1);
}

}

.heartBeat{
-webkit-animation-name: heartBeat;
animation-name: heartBeat;
-webkit-animation-duration: 1.3s;
animation-duration: 1.3s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}

@-webkit-keyframes swing {
20% {
-webkit-transform: rotate3d(0, 0, 1, 15deg);
Expand Down
29 changes: 29 additions & 0 deletions source/attention_seekers/heartBeat.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@keyframes heartBeat{

0%{
transform: scale(1);
}

14%{
transform: scale(1.3);
}

28%{
transform: scale(1);
}

42%{
transform: scale(1.3);
}

70%{
transform: scale(1);
}

}

.heartBeat{
animation-name: heartBeat;
animation-duration: 1.3s;
animation-timing-function: ease-in-out;
}