_header.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. header{
  2. position: relative;
  3. margin-right: 10px;
  4. height: 100vh;
  5. &:after{
  6. position: absolute;
  7. width: 0%;
  8. bottom: 0;
  9. content: "";
  10. }
  11. .head{
  12. width:100%;
  13. padding-top: 22px;
  14. nav{
  15. width: calc((100% / 3) * 2);
  16. position: relative;
  17. h2{
  18. position: absolute;
  19. }
  20. }
  21. }
  22. .works-mea{
  23. position: absolute;
  24. bottom: 20px;
  25. width: calc((100%) + (10px) );
  26. display: -webkit-inline-box;
  27. display: -ms-inline-flexbox;
  28. display: inline-flex;
  29. height: 50%;
  30. .card{
  31. height: calc(100% - 30px);
  32. .card-image{
  33. overflow: hidden;
  34. height: 100%;
  35. width: 100%;
  36. a{
  37. display: block;
  38. height: 100%;
  39. img{
  40. object-fit: cover;
  41. width: 100%;
  42. }
  43. }
  44. }
  45. &:first-child{
  46. margin-right: 10px;
  47. }
  48. &:last-child{
  49. margin-left: 10px;
  50. }
  51. }
  52. }
  53. .scroll{
  54. position: absolute;
  55. width: 100%;
  56. bottom: 0;
  57. height: 20px;
  58. p{
  59. svg{
  60. display: block;
  61. margin: auto;
  62. }
  63. }
  64. }
  65. }
  66. .item{
  67. #start{
  68. margin-top: 115px;
  69. .cat-list{
  70. display: none;
  71. }
  72. }
  73. }
  74. .down, .item{
  75. header{
  76. background: white;
  77. z-index: 999;
  78. width: calc(100% - 20px);
  79. height: 90px;
  80. position: fixed;
  81. top: 0;
  82. &:after{
  83. width: 100%;
  84. height: 1px;
  85. background: black;
  86. }
  87. .head{
  88. nav{
  89. width: calc((100% / 6));
  90. min-width: 300px;
  91. path{
  92. fill:black!important;
  93. }
  94. h2{
  95. -webkit-transform: translateX(-150%);
  96. transform: translateX(-150%);
  97. -webkit-transition: 2s -webkit-transform ease;
  98. transition: 2s -webkit-transform ease;
  99. transition: 2s transform ease;
  100. transition: 2s transform ease, 2s -webkit-transform ease;
  101. }
  102. }
  103. }
  104. .works-mea{
  105. bottom: 65px;
  106. -webkit-transition: 0s 1s bottom;
  107. transition: 0s 1s bottom;
  108. .card{
  109. opacity: 0;
  110. margin-top: -20px;
  111. }
  112. }
  113. }
  114. .scroll{
  115. opacity: 0;
  116. margin-bottom: -20px;
  117. -webkit-transition: 1s all ease;
  118. transition: 1s all ease;
  119. }
  120. }
  121. .down{
  122. header{
  123. -webkit-transition: 1s 1s height ease;
  124. transition: 1s 1s height ease;
  125. &:after{
  126. -webkit-transition: 1.5s 2s width ease;
  127. transition: 1.5s 2s width ease;
  128. }
  129. .head{
  130. nav{
  131. -webkit-transition:1s 1s width ease;
  132. transition:1s 1s width ease;
  133. path{
  134. -webkit-transition:1s 1s fill ease;
  135. transition:1s 1s fill ease;
  136. }
  137. }
  138. }
  139. .works-mea{
  140. bottom: 65px;
  141. -webkit-transition: 0s 1s bottom;
  142. transition: 0s 1s bottom;
  143. .card{
  144. opacity: 0;
  145. margin-top: -20px;
  146. &:nth-child(1){
  147. -webkit-transition: 0.5s 0.3s all ease;
  148. transition: 0.5s 0.3s all ease;
  149. }
  150. &:nth-child(2){
  151. -webkit-transition: 0.5s 0.5s all ease;
  152. transition: 0.5s 0.5s all ease;
  153. }
  154. &:nth-child(3){
  155. -webkit-transition: 0.5s 0.7s all ease;
  156. transition: 0.5s 0.7s all ease;
  157. }
  158. }
  159. }
  160. }
  161. }