0

How can I write this piece of the code in AnguarJs ?

Particularly the animation part (easeOutCirc) used in this example:

$(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/

3
  • angualr ships with jqlite...docs.angularjs.org/api/ng/function/angular.element Commented Nov 28, 2014 at 23:41
  • Use jsfiddle or jsbin what is working!!! Commented Nov 28, 2014 at 23:44
  • I added a jsFiddle link :) Commented Nov 29, 2014 at 19:00

1 Answer 1

0

I think you could use something like this? https://docs.angularjs.org/api/ngAnimate

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.