Sha256: 5c3956eaa2f1a67ed8d0d3812e8fbe880c5de3aa3d47b5f11cb020e93df89452

Contents?: true

Size: 1.7 KB

Versions: 9

Compression:

Stored size: 1.7 KB

Contents

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

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

// ---------------------------------------------------------------------------
// flipOut [ x | y | all ]

@mixin animate-flipOut(
  $sub        : all,
  $class      : $default-animation-class-mode,
  $keyframes  : $default-keyframes-output
) {
  $sub  : compact($sub);
  $x    : yepnope($sub, all x);
  $y    : yepnope($sub, all y);
  @if $x  { @include animate-flipOutX (all, $class, $keyframes); }
  @if $y  { @include animate-flipOutY (all, $class, $keyframes); }
}

// ---------------------------------------------------------------------------
// flipOutX

@mixin animate-flipOutX(
  $class      : $default-animation-class-mode,
  $keyframes  : $default-keyframes-output
) {
  $name: flipOutX;
  @if $keyframes {
    @include keyframes($name) {
      0% {
        @include transform(perspective(400px) rotateX(0deg));
        @include opacity(1);
      }
      100% {
        @include transform(perspective(400px) rotateX(90deg));
        @include opacity(0);
      }
    }
  }
  @include flip-class($name, $class);
}

// ---------------------------------------------------------------------------
// flipOutY

@mixin animate-flipOutY(
  $class      : $default-animation-class-mode,
  $keyframes  : $default-keyframes-output
) {
  $name: flipOutY;
  @if $keyframes {
    @include keyframes($name) {
      0% {
        @include transform(perspective(400px) rotateY(0deg));
        @include opacity(1);
      }
      100% {
        @include transform(perspective(400px) rotateY(90deg));
        @include opacity(0);
      }
    }
  }
  @include flip-class($name, $class);
}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rhet-butler-0.14.1 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.14.0 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.13.0 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.12.1 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.11.1 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.11.0 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.10.0 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
rhet-butler-0.9.0 default-configuration/assets/stylesheets/animate/flip/_flipOut.scss
animate-0.2.beta.0 stylesheets/animate/flip/_flipOut.scss