add anime+boucleproj
This commit is contained in:
@@ -1,175 +1,114 @@
|
||||
// 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;
|
||||
body {
|
||||
.blog {
|
||||
header {
|
||||
height:100vh;
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-content: space-around;
|
||||
& > div{
|
||||
position: fixed;
|
||||
&.head{
|
||||
width: 100%;
|
||||
z-index: 999;
|
||||
padding-top: 70px;
|
||||
h2 {
|
||||
margin-left: 8px;
|
||||
position: absolute;
|
||||
}
|
||||
&::after {
|
||||
display: block;
|
||||
content: " ";
|
||||
width: 0%;
|
||||
height: 1px;
|
||||
background: black;
|
||||
}
|
||||
|
||||
}
|
||||
&.works-mea {
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
align-self: flex-end;
|
||||
height: calc(100% - 20px);
|
||||
align-items: flex-end;
|
||||
.card{
|
||||
&:nth-child(2){
|
||||
margin:0 10px;
|
||||
}
|
||||
&:not(:nth-child(2)){
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.scroll{
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.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;
|
||||
&.down{
|
||||
header{
|
||||
height: 5rem;
|
||||
.head{
|
||||
padding:0;
|
||||
transition: all 1s 0.9s ease;
|
||||
&::after{
|
||||
animation: showborder 2.5s 1.5s ease forwards;
|
||||
}
|
||||
h2{
|
||||
opacity: 0;
|
||||
margin-left: -100px;
|
||||
transition: all 1s ease;
|
||||
left: -50%;
|
||||
}
|
||||
}
|
||||
.card{
|
||||
&:nth-child(1){
|
||||
animation: translateY 1s ease forwards;
|
||||
}
|
||||
&:nth-child(2){
|
||||
animation: translateY 1.3s ease forwards;
|
||||
}
|
||||
&:nth-child(3){
|
||||
animation: translateY 1.6s ease forwards;
|
||||
}
|
||||
}
|
||||
.scroll{
|
||||
opacity: 0;
|
||||
transition: all 1s 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;
|
||||
}
|
||||
body {
|
||||
#page-wrapper.item {
|
||||
header {
|
||||
border-bottom: 1px solid black;
|
||||
position: fixed;
|
||||
height: 112px;
|
||||
top: 0;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
background: white;
|
||||
z-index: 999;
|
||||
nav {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: black;
|
||||
}
|
||||
|
||||
h2, .scroll {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user