I
I
itsjustmypage2017-09-15 18:48:47
css
itsjustmypage, 2017-09-15 18:48:47

What tools do you use for animation?

In simple cases, everyone tries to use css animation, but if it just doesn't work, then what do you use besides jQuery and in what cases? For example, to animate values ​​to auto, which cannot be done in css.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2017-09-15
@mrusklon

https://greensock.com/ - best of the best ©

P
Pavel Kornilov, 2017-09-15
@KorniloFF

Javascript:

<div class="result pointer" onclick="jump(this);" style="background:#eee; display: inline-block; padding: 5px;">
  Прыгучий объект
 </div>

 <script type="text/javascript">
 function jump (el) {
  el.style.position='relative';
  var i=0, an= setInterval(function() {
   if (i>=Math.PI) {
    clearInterval(an);
    el.style.top= 0;
   } else el.style.top= -100*Math.sin(i) + 'px';
   i+=.1;
  },25)
 }
 </script>

https://js-master.ru/?Javascripts___Free_hide...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question