_header.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // home
  2. body {
  3. .blog {
  4. margin: 0 10px;
  5. header {
  6. height:100vh;
  7. width: calc(100% - 20px);
  8. display: -webkit-inline-box;
  9. display: -ms-inline-flexbox;
  10. display: inline-flex;
  11. -webkit-box-orient: vertical;
  12. -webkit-box-direction: normal;
  13. -ms-flex-direction: column;
  14. flex-direction: column;
  15. -ms-flex-line-pack: distribute;
  16. align-content: space-around;
  17. & > div{
  18. position: fixed;
  19. width: calc(100% - 20px);
  20. &.head{
  21. z-index: 999;
  22. padding-top: 4vw;
  23. h2 {
  24. margin-left: 8px;
  25. position: absolute;
  26. left: 0;
  27. }
  28. &::after {
  29. display: block;
  30. content: " ";
  31. width: 0%;
  32. height: 1px;
  33. background: black;
  34. }
  35. }
  36. &.works-mea {
  37. display: -webkit-inline-box;
  38. display: -ms-inline-flexbox;
  39. display: inline-flex;
  40. -ms-flex-item-align: end;
  41. align-self: flex-end;
  42. height: calc(100% - 20px);
  43. -webkit-box-align: end;
  44. -ms-flex-align: end;
  45. align-items: flex-end;
  46. .card{
  47. &:nth-child(2){
  48. margin:0 10px;
  49. }
  50. &:not(:nth-child(2)){
  51. margin: 0;
  52. }
  53. }
  54. }
  55. &.scroll{
  56. bottom: 0;
  57. text-align: center;
  58. }
  59. }
  60. }
  61. &.down{
  62. header{
  63. height: 5rem;
  64. .head{
  65. padding:0;
  66. -webkit-transition: all 1s 0.9s ease;
  67. transition: all 1s 0.9s ease;
  68. &::after{
  69. -webkit-animation: showborder 2.5s 1.5s ease forwards;
  70. animation: showborder 2.5s 1.5s ease forwards;
  71. }
  72. h2{
  73. opacity: 0;
  74. left: -40%;
  75. -webkit-transition: left 3s linear, opacity 0.3s 0.1s ease;
  76. transition: left 3s linear, opacity 0.3s 0.1s ease;
  77. }
  78. }
  79. .card{
  80. &:nth-child(1){
  81. -webkit-animation: translateY 1s ease forwards;
  82. animation: translateY 1s ease forwards;
  83. }
  84. &:nth-child(2){
  85. -webkit-animation: translateY 1.3s ease forwards;
  86. animation: translateY 1.3s ease forwards;
  87. }
  88. &:nth-child(3){
  89. -webkit-animation: translateY 1.6s ease forwards;
  90. animation: translateY 1.6s ease forwards;
  91. }
  92. }
  93. .scroll{
  94. opacity: 0;
  95. -webkit-transition: all 1s ease;
  96. transition: all 1s ease;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. .contact{
  103. width: 90px;
  104. height: auto;
  105. z-index: 999;
  106. position: fixed;
  107. top: 0px;
  108. right: 0px;
  109. -webkit-transition: width 0.5s ease;
  110. transition: width 0.5s ease;
  111. cursor: pointer;
  112. &:hover{
  113. width: 80px;
  114. -webkit-transition: width 0.5s ease;
  115. transition: width 0.5s ease;
  116. }
  117. svg{
  118. cursor: pointer;
  119. -webkit-animation: rotation 6s infinite linear;
  120. animation: rotation 6s infinite linear;
  121. }
  122. h3{
  123. color: white;
  124. -webkit-transform: rotate(35deg);
  125. transform: rotate(35deg);
  126. position: absolute;
  127. top: 35px;
  128. left: 19px;
  129. }
  130. .txt{
  131. position: fixed;
  132. right: -200px;
  133. }
  134. &.open{
  135. -webkit-transform: scale(15);
  136. transform: scale(15);
  137. height: auto;
  138. -webkit-transition: -webkit-transform 0.5s ease;
  139. transition: -webkit-transform 0.5s ease;
  140. transition: transform 0.5s ease;
  141. transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  142. h3{
  143. color: transparent;
  144. left: 500px;
  145. -webkit-transition: visibility 0.5 ease left 1s ease;
  146. transition: visibility 0.5 ease left 1s ease;
  147. }
  148. svg{
  149. -webkit-animation: rotation 12s infinite linear;
  150. animation: rotation 12s infinite linear;
  151. }
  152. .txt{
  153. position: fixed;
  154. color: white;
  155. -webkit-transform: scale(0.1);
  156. transform: scale(0.1);
  157. top: -10px;
  158. right: -20px;
  159. text-align: center;
  160. line-height: 1.5rem;
  161. z-index: 9999;
  162. }
  163. }
  164. &.close{
  165. -webkit-transform: scale(1);
  166. transform: scale(1);
  167. -webkit-transition: -webkit-transform 0.5s 0.1s ease;
  168. transition: -webkit-transform 0.5s 0.1s ease;
  169. transition: transform 0.5s 0.1s ease;
  170. transition: transform 0.5s 0.1s ease, -webkit-transform 0.5s 0.1s ease;
  171. & + .txt{
  172. top: 190px;
  173. text-align: center;
  174. line-height: 1.5rem;
  175. z-index: 9999;
  176. -webkit-animation: translateleft 1s ease forwards;
  177. animation: translateleft 1s ease forwards;
  178. }
  179. h3{
  180. -webkit-transition: color 0.5s 0.5s ease, left 0.5s ease;
  181. transition: color 0.5s 0.5s ease, left 0.5s ease;
  182. }
  183. &:hover{
  184. -webkit-transition: -webkit-transform 0.5s ease!important;
  185. transition: -webkit-transform 0.5s ease!important;
  186. transition: transform 0.5s ease!important;
  187. transition: transform 0.5s ease, -webkit-transform 0.5s ease!important;
  188. -webkit-transform: scale(0.9)!important;
  189. transform: scale(0.9)!important;
  190. }
  191. }
  192. }
  193. // page
  194. body {
  195. #page-wrapper.item {
  196. header {
  197. border-bottom: 1px solid black;
  198. position: fixed;
  199. height: 5rem;
  200. background: white;
  201. top: 0;
  202. left: 10px;
  203. right: 10px;
  204. z-index: 999;
  205. h1 {
  206. color: black;
  207. line-height: 5rem;
  208. }
  209. h2, .scroll {
  210. display: none;
  211. }
  212. }
  213. }
  214. }