0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/assets/sass/modules/animations.scss
2014-07-17 13:00:53 +02:00

70 lines
No EOL
1.4 KiB
SCSS

/*
* Reusable keyframe animations
*
* Table of Contents
*
* Off-Canvas
* Fade In
* Fade Out
*/
/* ==========================================================================
Off-Canvas
========================================================================== */
@include keyframes(off-canvas) {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* ==========================================================================
Fade In
TODO: Make the fadeIn keyframe name hyphenated, not camelCase
========================================================================== */
@include keyframes(fade-in) {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
-o-animation: fade-in 1s;
-moz-animation: fade-in 1s;
-webkit-animation: fade-in 1s;
animation: fade-in 1s;
}
@include keyframes(fade-in-snap) {
to {
opacity: 1;
}
}
/* ==========================================================================
Fade Out
TODO: Make the fadeIn keyframe name hyphenated, not camelCase
========================================================================== */
@include keyframes(fade-out) {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.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;
}