line rotate bug fix
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user