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">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="css/style.css">
- <title>BOOM Design</title>
- </head>
- <body>
- <div class="container">
- <figure class="bottom-triangle">
- <img src="img/triangle1.svg" alt="">
- </figure>
- <figure class="top-triangle">
- <img src="img/triangle2.svg" alt="">
- </figure>
- <figure class="boomlogo">
- <img src="img/logo.svg" alt="">
- </figure>
- </div>
- </body>
- </html>
- html, body{
- padding: 0;
- margin: 0;
- overflow: hidden;
- }
- .container{
- background-image: url(../img/background1.jpg);
- background-repeat: no-repeat;
- background-size: cover;
- opacity: 1;
- width: 100vw;
- height: 100vh;
- position: relative;
- -webkit-animation-name: opening;
- -webkit-animation-duration: 1s; /* Safari 4.0 - 8.0 */
- animation-name: opening;
- animation-duration: 1s;
- z-index: 0;
- }
- /* Safari 4.0 - 8.0 */
- @-webkit-keyframes opening {
- from {opacity: 0;}
- to {opacity: 1;}
- }
- /* Standard syntax */
- @keyframes opening {
- from {opacity: 0;}
- to {opacity: 1;}
- }
- .bottom-triangle {
- margin: 0;
- padding: 0;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- -webkit-animation-name: entering; /* Safari 4.0 - 8.0 */
- -webkit-animation-duration: 1s; /* Safari 4.0 - 8.0 */
- animation-name: entering;
- animation-duration: 1s;
- z-index: 2;
- }
- .top-triangle {
- margin: 0;
- padding: 0;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- -webkit-animation-name: entering2; /* Safari 4.0 - 8.0 */
- -webkit-animation-duration: 1.5s; /* Safari 4.0 - 8.0 */
- animation-name: entering2;
- animation-duration: 1.5s;
- z-index: 3;
- }
- .boomlogo {
- margin: 0;
- padding: 0;
- position: absolute;
- opacity: 1;
- top: 0;
- bottom: 0;
- left: 0;
- -webkit-animation-name: entering3; /* Safari 4.0 - 8.0 */
- -webkit-animation-duration: 2s; /* Safari 4.0 - 8.0 */
- animation-name: entering3;
- animation-duration: 2s;
- z-index: 4;
- }
- /* Safari 4.0 - 8.0 */
- @-webkit-keyframes entering {
- from {left: -445px;}
- to {left: 0;}
- }
- /* Standard syntax */
- @keyframes entering {
- from {left: -445px;}
- to {left: 0;}
- }
- /* Safari 4.0 - 8.0 */
- @-webkit-keyframes entering2 {
- from {left: -900px;}
- to {left: 0;}
- }
- /* Standard syntax */
- @keyframes entering2 {
- from {left: -900px;}
- to {left: 0;}
- }
- /* Safari 4.0 - 8.0 */
- @-webkit-keyframes entering3 {
- from {opacity: 0;}
- to {opacity: 1;}
- }
- /* Standard syntax */
- @keyframes entering3 {
- from {opacity: 0;}
- to {opacity: 1;}
- }
- .container figure img {
- height: 100vh;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement