first scroll effect with gsap scrollsmoother
This commit is contained in:
@@ -14,22 +14,28 @@ body{
|
||||
}
|
||||
|
||||
div.layout-container{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// height: 100vh;
|
||||
// overflow: hidden;
|
||||
header[role="banner"]{
|
||||
padding: 0.5em;
|
||||
flex: 0 1 content;
|
||||
// flex: 0 1 content;
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
top:0;
|
||||
width: 100vw;
|
||||
}
|
||||
main[role="main"]{
|
||||
flex: 1 1 auto;
|
||||
// flex: 1 1 auto;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
footer[role="contentinfo"]{
|
||||
flex: 0 1 content;
|
||||
// flex: 0 1 content;
|
||||
z-index: 100;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +86,7 @@ header[role="banner"]{
|
||||
} // end of header[role="banner"]{
|
||||
|
||||
main[role="main"]{
|
||||
>div.layout-content{
|
||||
div.layout-content{
|
||||
padding:5em 0;
|
||||
article{
|
||||
background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user