* > .enter-x:nth-child(1) { transform: translateX(50px); } * > .-enter-x:nth-child(1) { transform: translateX(-50px); } * > .enter-x:nth-child(1), * > .-enter-x:nth-child(1) { z-index: 9; opacity: 0; animation: enter-x-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.1s; } * > .enter-x:nth-child(2) { transform: translateX(50px); } * > .-enter-x:nth-child(2) { transform: translateX(-50px); } * > .enter-x:nth-child(2), * > .-enter-x:nth-child(2) { z-index: 8; opacity: 0; animation: enter-x-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.2s; } * > .enter-x:nth-child(3) { transform: translateX(50px); } * > .-enter-x:nth-child(3) { transform: translateX(-50px); } * > .enter-x:nth-child(3), * > .-enter-x:nth-child(3) { z-index: 7; opacity: 0; animation: enter-x-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.3s; } * > .enter-x:nth-child(4) { transform: translateX(50px); } * > .-enter-x:nth-child(4) { transform: translateX(-50px); } * > .enter-x:nth-child(4), * > .-enter-x:nth-child(4) { z-index: 6; opacity: 0; animation: enter-x-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.4s; } * > .enter-x:nth-child(5) { transform: translateX(50px); } * > .-enter-x:nth-child(5) { transform: translateX(-50px); } * > .enter-x:nth-child(5), * > .-enter-x:nth-child(5) { z-index: 5; opacity: 0; animation: enter-x-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.5s; } * > .enter-y:nth-child(1) { transform: translateX(50px); } * > .-enter-y:nth-child(1) { transform: translateX(-50px); } * > .enter-y:nth-child(1), * > .-enter-y:nth-child(1) { z-index: 9; opacity: 0; animation: enter-y-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.1s; } * > .enter-y:nth-child(2) { transform: translateX(50px); } * > .-enter-y:nth-child(2) { transform: translateX(-50px); } * > .enter-y:nth-child(2), * > .-enter-y:nth-child(2) { z-index: 8; opacity: 0; animation: enter-y-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.2s; } * > .enter-y:nth-child(3) { transform: translateX(50px); } * > .-enter-y:nth-child(3) { transform: translateX(-50px); } * > .enter-y:nth-child(3), * > .-enter-y:nth-child(3) { z-index: 7; opacity: 0; animation: enter-y-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.3s; } * > .enter-y:nth-child(4) { transform: translateX(50px); } * > .-enter-y:nth-child(4) { transform: translateX(-50px); } * > .enter-y:nth-child(4), * > .-enter-y:nth-child(4) { z-index: 6; opacity: 0; animation: enter-y-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.4s; } * > .enter-y:nth-child(5) { transform: translateX(50px); } * > .-enter-y:nth-child(5) { transform: translateX(-50px); } * > .enter-y:nth-child(5), * > .-enter-y:nth-child(5) { z-index: 5; opacity: 0; animation: enter-y-animation 0.4s ease-in-out 0.3s; animation-fill-mode: forwards; animation-delay: 0.5s; } @keyframes enter-x-animation { to { opacity: 1; transform: translateX(0); } } @keyframes enter-y-animation { to { opacity: 1; transform: translateY(0); } }