Im searching the Internet for a few weeks and cant find a solution. I can make an horizontal slider and i can build animations on scroll, but not both on the same time. i want that the horizontal scrolling between the sliders is possible after all scroll animations are done. Dont worry the Implementations are done.
<!DOCTYPEhtml>
<Head>
<title>Problem</title>
<styletype="text/css">
.slide{
width: 100vw;
height: 100vh;
}
.wrapper{
display: flex;
flex-direction: row;
width: 400vw;
transform: rotate(90deg) translateY(-100vh);
transform-origin: topleft;
}
.outer-wrapper{
width: 100vh;
height: 100vw;
transform: rotate(-90deg) translateX(-100vh);
transform-origin: topleft;
overflow-y: scroll;
overflow-x: hidden;
position: absolute;
scrollbar-width: none;
-ms-overflow-style: none;
}
</style>
</Head>
<Body>
<divclass="outer-wrapper">
<divclass="wrapper">
<divclass="slide one"></div>
<divclass="slide two"></div>
<divclass="slide three"></div>
<divclass="slide four"></div>
</div>
</div>
<script>
//the classes are not important. i just used Tweenmax for scrolling
Want horzontal sliders and on every slider page should be a animation triggered by scrolling
in GSAP
Posted
Hello,
Im searching the Internet for a few weeks and cant find a solution. I can make an horizontal slider and i can build animations on scroll, but not both on the same time. i want that the horizontal scrolling between the sliders is possible after all scroll animations are done. Dont worry the Implementations are done.
newhtml.html