clip-path-animation-ellipse.html (794B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation"> 4 <link rel="match" href="clip-path-animation-ellipse-ref.html"> 5 <style> 6 .container { 7 width: 100px; 8 height: 100px; 9 background-color: green; 10 animation: clippath 20s steps(2, jump-end) -9.999s; 11 } 12 13 @keyframes clippath { 14 0% { 15 clip-path: ellipse(60% 30% at 40% 80%); 16 } 17 18 100% { 19 clip-path: ellipse(10% 20% at 10% 20%); 20 } 21 } 22 </style> 23 <script src="/common/reftest-wait.js"></script> 24 <script src="../../../../web-animations/resources/timing-utils.js"></script> 25 26 <body> 27 <div class="container"></div> 28 29 <script> 30 waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot); 31 </script> 32 </body> 33 34 </html>