开发者

jQuery box shadow animation - is it possible? [duplicate]

This question already has answers here: Closed 10 years ago.

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