开发者

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

开发者 https://www.devze.com 2023-02-21 21:35 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Correct way to animate box-shadow with jQuery
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

精彩评论

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