Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JavaScript implementation of the Web Animations API

License

NotificationsYou must be signed in to change notification settings

web-animations/web-animations-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

What is in this repository?

A JavaScript implementation of the Web Animations API that provides WebAnimation features in browsers that do not support it natively. The polyfillfalls 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 --><scriptsrc="web-animations.min.js"></script><!-- Set up a target to animate --><divclass="pulse"style="width: 150px;">Hello world!</div><!-- Animate! --><script>varelem=document.querySelector('.pulse');varanimation=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

About

JavaScript implementation of the Web Animations API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors29


[8]ページ先頭

©2009-2025 Movatter.jp