127Folding brochure
In this effect, we unfold images one by one in a 3D accordion, as if we were flipping through a brochure. The motion follows the user’s scroll. Ready? Let’s go!
HTML Structure
The structure is relatively simple. A tall pin-height wraps a viewport-sized container. That wrapper will define how long the accordion stays pinned while we scroll.
<section class="mwg_effect127">
<div class="pin-height">
<div class="container">
...
</div>
</div>
</section>
Inside the container, a stage holds a zero-size screen. That screen will become our 3D origin:
<div class="container">
<div class="stage">
<div class="screen">
...
</div>
</div>
</div>
Every page of the brochure lives in a panel, with its image nested inside:
<div class="screen">
<div class="panel">
<img src="./assets/medias/01.webp" alt="" draggable="false">
</div>
<div class="panel">
<img src="./assets/medias/02.webp" alt="" draggable="false">
</div>
...
</div>
We can add as many panels as we like: the script will chain them into one continuous accordion.
Get started with free effects
Get a taste of what’s possible with Made With Gsap, completely free
Try it nowNo credit card or account required.
Free for everyone.