Ghost-Admin/app/styles/modules/animations.scss

77 lines
1.2 KiB
SCSS
Raw Normal View History

2014-10-24 16:12:22 +02:00
// ------------------------------------------------------------
// Animations
2014-07-30 06:41:35 +02:00
//
2014-10-24 16:12:22 +02:00
// Keyframe animations used through Ghost
//
// * Define animations
// * Classed to use these animations
// ------------------------------------------------------------
//
// Define animations
2014-07-30 06:41:35 +02:00
// --------------------------------------------------
@keyframes fade-in {
2014-07-30 06:41:35 +02:00
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fade-in-snap {
2014-07-30 06:41:35 +02:00
to {
opacity: 1;
}
}
@keyframes fade-in-scale {
from {
2015-03-07 21:35:45 +01:00
transform: scale(0.95);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
2014-07-30 06:41:35 +02:00
@keyframes fade-out {
2014-07-30 06:41:35 +02: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 16:12:22 +02: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;
2015-03-07 21:35:45 +01:00
}