Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. /*
  2. COLORS:
  3.  
  4. Light green: #7ed56f
  5. Medium green: #55c57a
  6. Dark green: #28b485
  7.  
  8. */
  9.  
  10. *{
  11. margin:0;
  12. padding:0;
  13. box-sizing:border-box;
  14. }
  15.  
  16. body{
  17. font-family: "Lato", sans-serif;
  18. font-weight:400;
  19. font-size:16px;
  20. line-height:1.7;
  21. color:#777;
  22. padding:30px;
  23. }
  24.  
  25. .header {
  26. height: 95vh;
  27. background-image: linear-gradient(
  28. to right bottom,rgba(126, 213, 111, 0.80),
  29. rgba(40, 180, 133, 0.80)),
  30. url(../img/hero.jpg);
  31. background-size: cover;
  32. background-position: top;
  33. clip-path:polygon(0 0, 100% 0, 100% 75vh, 0 100%);
  34. position:relative;
  35. }
  36.  
  37. .logo-box{
  38. position:absolute;
  39. top:40px;
  40. left:40px;
  41. }
  42.  
  43. .logo{
  44. height:35px;
  45.  
  46. }
  47.  
  48. .text-box{
  49. position:absolute;
  50. top:40%;
  51. left:50%;
  52. transform:translate(-50%,-50%);
  53. }
  54.  
  55. .heading-primary{
  56. color:#fff;
  57. text-transform:uppercase;
  58. backface-visibility:hidden; /*remove shakiness in animation*/
  59. }
  60.  
  61. .heading-primary-main {
  62. display: block;
  63. font-size: 60px;
  64. font-weight: 400;
  65. letter-spacing: 35px;
  66. animation-name: moveInLeft;
  67. animation-duration: 1s;
  68. animation-timing-function:ease-out;
  69. /*animation-delay:3s;
  70. animation-iteration-count:3;
  71. */
  72. }
  73.  
  74. .heading-primary-sub {
  75. display: block;
  76. font-size: 20px;
  77. font-weight: 400;
  78. letter-spacing: 17.4px;
  79. animation: moveInRight 1s ease-out;
  80. }
  81.  
  82. @keyframes moveInLeft{
  83. 0%{
  84. opacity:0;
  85. transform:translateX(-100px);
  86. }
  87.  
  88. 80% {
  89. transform: translateX(10px);
  90. }
  91. 100%{
  92. opacity:1;
  93. transform:translate(0);
  94. }
  95. }
  96.  
  97. @keyframes moveInRight {
  98. 0% {
  99. opacity: 0;
  100. transform: translateX(100px);
  101. }
  102.  
  103. 80% {
  104. transform: translateX(-10px);
  105. }
  106.  
  107. 100% {
  108. opacity: 1;
  109. transform: translate(0);
  110. }
  111.  
  112.  
  113. }
  114.  
  115. .btn:link,
  116. .btn:visited{
  117. text-transform:uppercase;
  118. text-decoration:none;
  119. padding:15px 40px;
  120.  
  121.  
  122. }
  123.  
  124. .btn-white{
  125. background-color:#fff;
  126. color:#777;
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement