LeagueStats/client/src/assets/css/transition.css

91 lines
1.4 KiB
CSS
Raw Normal View History

/* Fade transitions */
2023-09-20 20:01:43 +00:00
.fade-enter-active,
.fade-leave-active {
transition: opacity 2s;
}
2023-09-20 20:01:43 +00:00
.fade-fast-enter-active,
.fade-fast-leave-active {
transition: opacity 0.3s;
}
2023-09-20 20:01:43 +00:00
.fade-fast-enter,
.fade-fast-leave-to,
.fade-enter,
.fade-leave-to {
opacity: 0;
}
2020-03-07 12:29:48 +00:00
/* Slide fade transition (match details) */
.slide-fade-enter-active,
.slide-fade-leave-active {
transition: all 0.4s;
}
.slide-fade-enter,
.slide-fade-leave-to {
transform: translateX(400px);
opacity: 0;
}
2020-03-07 12:29:48 +00:00
/* Tab transition */
.tab-enter-active {
@apply transition duration-500 ease-in-out;
}
2023-09-20 20:01:43 +00:00
.tab-enter,
.tab-enter-leave-to {
@apply opacity-0;
}
2023-09-20 20:01:43 +00:00
.tab-enter-to,
.tab-enter-leave {
@apply opacity-100;
}
2020-03-07 12:29:48 +00:00
/* Scale-fade transition */
.scale-fade-enter-active {
@apply transform transition-all duration-75 ease-out;
}
.scale-fade-leave-active {
@apply transform transition-all duration-75 ease-in;
}
.scale-fade-enter,
.scale-fade-leave-to {
@apply scale-90 opacity-0;
}
.scale-fade-enter-to,
.scale-fade-leave {
@apply scale-100 opacity-100;
}
2020-03-07 12:29:48 +00:00
/* Grow transition (ripples) */
.grow-enter-active,
.grow-enter-to-active {
transition: all 1500ms ease-out;
}
.grow-leave-active,
.grow-leave-to-active {
transition: all 700ms ease-out;
}
.grow-enter {
transform: scale(0);
opacity: 1;
}
.grow-enter-to,
2020-03-07 12:29:48 +00:00
.grow-leave {
transform: scale(4);
opacity: 1;
}
.grow-leave-to {
transform: scale(4);
opacity: 0;
}