Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<main>

<div id="s03">
    <section class="scroll-trigger section section03">
    <div class="outer-img-wrapper">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/10/2500/1667.jpg?hmac=J04WWC_ebchx3WwzbM-Z4_KC_LeLBWr5LZMaAkWkF68" alt="">
    </div>
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="1">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="2">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="3">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div id="s04">
    <section id="section-2" class="scroll-trigger2 section section04">
    <div class="outer-img-wrapper">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/1000/5626/3635.jpg?hmac=qWh065Fr_M8Oa3sNsdDL8ngWXv2Jb-EE49ZIn6c0P-g" class="img2" alt="">
    </div>
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="4">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="5">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div id="s05">
    <section id="section-2" class="scroll-trigger3 section section05">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/1002/4312/2868.jpg?hmac=5LlLE-NY9oMnmIQp7ms6IfdvSUQOzP_O3DPMWmyNxwo" alt="">
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="6">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="7">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="8">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div id="s06">
    <section id="section-2" class="scroll-trigger4 section section06">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/1011/5472/3648.jpg?hmac=Koo9845x2akkVzVFX3xxAc9BCkeGYA9VRVfLE4f0Zzk" class="img2" alt="">
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="9">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="10">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div id="s07">
    <section id="section-2" class="scroll-trigger5 section section07">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/1006/3000/2000.jpg?hmac=x83pQQ7LW1UTo8HxBcIWuRIVeN_uCg0cG6keXvNvM8g" alt="">
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="11">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    <div class="slide" data-slide="12">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div id="s08">
    <section id="section-2" class="scroll-trigger6 section section08">
    <div class="img-wrapper">
    <img src="https://i.picsum.photos/id/1011/5472/3648.jpg?hmac=Koo9845x2akkVzVFX3xxAc9BCkeGYA9VRVfLE4f0Zzk" alt="">
    </div>
    <div class="slide-container">
    <div class="slide" data-slide="13">
    <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pharetra volutpat aliquam.</p>
    </div>
    </div>
    </section>
</div>

<div class="scrollElement"></div>

</main>
              
            
!

CSS

              
                body,
html{
margin: 0;
padding: 0;
height: 100%;
width: 1334px;
height: 800px;
background: black;
}


body, h1, h2, h3, h4, h5, h6, p, ol, ul, button {
font-family: 'Antarctica-ExtraCondensedBold';
}


/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
-ms-overflow-style: none;  /* IE and Edge */
scrollbar-width: none;  /* Firefox */
}

h2 {
padding: 0;
margin: 20px;
font-size: 32pt;
}


.scrollElement {
position: absolute;

top: 0;
z-index: 0;
}

main {
height: 100vh;
position: relative;
}

.section {
width: 1334px;
height: 800px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
text-align: center;
position: relative;
padding: none !important;
box-sizing: border-box;
background: #000 !important;
}


h3 {
padding: 20px;
box-sizing: border-box;
border: 5px solid #d6a73c;
color: #d6a73c;
font-size: 20pt;
}
.tap {
position: absolute;
bottom: 20px;
left: 800px;
}

h1 {
font-size: 5rem
}

.section03{
background-size:cover;
height: 100vh;
width: 100%;
}
.section03 .slide{
margin-left: -190px;
}
.section03 .img-wrapper{
margin: 40px 290px 70px 40px;
}

.section04{
background-size:cover;
height: 100vh;
width: 100%;
}

.section04 .slide{
margin-left: -600px;
width: 40%;
}
.section04 .img-wrapper{
margin: 90px 70px 70px 240px
}
.section05{
background-size:cover;
background-position: center;
height: 150vh;
width: 100%;
position: relative;
}
.section05 .slide {
margin-left: 110px;
max-width: 500px;
}
.section05 .img-wrapper {
margin: 41px 300px 70px 0px;
}
.section06{
background-size:cover;
height: 100vh;
width: 100%;
}
.section06 .img-wrapper{
margin: 40px 40px 70px 100px;
}
.section07{
background-size:cover;
background-position: center;
height: 150vh;
width: 100%;
position: relative;
}
h1{
font-size: 5rem;
}

