app/assets/stylesheets/_effects.scss
//=============================================================================
// Visability effects.
.hide {
display: none !important;
visibility: hidden;
}
.transparent {
@include opacity(0);
}
//=============================================================================
// Animation effects.
// Fading styles
.fade-in {
@include opacity(1);
z-index:9999 !important;
position:relative;
@include transition(opacity $animation-duration-base, z-index $animation-duration-base);
}
.fade-out {
@include opacity(0);
z-index:0 !important;
position:relative;
@include transition(opacity $animation-duration-base, z-index $animation-duration-base);
}
// delayed fading styles that trigger at a delay equal to 1/2 the duration of the fading styles
.fade-in-delay {
@include opacity(1);
z-index:9998 !important;
position:relative;
@include transition(opacity $animation-duration-base, z-index $animation-duration-base);
@include transition-delay($animation-duration-fast);
}
.fade-out-delay {
@include opacity(0);
z-index:-9998 !important;
position:relative;
@include transition(opacity $animation-duration-base, z-index $animation-duration-base);
@include transition-delay($animation-duration-fast);
}
.flip {
@include rotateY(180deg);
@include transition(transform $animation-duration-base);
@include backface-visibility( hidden );
}
.unflip {
@include rotateY(0deg);
@include transition(transform $animation-duration-base);
@include backface-visibility( hidden );
}
.blur {
@include filter(blur(4px));
@include transition(filter $animation-duration-base);
}
.unblur {
@include filter(blur(0));
@include transition(filter $animation-duration-base);
}
.slide-up {
z-index:-1 !important;
margin-top: -9999px !important;
position:absolute !important;
-webkit-transition: margin-top $animation-duration-base, z-index $animation-duration-base;
-moz-transition: margin-top $animation-duration-base, z-index $animation-duration-base;
transition: margin-top $animation-duration-base, z-index $animation-duration-base;
}
.slide-down {
z-index:-1 !important;
margin-top: 0 !important;
position:absolute !important;
-webkit-transition: margin-top $animation-duration-base, z-index $animation-duration-base;
-moz-transition: margin-top $animation-duration-base, z-index $animation-duration-base;
transition: margin-top $animation-duration-base, z-index $animation-duration-base;
}
//=============================================================================
// Positioning effects.
// Class to fix position a component so it stays on screen when scrolling.
// Used in combination with the "layer-*" classes to determine the layering.
.floating {
position: fixed !important;
left: 0;
top: 0;
}
.layer-11 {
z-index: $layer-11 !important;
}
.layer-10 {
z-index: $layer-10 !important;
}
.layer-9 {
z-index: $layer-9 !important;
}
.layer-8 {
z-index: $layer-8 !important;
}
.layer-7 {
z-index: $layer-7 !important;
}