Effects & DesignElementor

How To Make Card Stack Up On Scroll By Using Elementor Free

Tools and Links Used

Hostinger Fast, beginner friendly WordPress hosting.
Get Hosting
Elementor The free page builder this tutorial is built with.
Get Elementor
Elementor Pro The Pro upgrade used throughout this tutorial.
Get Elementor Pro
Kitpapa Ready made Elementor template kits.
Get Templates
Kitninja eCommerce Elementor template kits.
Get Templates

Prompt Used in This Tutorial

Slide Up On Scroll Style CSS
<style>
.sticky-section {
    position: sticky;
    justify-content: center;
    align-items: center;
}
.card-section {
    transform: translate(-50%, -50%);
}

.card {
    position: absolute;
    top: 20%;
    border-radius: 20px;
    transform-origin: center;
}

.card-1 {
    will-change: transform;
    transform: translate3d(25px, -2vh, 0px) scale3d(1, 1, 1) rotateZ(2.11deg);
    transition: all 1s ease;
}
.card-2 {
    will-change: transform;
    transform: translate3d(10px, -1vh, 0px) scale3d(1, 1, 1) rotateZ(1.13deg);
    transform-style: preserve-3d;
}
.card-3 {
    will-change: transform;
    transform: translate3d(-5px, 0vh, 0px) scale3d(1, 1, 1) rotateZ(0deg);
    transform-style: preserve-3d;
}
.card-4 {
    will-change: transform;
    transform: translate3d(-20px, 1vh, 0px) scale3d(1, 1, 1) rotateZ(0.1deg);
    transform-style: preserve-3d;
}

@media (max-width: 767px) {
    .sticky-section {
        position: static !important;
    }

    .card-section {
        position: static;
        transform: none !important;
    }

    .card {
        position: static !important;
        top: auto !important;
        transform: none !important;
    }

    .card-1, .card-2, .card-3, .card-4 {
        transform: none !important;
    }
}
</style>
Slide Up On Scroll Style CSS Classes
main-box
card-section
sticky-section
card
card-1
card-2
card-3
card-4
Slide Up On Scroll JS Code
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/ScrollTrigger.min.js"></script>

<script>
gsap.registerPlugin(ScrollTrigger);

const cards = document.querySelectorAll(".card");

cards.forEach((card, i) => {
    gsap.to(card, {
        y: -window.innerHeight,
        rotateZ: -90,
        scrollTrigger: {
            trigger: ".main-box",
            start: () => `top+=${i * window.innerHeight * 0.5}`,
            end: () => `top+=${(i + 1) * window.innerHeight * 0.5}`,
            scrub: true,
        }
    });
});
</script>

Get Your FREE Freelancing Roadmap

Stop hopping between tutorials. Grab the Freelancing Mastery Handbook to learn how to choose a skill, build your foundation, find clients, and confidently start your freelancing journey.

Free eBook Download

Related Tutorials

From learning the right skills to building a stronger digital presence, we help you turn ideas into practical, professional results.

Vibe Code a REAL Animated WordPress Website with Claude + Elementor

21.8K views

View Tutorial

Vibe Coding Full Course for Beginners – Build & Launch a Real SaaS

3.3K views

View Tutorial

Edit Videos with ChatGPT Codex — Raw Clips to Finished Reel

3.4K views

View Tutorial

Browse All Tutorials