Possible Duplicate:
Correct way to animate box-shadow with jQuery
How to use the animate() function?
I tried this solution: Correct way to animate box-shadow with jQuery
like
...
.animate({
marginTop: '-20px',
marginLeft: '-20px',
width: '200px',
height: '200px',
'boxShadowX': '10px',
开发者_JS百科'boxShadowY':'10px',
'boxShadowBlur': '20px'
}, 200);
...
but it doesn't work...
The link you provided is using https://github.com/brandonaaron/jquery-cssHooks/raw/master/boxshadow.js, make sure you are calling the script.
You can also checkout the excellent jQuery Shadow animation plugin http://www.bitstorm.org/jquery/shadow-animation/
精彩评论