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_negative_animation.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_negative_animation.html')
-rw-r--r-- | devtools/client/animationinspector/test/doc_negative_animation.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/devtools/client/animationinspector/test/doc_negative_animation.html b/devtools/client/animationinspector/test/doc_negative_animation.html new file mode 100644 index 000000000..ea412025b --- /dev/null +++ b/devtools/client/animationinspector/test/doc_negative_animation.html @@ -0,0 +1,66 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <style> + html, body { + margin: 0; + height: 100%; + overflow: hidden; + } + + div { + position: absolute; + top: 0; + left: -500px; + height: 20px; + width: 500px; + color: red; + background: linear-gradient(to left, currentColor, currentColor 2px, transparent); + } + + .zero { + color: blue; + top: 20px; + } + + .positive { + color: green; + top: 40px; + } + + .negative.move { animation: 5s -1s move linear forwards; } + .zero.move { animation: 5s 0s move linear forwards; } + .positive.move { animation: 5s 1s move linear forwards; } + + @keyframes move { + to { + transform: translateX(500px); + } + } + </style> +</head> +<body> + <div class="negative"></div> + <div class="zero"></div> + <div class="positive"></div> + <script> + "use strict"; + + var negative = document.querySelector(".negative"); + var zero = document.querySelector(".zero"); + var positive = document.querySelector(".positive"); + + // The non-delayed animation starts now. + zero.classList.add("move"); + // The negative-delayed animation starts in 1 second. + setTimeout(function () { + negative.classList.add("move"); + }, 1000); + // The positive-delayed animation starts in 200 ms. + setTimeout(function () { + positive.classList.add("move"); + }, 200); + </script> +</body> +</html> |