Chatwoot/app/javascript/dashboard/assets/scss/_animations.scss

110 lines
2.3 KiB
SCSS
Raw Normal View History

/* Enter and leave animations can use different */
/* durations and timing functions. */
.slide-fade-enter-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-in-cubic;
}
2019-10-27 13:58:02 +00:00
.slide-fade-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-out-cubic;
}
2019-10-27 13:58:02 +00:00
.slide-fade-enter, .slide-fade-leave-to {
opacity: 0;
transform: translateX(10px);
}
.slide-fade-enter {
transform: translateX($space-micro);
}
2019-10-27 13:58:02 +00:00
.slide-fade-leave-to {
transform: translateX($space-medium);
}
.conversations-list-enter-active, .conversations-list-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .25s $ease-out-cubic;
}
2019-10-27 13:58:02 +00:00
.conversations-list-enter, .conversations-list-leave-to /* .conversations-list-leave-active for <2.1.8 */ {
opacity: 0;
transform: translateX($space-medium);
}
.menu-list-enter-active, .menu-list-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .2s $ease-out-cubic;
}
2019-10-27 13:58:02 +00:00
.menu-list-enter, .menu-list-leave-to /* .conversations-list-leave-active for <2.1.8 */ {
opacity: 0;
transform: translateX($space-medium);
}
.slide-up-enter-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-in-cubic;
}
.slide-up-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-out-cubic;
}
.slide-up-enter, .slide-up-leave-to
/* .slide-fade-leave-active for <2.1.8 */ {
transform: translateY(-$space-medium);
opacity: 0;
}
.menu-slide-enter-active,
.menu-slide-leave-active {
transform: translateY(0);
transition: transform 0.25s $ease-in-cubic, opacity 0.15s $ease-in-cubic;
}
.menu-slide-enter, .menu-slide-leave-to
/* .slide-fade-leave-active for <2.1.8 */ {
2019-10-20 08:04:19 +00:00
transform: translateY($space-small);
opacity: 0;
}
.toast-fade-enter-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-in-sine;
}
2019-10-27 13:58:02 +00:00
.toast-fade-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .1s $ease-out-sine;
}
2019-10-27 13:58:02 +00:00
.toast-fade-enter, .toast-fade-leave-to
/* .toast-fade-leave-active for <2.1.8 */ {
2019-10-20 08:04:19 +00:00
transform: translateY(-$space-small);
opacity: 0;
}
.modal-fade-enter-active {
2019-10-20 08:04:19 +00:00
transition: all .3s $ease-in-sine;
}
.modal-fade-leave-active {
2019-10-20 08:04:19 +00:00
transition: all .1s $ease-out-sine;
}
.modal-fade-enter, .modal-fade-leave-to
/* .slide-fade-leave-active for <2.1.8 */ {
opacity: 0;
}
.network-notification-fade-enter-active {
transition: all .1s $ease-in-sine;
}
.network-notification-fade-leave-active {
transition: all .1s $ease-out-sine;
}
.network-notification-fade-enter,
.network-notification-fade-leave-to {
transform: translateY(-$space-small);
opacity: 0;
}