Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
- <style>
- * {
- box-sizing: border-box;
- }
- html, body {
- align-items: center;
- background: gold;
- display: flex;
- justify-content: center;
- margin: 0;
- min-height: 100%;
- padding: 0;
- width: 100%;
- }
- .box {
- background-color: firebrick;
- height: 100px;
- width: 100px;
- animation: myAnimation1 3s 5;
- }
- /*@keyframes myAnimation1{
- 0% { transform: scale(0.1); opacity: 0; }
- 60% { transform: scale(1.2); opacity: 1; }
- 100% { transform: scale(1); }
- }*/
- /*@keyframes myAnimation2{
- 0% { transform: rotate(0deg); }
- 50% { transform: rotate(90deg); }
- 100% { transform: rotate(180deg);}
- }*/
- /*@keyframes myAnimation3{
- 20%, 40% {transform: translate(15px, 15px); background:coral; }
- 60%, 80% {transform: translate(-15px, -15px); background:orchid;}
- }*/
- </style>
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="box">
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement