I'd like to to create a div and then animate it to 100% width and height. The problem is that newly created div becomes bigger in one direction. Is it possible to make div bigger in all 4 directions?
$('<div/>', {
'id': 'fullinfo',
'style': ' width: 80%;height: 100px;background:black;border: none;position:absolute;left:10%;top:30%;z-index:0;'
}).appendTo('body');
$('#fullinfo').animate({
width: "100%",
height: "100%",
}, 800);