Ghost/ghost/admin/assets/sass/helpers/animations.scss
Paul Adam Davis 0f8ae45bc4 Fix flickering popover transitions
Closes #4138

- Removed JS animation to close in favour of CSS animations
2014-09-30 10:48:21 +01:00

59 lines
880 B
SCSS
Executable File

//
// Fade in
// --------------------------------------------------
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
animation: fade-in 0.2s;
animation-fill-mode: forwards;
}
@keyframes fade-in-snap {
to {
opacity: 1;
}
}
//
// Fade in scale up
// --------------------------------------------------
@keyframes fade-in-scale {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.fade-in-scale {
animation: fade-in-scale 0.2s;
animation-fill-mode: forwards;
}
//
// Fade out
// --------------------------------------------------
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.fade-out {
animation: fade-out 0.5s;
animation-fill-mode: forwards;
}