diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /devtools/client/animationinspector/test/doc_multiple_animation_types.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'devtools/client/animationinspector/test/doc_multiple_animation_types.html')
-rw-r--r-- | devtools/client/animationinspector/test/doc_multiple_animation_types.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/devtools/client/animationinspector/test/doc_multiple_animation_types.html b/devtools/client/animationinspector/test/doc_multiple_animation_types.html new file mode 100644 index 000000000..318f14d0a --- /dev/null +++ b/devtools/client/animationinspector/test/doc_multiple_animation_types.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <style> + .ball { + width: 80px; + height: 80px; + border-radius: 50%; + } + + .script-animation { + background: #f06; + } + + .css-transition { + background: #006; + transition: background-color 20s; + } + + .css-animation { + background: #a06; + animation: flash 10s forwards; + } + + @keyframes flash { + 0% { + opacity: 1; + } + 50% { + opacity: 0; + } + 100% { + opacity: 1; + } + } + </style> +</head> +<body> + <div class="ball script-animation"></div> + <div class="ball css-animation"></div> + <div class="ball css-transition"></div> + + <script> + /* globals KeyframeEffect, Animation */ + "use strict"; + + setTimeout(function () { + document.querySelector(".css-transition").style.backgroundColor = "yellow"; + }, 0); + + let effect = new KeyframeEffect( + document.querySelector(".script-animation"), [ + {opacity: 1, offset: 0}, + {opacity: .1, offset: 1} + ], { duration: 10000, fill: "forwards" }); + let animation = new Animation(effect, document.timeline); + animation.play(); + </script> +</body> +</html> |