Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须为我的动画功能添加easein 效果。在我的代码下面
$('.img_left').animate({ 'margin-left' : '180px', 'opacity' : '1'}, 3000);
请帮助我
Vanilla jQuery 仅支持linear和缓swing动选项。更多选项可在 jQuery UI 套件中找到。
linear
swing
要使用它们,您可以:
$('.img_left').animate({ 'margin-left' : '180px', 'opacity' : '1'}, 3000, 'linear');