_header.scss 5.9 KB

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