pianello-api/resources/css/components/_intro.css
Ale Gallo 74c4b1d3f4 Committing laraver (part 2)
committing part of the laravel system with templating files and components
2023-11-10 15:58:25 +01:00

53 lines
1.3 KiB
CSS

* {
@for $i from 1 to 50 {
> .intro-x:nth-child($i) {
z-index: calc(50 - $i);
opacity: 0;
position: relative;
transform: translateX(50px);
animation: 0.4s intro-x-animation ease-in-out 0.33333s;
animation-fill-mode: forwards;
animation-delay: calc($i * 0.1s);
}
> .-intro-x:nth-child($i) {
z-index: calc(50 - $i);
opacity: 0;
position: relative;
transform: translateX(-50px);
animation: 0.4s intro-x-animation ease-in-out 0.33333s;
animation-fill-mode: forwards;
animation-delay: calc($i * 0.1s);
}
> .intro-y:nth-child($i) {
z-index: calc(50 - $i);
opacity: 0;
position: relative;
transform: translateY(50px);
animation: 0.4s intro-y-animation ease-in-out 0.33333s;
animation-fill-mode: forwards;
animation-delay: calc($i * 0.1s);
}
> .-intro-y:nth-child($i) {
z-index: calc(50 - $i);
opacity: 0;
position: relative;
transform: translateY(-50px);
animation: 0.4s intro-y-animation ease-in-out 0.33333s;
animation-fill-mode: forwards;
animation-delay: calc($i * 0.1s);
}
}
}
@keyframes intro-x-animation {
100% {
opacity: 1;
transform: translateX(0px);
}
}
@keyframes intro-y-animation {
100% {
opacity: 1;
transform: translateY(0px);
}
}