Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- body {
- margin: 0;
- overflow: hidden;
- background: gold;
- }
- .rectangle {
- width: 25px;
- height: 25px;
- background-color: firebrick;
- position: absolute;
- animation: moveAndRotate 3s linear forwards;
- }
- @keyframes moveAndRotate {
- 0% {
- transform: translateX(0%) rotate(0deg);
- }
- 50% {
- transform: translateX(200%) rotate(180deg);
- }
- 100% {
- transform: translateX(400%) rotate(360deg);
- }
- }
- </style>
- <script>
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement