There are multiple elements on the webpage with background transitions that change from one color to another:
@-moz-keyframes backgroundTransition /* Firefox */ {
0% {background-color:#ff7b7b;}
33% {background-color:#7fceff;}
66% {background-color:#80e880;}
100% {background-color:#ff7b7b;}
}
@-webkit-keyframes backgroundTransition /* Safari and Chrome */{
0% {background-color:#ff7b7b;}
33% {background-color:#7fceff;}
66% {background-color:#80e880;}
100% {background-color:#ff7b7b;}
}
However, if an element is hidden using display: none
and later revealed via JavaScript, its transition color does not match the other elements and begins the loop from the initial color.
Is there a way to make the transition consistent for all elements? Your input is appreciated.