javascript - Animate DOM properties (scrollTop) using Web Animations -


, to be clear just about what we are talking about in any way, I can easily Wanted to scroll through. Using the jQuery Animate function it was always a non-brenner, but it seems that the web is not as easy as animation. Is there any way to use the Web Animation Timing function and apply them to a DOM property ( scrollTop ). The reason I am asking for is that I do not want to load the entire library in my entire application using a different technology / library to use my interpolation function.

You can use to animate scrollTop , e.g.

  var a = new animation (L, function (time) {el.scrollTop = el.scrollTop + time * 500;}, 1000);    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -