Sha256: e1060ae2f6a21b68ab3efbb54ff9ff066c36a07f6b28318d2bc8458de23bddf4
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
// --------------------------------------------------------------------------- // flipOut [ x | y | all ] @mixin animate-flipOut($sub: all, $class: $default-animation-class-mode) { $sub : compact($sub); $x : yepnope($sub, all x); $y : yepnope($sub, all y); @if $x { @include animate-flipOutX (all, $class); } @if $y { @include animate-flipOutY (all, $class); } } // --------------------------------------------------------------------------- // flipOutX @mixin animate-flipOutX($class: $default-animation-class-mode) { $name: flipOutX; @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) { $name: flipOutY; @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
animate-0.1.alpha.0 | stylesheets/animate/flip/_flipOut.scss |