Skip to content

Commit

Permalink
Removed the use for strip-unit in shake function
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed Oct 13, 2015
1 parent eb50a93 commit f7cbbb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effects/_shake.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/// Creates a shaking animation.
/// @param {Number} $intensity [7%] - Intensity of the shake, as a percentage value.
/// @param {Percentage} $intensity [7%] - Intensity of the shake, as a percentage value.
/// @return {Map} A keyframes map that can be used with the `generate-keyframes()` mixin.
@function shake($intensity: 7%) {
$right: (0, 10, 20, 30, 40, 50, 60, 70, 80, 90);
$left: (5, 15, 25, 35, 45, 55, 65, 75, 85, 95);

$keyframes: (
name: 'shake-#{strip-unit($intensity)}',
name: 'shake-#{($intensity / 1%)}',
$right: (transform: translateX($intensity)),
$left: (transform: translateX(-$intensity)),
);
Expand Down

0 comments on commit f7cbbb0

Please sign in to comment.