jquery - css/jquery 放大动画

标签 jquery jquery-ui css jquery-plugins css-transitions

我希望在单击时放大 div。我试图用流畅的动画进行放大。这是我的代码。有不对的地方请指正!

$(".contentBox img").click(function(){
    $("#mixedContent").animate({zoom: '150%'}, slow);
});

谢谢-

最佳答案

在引号之间加上slow:

$(".contentBox img").click(function(){
    $("#mixedContent").animate({zoom: '150%'}, "slow");
});

关于jquery - css/jquery 放大动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20233844/

相关文章:

javascript - Web 表单中的 Jquery 对话框

html - Webkit,Css Clip 强制滚动条

jquery - 触发 .on() 创建的事件

javascript - 将鼠标悬停在 div 1 下的 div 2 上时更改 div 1

javascript - jQuery UI slider : multiple sliders with default values

css - 为什么我的 jQuery 主题会使 IE 中的日历小部件困惑?

css - 饼图CSS不适用于 anchor 标签

CSS header 未对齐。尝试使用 top -20px 菜单的其余部分不对齐来显示 Logo

javascript - 限制数量的脚本。文本框中的字符不起作用。有任何想法吗?

javascript - 如果在 jQuery 中选择了选项,则显示 div