I'm trying to rotate a object contained inside its parent. When I apply a rotation, the CSS works fine, but jQuery isn't updating, allowing the children to move a bit outside its container.
$(document).ready(function() {
$(".tem_class").draggable({
containment: $(".container_class").parent()
});
jQuery.fn.rotate = function(degrees) {
$(this).css({'transform' : 'rotate('+ degrees +'deg)'});
}
});
Any ideas why jQuery isn't getting the new values and how to correct it?