_header.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // home
  2. body{
  3. height: 100%;
  4. .blog{
  5. header{
  6. z-index: 999;
  7. position: fixed;
  8. top: 0;
  9. left: 2%;
  10. right: 2%;
  11. height: 100vh;
  12. display: -webkit-inline-box;
  13. display: -ms-inline-flexbox;
  14. display: inline-flex;
  15. -webkit-box-orient: vertical;
  16. -webkit-box-direction: normal;
  17. -ms-flex-direction: column;
  18. flex-direction: column;
  19. & > section{
  20. height: 50vh;
  21. min-height: 250px;
  22. top: 0;
  23. left: 2%;
  24. right: 2%;
  25. &.works-mea{
  26. display: -webkit-inline-box;
  27. display: -ms-inline-flexbox;
  28. display: inline-flex;
  29. -ms-flex-wrap: wrap;
  30. flex-wrap: wrap;
  31. -webkit-box-align: end;
  32. -ms-flex-align: end;
  33. align-items: flex-end;
  34. height: 100%;
  35. margin-bottom: 20px;
  36. }
  37. &.reduc{
  38. -webkit-animation: reducfont 1s ease forwards;
  39. animation: reducfont 1s ease forwards;
  40. }
  41. }
  42. h1{
  43. position: fixed;
  44. top: 80px;
  45. font-size: 11.2vw;
  46. line-height: 7vw!important;
  47. transition: top 1s ease;
  48. transition: font-size 1.2s ease, color 1.2s ease , top 1.2s ease;
  49. }
  50. h2{
  51. position: fixed;
  52. top:220px;
  53. font-size: 3.7vw;
  54. opacity: 1;
  55. transform: translateX(0);
  56. transition: opacity 1s ease 1s, transform 1s ease 1s;
  57. }
  58. nav{
  59. // margin-top: 25vh; /* poussé de la moitié de hauteur de viewport */
  60. // -webkit-transform: translateY(-50%);
  61. // transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
  62. }
  63. .scroll{
  64. width: 50px;
  65. height: 15px;
  66. margin: 0 auto 10px auto;
  67. overflow: hidden;
  68. position: fixed;
  69. bottom: 0;
  70. left: 50%;
  71. -webkit-transform: translate(-50%);
  72. transform: translate(-50%);
  73. & > p:nth-child(1){
  74. text-align: center;
  75. position: absolute;
  76. top: -20px;
  77. -webkit-animation: translatep1 2s infinite linear;
  78. animation: translatep1 2s infinite linear;
  79. }
  80. & > p:nth-child(2){
  81. text-align: center;
  82. position: absolute;
  83. top: -20px;
  84. -webkit-animation: translatep1 2s infinite linear;
  85. animation: translatep1 2s infinite linear;
  86. -webkit-animation-delay: 1s;
  87. animation-delay: 1s;
  88. }
  89. }
  90. &.hide{
  91. & > section:first-child{
  92. height: 100px;
  93. min-height: 100px;
  94. background: white;
  95. z-index: 999;
  96. }
  97. nav{
  98. margin-top: 0;
  99. -webkit-transform: translate(0);
  100. transform: translate(0);
  101. -webkit-transition: margin-top 1s ease, -webkit-transform 1s ease;
  102. transition: margin-top 1s ease, -webkit-transform 1s ease;
  103. transition: margin-top 1s ease, transform 1s ease;
  104. transition: margin-top 1s ease, transform 1s ease, -webkit-transform 1s ease;
  105. }
  106. h1{
  107. position: relative;
  108. font-size: 3rem;
  109. top: 0px;
  110. color: black;
  111. transition: font-size 1.2s ease 0.5s, color 1.2s ease 1s, top 1.2s ease 0.5s;
  112. animation: textestroke 0.5s ease 1.2s forwards;
  113. }
  114. h2{
  115. opacity: 0;
  116. transform: translateX(-10px);
  117. top:220px;
  118. -webkit-transition: opacity 0.5s ease, transform 0.5s ease;
  119. transition: opacity 0.5s ease, transform 0.5s ease;
  120. }
  121. .card{
  122. -webkit-animation: card 1s forwards ease;
  123. animation: card 1s forwards ease;
  124. }
  125. .scroll{
  126. opacity: 0;
  127. -webkit-transition: opacity 0.8s ease;
  128. transition: opacity 0.8s ease;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. // html{
  135. // overflow: hidden;
  136. // }
  137. // html, body {
  138. // padding: 0;
  139. // margin: 0;
  140. //
  141. // }
  142. // body {
  143. // position: absolute;
  144. // left: 0;
  145. // top: 0;
  146. // right: -30px;
  147. // bottom: 0;
  148. // padding-right: 15px;
  149. // overflow-y: scroll;
  150. // }
  151. // page
  152. body{
  153. & > .item{
  154. header{
  155. height: 130px;
  156. position: relative;
  157. nav{
  158. position: absolute;
  159. margin-top: 65px; /* poussé de la moitié de hauteur de viewport */
  160. -webkit-transform: translateY(-50%);
  161. transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
  162. }
  163. h1{
  164. color: black;
  165. }
  166. h2{
  167. display: none;
  168. }
  169. .scroll{
  170. display: none;
  171. }
  172. }
  173. }
  174. }