Hi
Here is the part of my tween that I have problem with :
rule = CSSRulePlugin.getRule("#sctrl table"); //get the rule
if (scId==1) {var color="#2a2a2a"}
else {var color="#f2f2f2"};
if (scId < currentslide) {
TweenMax.to(rule, 1, {cssRule:{borderColor:color},ease:Power2.easeIn});
}
and I have this css code :
#sctrl table {width: 135px;height: 5px}
#sctrl table,tr,td{border:1px solid #f2f2f2;border-collapse:collapse;padding: 0px}
@media screen and (min-width: 1358px){
#sctrl {width: 120px;height: 6px;bottom: 25px}
#sctrl table {width: 120px;height: 5px}
#sctrl td {width: 60px;height: 5px}
#sc {width: 60px;height: 6px}
}
the border color animates fine in chrome but it doesn't work in IE10.
the interesting part is if I remove the mediaqueries in the css it will work in IE too.
I wonder where is the problem ?
the second question is I use multiple tweens at the same time and it's very slow in chrome. I tested in a few computers with chrome and in all of them it was slow. but if I remove this line of animations the speed will be very faster (more than twice):
TweenMax.to(rule, 1, {cssRule:{borderColor:color},ease:Power2.easeIn});
what is your solution ?
http://codepen.io/aminfa/pen/lnkCJ