0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/assets/sass/modules/animations.scss

76 lines
1.2 KiB
SCSS
Raw Normal View History

2014-10-24 15:12:22 +01:00
// ------------------------------------------------------------
// Animations
2014-07-30 07:41:35 +03:00
//
2014-10-24 15:12:22 +01:00
// Keyframe animations used through Ghost
//
// * Define animations
// * Classed to use these animations
// ------------------------------------------------------------
//
// Define animations
2014-07-30 07:41:35 +03:00
// --------------------------------------------------
@keyframes fade-in {
2014-07-30 07:41:35 +03:00
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-in-snap {
2014-07-30 07:41:35 +03:00
to {
opacity: 1;
}
}
@keyframes fade-in-scale {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
2014-07-30 07:41:35 +03:00
@keyframes fade-out {
2014-07-30 07:41:35 +03:00
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes keyboard-focus-style-fade-out {
from {
box-shadow: inset 0 0 30px 1px lighten($midgrey, 20%);
}
to {
box-shadow: none;
}
2014-10-24 15:12:22 +01:00
}
//
// Classed to use these animations
// --------------------------------------------------
.fade-in {
animation: fade-in 0.2s;
animation-fill-mode: forwards;
}
.fade-in-scale {
animation: fade-in-scale 0.2s;
animation-fill-mode: forwards;
}
.fade-out {
animation: fade-out 0.5s;
animation-fill-mode: forwards;
2014-07-30 07:41:35 +03:00
}