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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?