2014-05-21 21:17:39 +04:00
|
|
|
/*
|
|
|
|
* Reusable keyframe animations
|
|
|
|
*
|
|
|
|
* Table of Contents
|
|
|
|
*
|
|
|
|
* Off-Canvas
|
|
|
|
* Fade In
|
|
|
|
* Fade Out
|
|
|
|
*/
|
2014-02-23 18:07:01 +04:00
|
|
|
|
2014-05-21 21:17:39 +04:00
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
Off-Canvas
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
@include keyframes(off-canvas) {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2014-02-23 18:07:01 +04:00
|
|
|
}
|
|
|
|
|
2014-05-21 21:17:39 +04:00
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
Fade In
|
|
|
|
TODO: Make the fadeIn keyframe name hyphenated, not camelCase
|
|
|
|
========================================================================== */
|
|
|
|
|
2014-06-24 17:50:06 +04:00
|
|
|
@include keyframes(fade-in) {
|
2014-02-23 18:07:01 +04:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2014-06-24 17:50:06 +04:00
|
|
|
.fade-in {
|
|
|
|
-o-animation: fade-in 0.5s;
|
|
|
|
-moz-animation: fade-in 0.5s;
|
|
|
|
-webkit-animation: fade-in 0.5s;
|
|
|
|
animation: fade-in 0.5s;
|
|
|
|
}
|
2014-02-23 18:07:01 +04:00
|
|
|
|
2014-05-21 21:17:39 +04:00
|
|
|
/* ==========================================================================
|
|
|
|
Fade Out
|
|
|
|
TODO: Make the fadeIn keyframe name hyphenated, not camelCase
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
@include keyframes(fade-out) {
|
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2014-06-24 17:50:06 +04:00
|
|
|
}
|
|
|
|
.fade-out {
|
|
|
|
-o-animation: fade-out 0.5s;
|
|
|
|
-moz-animation: fade-out 0.5s;
|
|
|
|
-webkit-animation: fade-out 0.5s;
|
|
|
|
animation: fade-out 0.5s;
|
2014-05-21 21:17:39 +04:00
|
|
|
}
|