【问题标题】:Animate (easeOutCirc) a DOM Element using AngularJS使用 AngularJS 为 DOM 元素设置动画(easeOutCirc)
【发布时间】:2014-11-28 23:38:50
【问题描述】:

如何在 AnguarJs 中编写这段代码?

尤其是本例中使用的动画部分(easeOutCirc):

$(document).ready(function () { function addCircle() { var $circle = $('<div class="circle"></div>'); $circle.animate({ 'width': '300px', 'height': '300px', 'margin-top': '-150px', 'margin-left': '-150px', 'opacity': '0' }, 4000, 'easeOutCirc'); $('body').append($circle); setTimeout(function __remove() { $circle.remove(); }, 4000); } addCircle(); setInterval(addCircle, 1200); });

http://jsfiddle.net/Y3r36/311/

【问题讨论】:

标签: angularjs jquery-animate angularjs-animation


【解决方案1】:

我想你可以使用这样的东西吗? https://docs.angularjs.org/api/ngAnimate

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-18
    • 1970-01-01
    相关资源
    最近更新 更多