Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.68 KB | None | 0 0
  1. *{
  2.     margin: 0;
  3.     padding: 0;
  4.     box-sizing: border-box;
  5. }
  6. body, html{
  7.     font-size: 10px;
  8. }
  9. header{
  10.     height: 100vh;
  11.     width: 100%;
  12.     background-color: #AEE0D7;
  13.     position: fixed;
  14.     top: 0;
  15.     left: 0;
  16.     overflow-x: hidden;
  17.     font-family: 'Oswald', sans-serif;
  18.     z-index: 1;
  19. }
  20. main{
  21.     background-color: grey;
  22.     height: 100vh;
  23.     margin-top: 100vh;
  24.     z-index: 2;
  25.     position: relative;
  26. }
  27. header img{
  28.     position: absolute;
  29.     bottom: 0;
  30.     right: -45%;
  31.     height: 80%;
  32. }
  33. nav{
  34.     position: absolute;
  35.     right: 9%;
  36.     top: 4%;
  37.     font-size: 4rem;
  38.     z-index: 100;
  39. }
  40. hgroup{
  41.     position: absolute;
  42.     top: 15%;
  43.     left: 10%;
  44.     z-index: 100;
  45.     text-transform: uppercase;
  46. }
  47. header h1{
  48.     font-size: 4.5rem;
  49. }
  50. header h3{
  51.     font-size: 1.4rem;
  52.     font-weight: 700;
  53. }
  54. #arrow{
  55.     width: 60px;
  56.     height: 60px;
  57.     border: 5px solid black;
  58.     position: absolute;
  59.     bottom: 10%;
  60.     left: 50%;
  61.     transform: translateX(-50%);
  62.     border-radius: 50%;
  63.     font-size: 4rem;
  64.     text-align: center;
  65.     text-shadow: 0 -10px 0 black, 0 -20px 0 black;
  66. }
  67. #arrow:hover{
  68.     box-shadow: 0 0 5px 5px black;
  69.     color: white;
  70.     background-color: black;
  71.     border-color: white;
  72.     text-shadow: 0 -10px 0 white, 0 -20px 0 white;
  73. }
  74. @media (orientation: portrait){
  75.     h3 span::after {
  76.     content: '\A';
  77.         white-space: pre;
  78.     }
  79. }
  80. @media (orientation: landscape){
  81.     header img{
  82.     position: absolute;
  83.     bottom: 0;
  84.     right: -0%;
  85.     height: 80%;
  86.     }
  87. }
  88. @media (max-width: 320px) {
  89.     header h1{
  90.         font-size: 3.8rem;
  91.     }
  92.     hgroup {
  93.         transform: rotate(-15deg);
  94.     }
  95. }
  96.  
  97.  
  98. @keyframes arrow {
  99.     0% {transform: translateY(-80px)}
  100.     50% {transform: translateY(0px)}
  101.     100% {transform: translateY(80px)}
  102. }
  103.  
  104. .fas fa-angle-down {
  105.     animation: arrow 1.6s infinite linear;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement