Skip to content

Commit

Permalink
Merge pull request #154 from mrwillis21/rubberBand
Browse files Browse the repository at this point in the history
Add “rubber band” animation.
  • Loading branch information
daneden committed Feb 14, 2014
2 parents f5ed338 + 53f7cc8 commit d32b3c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .animate-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"bounce": true,
"flash": true,
"pulse": true,
"rubberBand": true,
"shake": true,
"swing": true,
"tada": true,
Expand Down
11 changes: 11 additions & 0 deletions source/attention_seekers/rubberBand.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@keyframes rubberBand {
0% { transform: scale(1); }
30% { transform: scaleX(1.25) scaleY(0.75); }
40% { transform: scaleX(0.75) scaleY(1.25); }
60% { transform: scaleX(1.15) scaleY(0.85); }
100% { transform: scale(1); }
}

.rubberBand {
animation-name: rubberBand;
}

0 comments on commit d32b3c5

Please sign in to comment.