I have some hyperlinks with the CSS color with the property !important
, because I need to change its color by default, which gives them another style sheet that I can not / should modify.
.elementos {
color: #fff !important;
}
And I have an animation with TweenMax that modifies the container of .elementos
. To that animation I need to add a property to change the color of the hyperlinks.
var contenedorAnimacion = tl
.to(cabecera, 1, {backgroundColor: '#fff'})
.to(caja, 1, {height: 0, autoAlpha: 0});
I need to add the color change. I already tried with:
var contenedorAnimacion = tl
.to(cabecera, 1, {backgroundColor: '#fff'})
.to(elementos, 1, {color: '#999'})
.to(caja, 1, {height: 0, autoAlpha: 0});
But this does not work for me. Is there a way to force the change or have the property !important
of CSS ignored?