Sha256: f2d2a3208b5de2b498cdca7c45952c4b78c0de0c09fbe53fd0637163605e11a1

Contents?: true

Size: 1.38 KB

Versions: 8

Compression:

Stored size: 1.38 KB

Contents

// ---------------------------------------------------------------------------
// imports
@import "compass/css3/animation";
@import "compass/css3/transform";
@import "compass/css3/opacity";

// ---------------------------------------------------------------------------
// hinge

@mixin animate-hinge(
  $class      : $default-animation-class-mode,
  $keyframes  : $default-keyframes-output
) {
  $name: hinge;
  @if $keyframes {
    @include keyframes($name) {
      0% {
        @include rotate(0);
        @include transform-origin(top, left);
        @include animation-timing-function(ease-in-out);
      }
      20%, 60% {
        @include rotate(80deg);
        @include transform-origin(top, left);
        @include animation-timing-function(ease-in-out);
      }
      40% {
        @include rotate(60deg);
        @include transform-origin(top, left);
        @include animation-timing-function(ease-in-out);
      }
      80% {
        @include transform(rotate(60deg) translateY(0));
        @include opacity(1);
        @include transform-origin(top, left);
        @include animation-timing-function(ease-in-out);
      }
      100% {
        @include translateY(700px);
        @include opacity(0);
      }
    }
  }

  @include animation-class($name, $class) {
    $selector: if($class == 'silent', '%animated', '.animated');
    &#{$selector} { @include animation($name 2s ease both); }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rhet-butler-0.14.1 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.14.0 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.13.0 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.12.1 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.11.1 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.11.0 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.10.0 default-configuration/assets/stylesheets/animate/special/_hinge.scss
rhet-butler-0.9.0 default-configuration/assets/stylesheets/animate/special/_hinge.scss