javascript - jQuery 盒子阴影动画 - 这可能吗?

标签 javascript jquery css animation jquery-animate

Possible Duplicate:
Correct way to animate box-shadow with jQuery

如何使用 animate() 函数?

我尝试了这个解决方案: Correct way to animate box-shadow with jQuery

喜欢

...
  .animate({
    marginTop: '-20px',
    marginLeft: '-20px',
    width: '200px',
    height: '200px',
   'boxShadowX': '10px',
   'boxShadowY':'10px',
   'boxShadowBlur': '20px'
  }, 200);
...

但它不起作用...

最佳答案

您提供的链接正在使用 https://github.com/brandonaaron/jquery-cssHooks/raw/master/boxshadow.js ,确保您正在调用该脚本。

您还可以查看优秀的 jQuery Shadow 动画插件 http://www.bitstorm.org/jquery/shadow-animation/

关于javascript - jQuery 盒子阴影动画 - 这可能吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5547012/

相关文章:

javascript - token "in"存在语法错误,需要标识符

css - CSS :last-of-type selector? 的反面是什么

javascript - jQuery $.ajax() 执行了两次?

IOS Safari 中的 Javascript 后台进程

javascript - 查找不包含在另一个元素中的元素的有效方法

javascript - Jquery click 事件重复自身......有时

html - 响应式网页设计/媒体查询

javascript - 更改多个 CSS 属性

javascript - 更改 HTML 复选框选中属性

javascript - 如何在 Express 中向 req.url 添加查询字符串?