123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- // home
- body{
- height: 100%;
- .blog{
- header{
- z-index: 999;
- position: fixed;
- top: 0;
- left: 2%;
- right: 2%;
- height: 100vh;
- display: -webkit-inline-box;
- display: -ms-inline-flexbox;
- display: inline-flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -ms-flex-direction: column;
- flex-direction: column;
- & > section{
- height: 50vh;
- min-height: 250px;
- top: 0;
- left: 2%;
- right: 2%;
- &.works-mea{
- display: -webkit-inline-box;
- display: -ms-inline-flexbox;
- display: inline-flex;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- -webkit-box-align: end;
- -ms-flex-align: end;
- align-items: flex-end;
- height: 100%;
- margin-bottom: 20px;
- }
- &.reduc{
- -webkit-animation: reducfont 1s ease forwards;
- animation: reducfont 1s ease forwards;
- }
- }
- h1{
- position: fixed;
- top: 80px;
- font-size: 11.2vw;
- line-height: 7vw!important;
- transition: top 1s ease;
- transition: font-size 1.2s ease, color 1.2s ease , top 1.2s ease;
- }
- h2{
- position: fixed;
- top:220px;
- font-size: 3.7vw;
- opacity: 1;
- transform: translateX(0);
- transition: opacity 1s ease 1s, transform 1s ease 1s;
- }
- nav{
- // margin-top: 25vh; /* poussé de la moitié de hauteur de viewport */
- // -webkit-transform: translateY(-50%);
- // transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
- }
- .scroll{
- width: 50px;
- height: 15px;
- margin: 0 auto 10px auto;
- overflow: hidden;
- position: fixed;
- bottom: 0;
- left: 50%;
- -webkit-transform: translate(-50%);
- transform: translate(-50%);
- & > p:nth-child(1){
- text-align: center;
- position: absolute;
- top: -20px;
- -webkit-animation: translatep1 2s infinite linear;
- animation: translatep1 2s infinite linear;
- }
- & > p:nth-child(2){
- text-align: center;
- position: absolute;
- top: -20px;
- -webkit-animation: translatep1 2s infinite linear;
- animation: translatep1 2s infinite linear;
- -webkit-animation-delay: 1s;
- animation-delay: 1s;
- }
- }
- &.hide{
- & > section:first-child{
- height: 100px;
- min-height: 100px;
- background: white;
- z-index: 999;
- }
- nav{
- margin-top: 0;
- -webkit-transform: translate(0);
- transform: translate(0);
- -webkit-transition: margin-top 1s ease, -webkit-transform 1s ease;
- transition: margin-top 1s ease, -webkit-transform 1s ease;
- transition: margin-top 1s ease, transform 1s ease;
- transition: margin-top 1s ease, transform 1s ease, -webkit-transform 1s ease;
- }
- h1{
- position: relative;
- font-size: 3rem;
- top: 0px;
- color: black;
- transition: font-size 1.2s ease 0.5s, color 1.2s ease 1s, top 1.2s ease 0.5s;
- animation: textestroke 0.5s ease 1.2s forwards;
- }
- h2{
- opacity: 0;
- transform: translateX(-10px);
- top:220px;
- -webkit-transition: opacity 0.5s ease, transform 0.5s ease;
- transition: opacity 0.5s ease, transform 0.5s ease;
- }
- .card{
- -webkit-animation: card 1s forwards ease;
- animation: card 1s forwards ease;
- }
- .scroll{
- opacity: 0;
- -webkit-transition: opacity 0.8s ease;
- transition: opacity 0.8s ease;
- }
- }
- }
- }
- }
- // html{
- // overflow: hidden;
- // }
- // html, body {
- // padding: 0;
- // margin: 0;
- //
- // }
- // body {
- // position: absolute;
- // left: 0;
- // top: 0;
- // right: -30px;
- // bottom: 0;
- // padding-right: 15px;
- // overflow-y: scroll;
- // }
- // page
- body{
- & > .item{
- header{
- height: 130px;
- position: relative;
- nav{
- position: absolute;
- margin-top: 65px; /* poussé de la moitié de hauteur de viewport */
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
- }
- h1{
- color: black;
- }
- h2{
- display: none;
- }
- .scroll{
- display: none;
- }
- }
- }
- }
|