main-Animation.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @import url('https://fonts.googleapis.com/css?family=Hammersmith+One|Playfair+Display:900|Roboto:100,300,400,900');
  2. html{
  3. font-size: 10px;
  4. }
  5. .clearfix::after {
  6. content:"";
  7. display: block;
  8. clear: both;
  9. }
  10. body * {
  11. box-sizing: border-box;
  12. }
  13. body {
  14. margin: 0;
  15. padding: 0;
  16. font-family: "roboto", sans-serif;
  17. font-size: 1.4rem;
  18. overflow: hidden;
  19. }
  20. h1,h2,h3,h4 {
  21. margin: 0;
  22. padding: 0;
  23. }
  24. p {
  25. font-weight: 100;
  26. letter-spacing: 0.05em;
  27. }
  28. header {
  29. background: url("../img/header-background.png") center top / cover;
  30. height: 670px;
  31. }
  32. header .container {
  33. width: 940px;
  34. margin: 0 auto;
  35. }
  36. header .top-line .logo {
  37. font-size: 3rem;
  38. color: #42a0c4;
  39. font-weight: 100;
  40. float: left;
  41. }
  42. header .top-line .logo img {
  43. position: relative;
  44. top: 15px;
  45. }
  46. header .top-line .nav {
  47. float: right;
  48. margin-top: 35px;
  49. }
  50. header .top-line .nav ul {
  51. margin: 0;
  52. padding: 0;
  53. list-style: none;
  54. }
  55. header .top-line .nav li {
  56. padding: 0;
  57. display: inline-block;
  58. margin-left: 25px;
  59. }
  60. header .top-line .nav a{
  61. font-size: 1.3rem;
  62. font-weight: 900;
  63. color: #fff;
  64. text-decoration: none;
  65. transition: color 0.5s ease;
  66. }
  67. header .top-line .nav a:hover {
  68. color: #00e0d0;
  69. }
  70. header .slider {
  71. position: relative;
  72. width: 100%;
  73. height: 500px;
  74. overflow: hidden;
  75. }
  76. header .slides {
  77. display: flex;
  78. flex-direction: row;
  79. width: 100%;
  80. }
  81. header .slider .slide {
  82. text-align: center;
  83. display: inline-block;
  84. width: 80%;
  85. position: absolute;
  86. left: 100px;
  87. }
  88. header .slider .slide h1 {
  89. color: #fff;
  90. font-weight: 900;
  91. font-size: 3.2rem;
  92. margin-top: 160px;
  93. margin-bottom: 45px;
  94. font-family: 'Playfair Display', sans-serif;
  95. }
  96. header .slider .slide h1::after {
  97. content: "";
  98. height: 1px;
  99. width: 50px;
  100. background-color: #00e0d0;
  101. display: block;
  102. position: relative;
  103. left: 350px;
  104. top: 20px;
  105. }
  106. header .slider .slide p {
  107. color: #fff;
  108. line-height: 24px;
  109. }
  110. header .slider .slide input[type="button"] {
  111. background: none;
  112. border: 1px solid #00e0d0;
  113. padding: 10px 15px;
  114. color: #00e0d0;
  115. font-family: 'Hammersmith One', sans-serif;
  116. font-size: 1.6rem;
  117. margin-top: 40px;
  118. }
  119. header .slider .arrows img{
  120. position: absolute;
  121. z-index: 1;
  122. }
  123. header .slider .arrows img:first-child {
  124. top: 50%;
  125. }
  126. header .slider .arrows img:last-child {
  127. top: 50%;
  128. right: 0;
  129. }
  130. /*header .slider .slide:nth-child(1){
  131. }
  132. header .slider .slide:nth-child(2){
  133. }
  134. header .slider .slide:nth-child(3){
  135. }
  136. header .slider .slide:nth-child(4){
  137. }
  138. */