Sha256: 3322a3f4b820733e42fde0876f89021c8a7dee9ea5e971de7a97f1eea1ae0521

Contents?: true

Size: 889 Bytes

Versions: 1

Compression:

Stored size: 889 Bytes

Contents

// ---------------------------------------------------------------------------
// imports

@import "compass/css3/animation";
@import "compass/css3/transform";

// ---------------------------------------------------------------------------
// wobble

@mixin animate-wobble($class: $default-animation-class-mode) {
  $name: wobble;
  @include keyframes($name) {
    0% {
      @include translateX(0%); 
    }
    15% {
      @include transform(translateX(-25%) rotate(-5deg)); 
    }
    30% {
      @include transform(translateX(20%) rotate(3deg)); 
    }
    45% {
      @include transform(translateX(-15%) rotate(-3deg)); 
    }
    60% {
      @include transform(translateX(10%) rotate(2deg)); 
    }
    75% {
      @include transform(translateX(-5%) rotate(-1deg)); 
    }
    100% {
      @include transform(translateX(0%)); 
    } 
  }
  @include animation-class($name, $class) {}
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
animate-0.1.0 stylesheets/animate/attention/_wobble.scss