mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
24 lines
380 B
HTML
24 lines
380 B
HTML
|
<!DOCTYPE HTML>
|
||
|
<style>
|
||
|
div {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 200px;
|
||
|
height: 100px;
|
||
|
background-color: red;
|
||
|
}
|
||
|
</style>
|
||
|
<div></div>
|
||
|
<script>
|
||
|
document.querySelector('div').animate(
|
||
|
[
|
||
|
{ transform: 'rotate(0deg)' },
|
||
|
{ transform: 'rotate(360deg)' }
|
||
|
], {
|
||
|
duration: 3000,
|
||
|
iterations: Infinity
|
||
|
}
|
||
|
);
|
||
|
</script>
|