p{
font-size: 2rem;
}
.slide {
position: absolute;
width: 60%;
margin: 0 auto;
left: 50%;
max-width: 1100px;
margin-left: -550px;
top: 3%;
text-align: left;
}
.slide p {
background-color: rgba(0,0,0,0.5);
padding: 10px;
box-sizing: border-box;
font-size: 18pt;
font-weight: 300;
line-height: 1.3;
padding: 4%;
}


.vc {
overflow: hidden;
width: 1334px;
height: 800px;
}

.outer-img-wrapper {
position: relative;
height: 100%;
width: 1334px;
}

.img-wrapper {
top: 0;
bottom: 0;
left: 0;
right: 0;
position: absolute;
overflow: hidden;
margin: 40px 140px 70px 40px;
}

.img-wrapper img {
position: absolute;
top: -999px;
bottom: -999px;
left: -999px;
right: -999px;
min-width: 100%;
min-height: 100%;
width: 100%;
height: 100%;
overflow: hidden;
margin: auto;
  animation: 115s ppb_kenburns linear infinite alternate;
}

@keyframes ppb_kenburns{
0% {
transform: scale(1.3) translate(-10%, 10%);
}
25% {
transform: scale(1) translate(0, 0);
}
50% {
transform: scale(1.3) translate(10%, 10%);
}
75% {
transform: scale(1) translate(0, 0);
}
100% {
transform: scale(1.3) translate(-10%, 10%);
}
}

.img-wrapper .img2 {
position: absolute;
top: -999px;
bottom: -999px;
left: -999px;
right: -999px;
min-width: 100%;
min-height: 100%;
width: 100%;
height: 100%;
overflow: hidden;
margin: auto;
  animation: 115s ppb_kenburns02 linear infinite alternate;
}

@keyframes ppb_kenburns02{
0% {
transform: scale(1.3) translate(10%, 10%);
}
25% {
transform: scale(1) translate(0, 0);
}
50% {
transform: scale(1.3) translate(0, 0);
}
75% {
transform: scale(1) translate(0, 0);
}
100% {
transform: scale(1) translate(-10%, -10%);
}
}

.section05 .img-wrapper img {
min-width: 60%;
width: 70%;
height: unset;
}
.section06 .img-wrapper img {
min-width: 90%;
width: 90%;
height: unset;
}
.section07 .img-wrapper img {
min-width: 60%;
width: 60%;
}
.section05 .slide {
top: 7%;
}
.section06 .slide {
top: 4%;
margin-left: -666px;
}
.section07 .slide {
top: 0%;
margin-left: -650px;
}

a.home {
position: fixed;
height: 26px !important;
top: 2%;
right: 2%;
padding: 10px 20px;
font-size: 18px;
transition: 0.4s;
z-index: 99;
border: 6px solid #DDB351;
text-decoration: none;
color: #E5B139;
background-color: rgba(0,0,0,0.3);
}

.btn_intro {
border: 6px solid #DDB351;
padding: 1% 4%;
margin: auto;
background: #000;
color: #E5B139;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-top: 40px;
font-size: 22px;
align-items: center;
position: absolute;
top: 75%;
left: 50%;
transform: translateX(-50%);
text-decoration: none;
}

.btn_intro .ico {
background: url(img/Group_18.svg) no-repeat;
width: 40px;
height: 40px;
margin-left: 20px;
margin-top: 4px;
}

.rotate {
-webkit-transform: rotateX(180deg);
      transform: rotateX(180deg);
}


main {
height: 100%;
}

main::-webkit-scrollbar {
width: 0px; 
background: transparent;
}
.scrollbar {
width: 10px;
height: 20vh;
background-color: lightgray;
border-radius: 1000px;
position: fixed;
top: 0vh;
right: 10px;
}

