line rotate bug fix

This commit is contained in:
Bachir Soussi Chiadmi
2015-03-31 17:45:16 +02:00
parent 4707c2f6ca
commit ef24bdac6c
3 changed files with 20 additions and 9 deletions
+14 -3
View File
@@ -711,9 +711,8 @@ jQuery(document).ready(function($) {
// console.log("a = "+a);
this.lines[i].$line.css({
'height':l,
transform:"rotate3d(0,0,1,"+a+"deg)"
});
'height':l
}).rotate3d({z:1,a:a});
};
}
};
@@ -1018,5 +1017,17 @@ jQuery(document).ready(function($) {
"transform": t
});
};
$.fn.rotate3d = function(opt) {
opt = $.extend({x:0,y:0,z:0,a:0}, opt);
// transform:"rotate3d(0,0,1,"+a+"deg)"
var t = "rotate3d("+opt.x+", "+opt.y+","+opt.z+","+opt.a+"deg)";
this.css({
"-webkit-transform": t,
"-moz-transform": t,
"-ms-transform": t,
"-o-transform": t,
"transform": t
});
};
})(jQuery);