var css = {};
if (animation.borderradius) {
- css.borderRadius = animation.borderradius+"px";
+ css.borderRadius = animation.borderradius + "px";
}
if (animation.filter) {
css.filter = animation.filter;
to.visibility = 'visible';
if (css.opacity !== undefined) {
from.opacity = css.opacity;
+ } else {
+ from.opacity = 0;
}
to.opacity = 1;
} else if (animation.type === 'fadeout') {
return ease;
},
- finishAnimations:function(e){
+ finishAnimations: function (e) {
if ($(e).data('gsap') == undefined) {
return;
}
- $.each($(e).data('gsap'),function(k,a){
+ $.each($(e).data('gsap'), function (k, a) {
a.totalProgress(1);
});
}