I´m using CSS3 animation to turn one bootstrap accordion from one color no other, but the problem is that I see that is not possible with animation to do that transition with gradient, and the accordion seems too much 2D too me. I read that people do some tricks like putting one element one over the other and using the opacity, but in may case is not so easy set another element in the same position since is create dynamically.
Can you give me any suggestion tip please?
Here is what I try to do without success so far:
.panel-warning > .panel-heading {
background: linear-gradient(to bottom, #FCFCFC 0%, #FFF4C4 30%) repeat scroll 0 0 rgba(0, 0, 0, 0);
opacity: 0;
}
.panel-warning > .panel-heading {
-webkit-animation-direction: alternate;
-webkit-animation-duration: 5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: alert-warning;
-webkit-animation-timing-function: ease;
-moz-animation-direction: alternate;
-moz-animation-duration: 5s;
-moz-animation-iteration-count: infinite;
-moz-animation-name: alert-warning;
-moz-animation-timing-function: ease;
opacity: 0.5;
}