bug h1 transition page
This commit is contained in:
@@ -4,24 +4,32 @@ body {
|
||||
margin: 0 10px;
|
||||
header {
|
||||
height:100vh;
|
||||
width: calc(100% - 20px);
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
width: calc(100% - 22px);
|
||||
display: inline-flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-ms-flex-line-pack: distribute;
|
||||
align-content: space-around;
|
||||
flex-direction: column;
|
||||
align-content: space-around;
|
||||
& > div{
|
||||
position: fixed;
|
||||
width: calc(100% - 20px);
|
||||
&.head{
|
||||
z-index: 999;
|
||||
padding-top: 4vw;
|
||||
padding-top: 25px;
|
||||
width: inherit;
|
||||
.svg-container {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: calc( ( 100% / 3 ) * 2 - 22px ) ;
|
||||
padding-bottom: 9%;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
.svg-content {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
margin-left: 8px;
|
||||
margin-left: -4px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
@@ -34,15 +42,11 @@ body {
|
||||
}
|
||||
}
|
||||
&.works-mea {
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
-ms-flex-item-align: end;
|
||||
align-self: flex-end;
|
||||
height: calc(100% - 20px);
|
||||
-webkit-box-align: end;
|
||||
-ms-flex-align: end;
|
||||
align-items: flex-end;
|
||||
align-self: flex-end;
|
||||
height: calc(100% - 25px);
|
||||
align-items: flex-end;
|
||||
width: inherit;
|
||||
.card{
|
||||
&:nth-child(2){
|
||||
margin:0 10px;
|
||||
@@ -55,24 +59,33 @@ body {
|
||||
&.scroll{
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
width: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.down{
|
||||
header{
|
||||
height: 5rem;
|
||||
.head{
|
||||
padding:0;
|
||||
-webkit-transition: all 1s 0.9s ease;
|
||||
transition: all 1s 0.9s ease;
|
||||
.svg-container {
|
||||
width: 250px;
|
||||
transition: all 1s 0.9s ease;
|
||||
padding-bottom: calc(70px - 7px);
|
||||
.svg-content {
|
||||
path{
|
||||
transition: all 1s 0.9s ease;
|
||||
fill: black!important;
|
||||
stroke-width:0!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
&::after{
|
||||
-webkit-animation: showborder 2.5s 1.5s ease forwards;
|
||||
animation: showborder 2.5s 1.5s ease forwards;
|
||||
}
|
||||
|
||||
h2{
|
||||
opacity: 0;
|
||||
left: -40%;
|
||||
-webkit-transition: left 3s linear, opacity 0.3s 0.1s ease;
|
||||
transition: left 3s linear, opacity 0.3s 0.1s ease;
|
||||
}
|
||||
}
|
||||
@@ -92,7 +105,6 @@ body {
|
||||
}
|
||||
.scroll{
|
||||
opacity: 0;
|
||||
-webkit-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
}
|
||||
@@ -107,12 +119,10 @@ body {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
-webkit-transition: width 0.5s ease;
|
||||
transition: width 0.5s ease;
|
||||
cursor: pointer;
|
||||
&:hover{
|
||||
width: 80px;
|
||||
-webkit-transition: width 0.5s ease;
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
svg{
|
||||
@@ -136,14 +146,12 @@ body {
|
||||
-webkit-transform: scale(15);
|
||||
transform: scale(15);
|
||||
height: auto;
|
||||
-webkit-transition: -webkit-transform 0.5s ease;
|
||||
transition: -webkit-transform 0.5s ease;
|
||||
transition: transform 0.5s ease;
|
||||
transition: transform 0.5s ease, -webkit-transform 0.5s ease;
|
||||
h3{
|
||||
color: transparent;
|
||||
left: 500px;
|
||||
-webkit-transition: visibility 0.5 ease left 1s ease;
|
||||
transition: visibility 0.5 ease left 1s ease;
|
||||
}
|
||||
svg{
|
||||
@@ -165,7 +173,6 @@ body {
|
||||
&.close{
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
-webkit-transition: -webkit-transform 0.5s 0.1s ease;
|
||||
transition: -webkit-transform 0.5s 0.1s ease;
|
||||
transition: transform 0.5s 0.1s ease;
|
||||
transition: transform 0.5s 0.1s ease, -webkit-transform 0.5s 0.1s ease;
|
||||
@@ -178,11 +185,9 @@ body {
|
||||
animation: translateleft 1s ease forwards;
|
||||
}
|
||||
h3{
|
||||
-webkit-transition: color 0.5s 0.5s ease, left 0.5s ease;
|
||||
transition: color 0.5s 0.5s ease, left 0.5s ease;
|
||||
}
|
||||
&:hover{
|
||||
-webkit-transition: -webkit-transform 0.5s ease!important;
|
||||
transition: -webkit-transform 0.5s ease!important;
|
||||
transition: transform 0.5s ease!important;
|
||||
transition: transform 0.5s ease, -webkit-transform 0.5s ease!important;
|
||||
@@ -195,6 +200,9 @@ body {
|
||||
body {
|
||||
#page-wrapper.item {
|
||||
header {
|
||||
z-index: 999;
|
||||
padding-top: 25px;
|
||||
width: inherit;
|
||||
border-bottom: 1px solid black;
|
||||
position: fixed;
|
||||
height: 5rem;
|
||||
@@ -203,9 +211,22 @@ body {
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
z-index: 999;
|
||||
.head{
|
||||
.svg-container {
|
||||
width: 250px;
|
||||
transition: all 1s 0.9s ease;
|
||||
.svg-content {
|
||||
path{
|
||||
transition: all 1s 0.9s ease;
|
||||
fill: black!important;
|
||||
stroke-width:0!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
h1 {
|
||||
color: black;
|
||||
line-height: 5rem;
|
||||
// color: black;
|
||||
// line-height: 5rem;
|
||||
}
|
||||
h2, .scroll {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user