.dots {
position: fixed;
right: 130px;
top: 25%;
color: #fff;
height: 350px;
width: 160px;
z-index: 9999;
transform: rotate(-270deg);
}

.dots a { 
width: 78px;
height: 71px;
/* border-radius: 100%; */
background: transparent;
border: 2px solid #E5B139;
margin: 15px;

}

.plumpit {
width: 98px !important;
border: 2px solid #fff !important;
}

#s02 {
margin-top: 5px;
}
#s03 {
margin-top: 5px;
}
#s04 {
margin-top: 5px;
}
#s05 {
margin-top: 5px;
}
#s06 {
margin-top: 5px;
}
#s07 {
margin-top: 5px;
}
#s08 {
margin-top: 5px;
}
              
            
!

JS

              
                gsap.registerPlugin(ScrollTrigger);

const tl1 = gsap.timeline({
scrollTrigger: {
    trigger: ".scroll-trigger",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=5000",
    toggleActions: "play pause play reset"
}
});

tl1.from("[data-slide='1'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,
})
.to(
    "[data-slide='1'] .text",
    {
    opacity: 0,
    duration: 2,
    y: 800,
    },
    "+=3"
)

tl1.from("[data-slide='2'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
})
.to(
    "[data-slide='2'] .text",
    {
    opacity: 0,
    duration: 2,
    y: 800,
    },
    "+=1"
)

tl1.from("[data-slide='3'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,  
})
.to(
    "[data-slide='3'] .text",
    {
    opacity: 0,
    duration: 2,
    y: 800,
    },
    "+=1"
)

//--------//

const tl2 = gsap.timeline({
    scrollTrigger: {
    trigger: ".scroll-trigger2",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=5000",
    toggleActions: "play pause play reset"
    }
});

    tl2.from("[data-slide='4'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,
    })
    .to(
    "[data-slide='4'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=3"
    )

    tl2.from("[data-slide='5'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
    })
    .to(
    "[data-slide='5'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=1"
    )

//--------//

const tl3 = gsap.timeline({
    scrollTrigger: {
    trigger: ".scroll-trigger3",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=5000",
    toggleActions: "play pause play reset"
    }
});

    tl3.from("[data-slide='6'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,
    })
    .to(
    "[data-slide='6'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=3"
    )

    tl3.from("[data-slide='7'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
    })
    .to(
    "[data-slide='7'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=1"
    )

    tl3.from("[data-slide='8'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
    })
    .to(
    "[data-slide='8'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=1"
    )

//--------//

const tl4 = gsap.timeline({
    scrollTrigger: {
    trigger: ".scroll-trigger4",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=5000",
    toggleActions: "play pause play reset"
    }
});

    tl4.from("[data-slide='9'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,
    })
    .to(
    "[data-slide='9'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=3"
    )

    tl4.from("[data-slide='10'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
    })
    .to(
    "[data-slide='10'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=1"
    )

        //--------//

const tl5 = gsap.timeline({
    scrollTrigger: {
    trigger: ".scroll-trigger5",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=5000",
    toggleActions: "play pause play reset"
    }
});

    tl5.from("[data-slide='11'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300,
    })
    .to(
    "[data-slide='11'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=3"
    )

    tl5.from("[data-slide='12'] .text", {
    opacity: 0,    
    duration: 2,
    x: -300, 
    })
    .to(
    "[data-slide='12'] .text",
    {
        opacity: 0,
        duration: 2,
        y: 800,
    },
    "+=1"
    )

            //--------//

const tl6 = gsap.timeline({
    scrollTrigger: {
    trigger: ".scroll-trigger6",
    pin: true,
    scrub: true,
    start: "top top",
    end: "+=2000",
    toggleActions: "play pause play reset"
    }
});

    tl6.from("[data-slide='13'] .text", {
    opacity: 0,    
    x: -300,
    })
              
            
!
999px

Console