I have two unique designs that I would like to showcase in a specific order.
1) Begin by fading in design 1
2) Next, fade in design 2
3) After that, fade out design 1
4) Finally, fade out design 2
This sequence should then repeat indefinitely.
While the current code displays the correct order of patterns, it lacks the ability to pause each pattern before the next one fades in.
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes fadeOut {
0% { opacity: 1; }
100% { opacity: 0; }
}
.pattern-one {
animation: fadeIn 2s infinite alternate;
}
.pattern-two {
animation: fadeOut 2s infinite alternate;
}
Is there a way to introduce a pause between each pattern transition?