Sha256: 701b845c9ca8b4a4f534313537786da04ed985f6972df05357fbbd087e37516c
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 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) { $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.0 | stylesheets/animate/flip/_flipOut.scss |