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
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-08-26 11:56:02 +01:00
|
|
|
@keyframes fade-in {
|
2014-07-30 07:41:35 +03:00
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-26 11:56:02 +01:00
|
|
|
@keyframes fade-in-snap {
|
2014-07-30 07:41:35 +03:00
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-24 14:36:20 +01:00
|
|
|
@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
|
|
|
|
2014-08-26 11:56:02 +01:00
|
|
|
@keyframes fade-out {
|
2014-07-30 07:41:35 +03:00
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-10-15 19:56:32 -06:00
|
|
|
|
|
|
|
@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
|
|
|
}
|