web-animations-js

JavaScript implementation of the Web Animations API

  • 所有者: web-animations/web-animations-js
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

What is Web Animations?

A new JavaScript API for driving animated content on the web. By unifying
the animation features of SVG and CSS, Web Animations unlocks features
previously only usable declaratively, and exposes powerful, high-performance
animation capabilities to developers.

What is in this repository?

A JavaScript implementation of the Web Animations API that provides Web
Animation features in browsers that do not support it natively. The polyfill
falls back to the native implementation when one is available.

Quick start

Here's a simple example of an animation that fades and scales a <div>.
Try it as a live demo.

<!-- Include the polyfill -->
<script src="web-animations.min.js"></script>

<!-- Set up a target to animate -->
<div class="pulse" style="width: 150px;">Hello world!</div>

<!-- Animate! -->
<script>
    var elem = document.querySelector('.pulse');
    var animation = elem.animate({
        opacity: [0.5, 1],
        transform: ['scale(0.5)', 'scale(1)'],
    }, {
        direction: 'alternate',
        duration: 500,
        iterations: Infinity,
    });
</script>

Documentation

We love feedback!

Keep up-to-date

Breaking polyfill changes will be announced on this low-volume mailing list:
web-animations-changes@googlegroups.com.

More info

主要指标

概览
名称与所有者web-animations/web-animations-js
主编程语言JavaScript
编程语言Shell (语言数: 3)
平台
许可证Apache License 2.0
所有者活动
创建于2014-11-13 03:26:15
推送于2021-06-20 11:58:39
最后一次提交2019-06-25 18:36:05
发布数25
最新版本名称2.3.2 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数3.8k
关注者数153
派生数409
提交数1.5k
已启用问题?
问题数175
打开的问题数82
拉请求数34
打开的拉请求数9
关闭的拉请求数19
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?