// 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; } } } }