I have the following code, the circle doesn’t resize:
HTML
<div onMouseOver="mainOver();" onMouseOut="mainOut();" id="c"></div>
JavaScript / jQuery
function mainIn()
{
$('#c').animate({
border-radius: '100',
webkit-border-radius: '100',
moz-border-radius: '100',
width: '200',
height: '200',
margin-left: '-100',
margin-top: '-100'
});
}
function mainOut()
{
$('#c').animate({
border-radius: '50',
webkit-border-radius: '50',
moz-border-radius: '50',
width: '100',
height: '100',
margin-left: '-50',
margin-top: '-50'
});
}
The problem
- The circle does nothing, even when hovered.
border-radius:50%to make a square circle in anysizeLook at fixed code:
http://jsfiddle.net/mohsen/9j795/16/