Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <!-- Bootstrap CDN -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">

<section id="skills" class="skills container-fluid mb-5 pb-5">

    <div class="screens col-lg-8 col-md-12 col-12 px-0">
      <div class="skill_bg mt-5">

        <div class="size">

          <h4 class="text-center">Trending <span>Skills</span></h4>
          <p class="small-p text-center">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor enean massa um sociis natoque </p>
          <div class="blocks d-flex align-items-center flex-wrap">
            <a href="#">Webdesign</a>
            <a href="#">App Design</a>
            <a href="#">Logo Design</a>
            <a href="#">Banner Design</a>
            <a href="#">Brochure Design</a>
            <a href="#">Cover Design</a>
          </div>
          <div id="blur"></div>

        </div>

        <div id="small-box" class="small-box">
          <div id="hide">
            <h4 class="text-center pt-4 pb-3 mb-0"><span>Top</span> Tools</h4>
            <p class="text-center small-p">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo</p>
            
          </div>
        </div>
      </div>
    </div>
  </div>
  
</section>

<!-- Bootstrap Script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/gsap.min.js" integrity="sha512-2fk3Q4NXPYAqIha0glLZ2nluueK43aNoxvijPf53+DgL7UW9mkN+uXc1aEmnZdkkZVvtJZltpRt+JqTWc3TS3Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/ScrollTrigger.min.js" integrity="sha512-jNJOCd1PIjJoUa1XTDKaPdBLNUe4OJTrltKG+70O5ghYZ943nTRGIzjObwC2JtSm1fG7T06GbUApR2eirIU/jA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/CSSRulePlugin.min.js" integrity="sha512-EIzKYNrmzSj8Q5czLrNi/F6bplhopAp2Li9nk/8r7MW+Ov9KPEo0xrjWMYXU8lFYy5dzh/w8Ql5ShZHucrjXdg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
              
            
!

CSS

              
                #skills .screens .skill_bg {
    background-image: url("https://images.unsplash.com/photo-1517816743773-6e0fd518b4a6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1500&q=80");
    width: 90%;
    height: 90%;
    background-size: cover;
    background-position: right 100% bottom 100%;
    border-radius: 10px;
    box-shadow: 0 6px 33px rgba(0, 0, 0, 0.14);
    position: relative;
    opacity: 1;
    transform: translateY(140px);
}

#skills .screens .skill_bg .size {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: -9;
    padding-top: 50px;
}

#skills .screens .skill_bg .size .small-p {
    width: 80%;
    margin: auto;
    padding-bottom: 10px;
}

#skills .screens .skill_bg .size #blur {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

#skills .screens .blocks {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: start;
}

#skills .screens .blocks a {
    text-decoration: none;
    background: #fff;
    opacity: 0.8;
    padding: 12px 60px;
    font-size: 14px;
    color: rgb(33, 49, 177);
    font-weight: 800;
    line-height: 2;
    text-align: center;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0px 6px 14px 0px rgba(0, 0, 0, 0.08);
}

#skills .screens .small-box {
    
    position: absolute;
    left: 10%;
    /* go left 75% */
    top: -18%;
    /* down to 22% */
    width: 170px;
    /* stretch to 270px */
    height: 70px;
    /* fold to 350px */
    z-index: 111;
    background: #fff;
    box-shadow: 0 6px 33px rgba(0, 0, 0, 0.14);
    border-radius: 19px;
}

#skills .screens .small-box #hide {
    display: none;
    opacity: 0;
}

#skills .screens .small-box h4 {
    color: #79d0e3;
}

#skills .screens .small-box p {
    width: 80%;
    margin: auto;
    text-align: center;
    color: d6d6d6;
    font-weight: 500;
}

              
            
!

JS

              
                gsap.registerPlugin(ScrollTrigger);


gsap.to(".skill_bg", {
    scrollTrigger: {
        trigger: "#skills",
        start: "10px 40%",
    },
    y: 0,
    opacity: 1,
    duration: 1
});

gsap.to("#blur", {
    scrollTrigger: {
        trigger: "#skills",
        start: "10px 40%",
    },
    display: "none",
    duration: 2
});

gsap.to(".small-box", {
    scrollTrigger: {
        trigger: "#skills",
        start: "10px 40%",
    },
    top: "-10%",
    display: "initial",
    width: "270px",
    height: "350px",
    duration: 1
});


gsap.to("#hide", {
    scrollTrigger: {
        trigger: ".small-box",
        start: "10px 40%",
    },
    display: "block",
    opacity: 1,
    delay: 1,
    duration: 2
});


gsap.to(".small-box", {
    scrollTrigger: {
        trigger: ".small-box",
        start: "10px 40%",
    },
    left: "70%",
    delay: 1,
    duration: 1
});

gsap.to(CSSRulePlugin.getRule("#timeline::before"), {
    scrollTrigger: {
        trigger: "#timeline-wrap",
        start: "40px 120%",
    },
    width: "75%",
    opacity: 1,
    duration: 2

});


gsap.to(".marker", {
    scrollTrigger: {
        trigger: "#timeline-wrap",
        start: "40px 120%",
    },
    x: 0,
    opacity: 1,
    duration: 1.2,
    stagger: 0.30
});

ScrollTrigger.matchMedia({

    // medium
    "(max-width: 769px)": function() {
        gsap.to(".small-box", {
            scrollTrigger: {
                trigger: ".small-box",
                start: "10px 40%",
            },
            left: "75%",
            delay: 1,
            duration: 1
        });
    },

    "(max-width: 769px)": function() {
        gsap.to(".marker", {
            scrollTrigger: {
                trigger: "#timeline-wrap",
                start: "40px 120%",
            },
            x: 0,
            opacity: 1,
            duration: 1.2,
            stagger: 0.15
        });
    },

    "(max-width: 769px)": function() {
        gsap.to(CSSRulePlugin.getRule("#timeline::before"), {
            scrollTrigger: {
                trigger: "#timeline-wrap",
                start: "40px 80%",
            },
            width: "75%",
            opacity: 1,
            duration: 2

        });
    },


    // small
    "(max-width: 525px)": function() {
        gsap.to(".small-box", {
            scrollTrigger: {
                trigger: "#skills",
                start: "10px 40%",
            },

            top: "10%",
            display: "initial",
            width: "270px",
            height: "350px",
            duration: 1
        });

        gsap.to(".small-box", {
            scrollTrigger: {
                trigger: "#skills",
                start: "10px 40%",
            },
            left: "15%",
            delay: 1,
            duration: 1
        });


        gsap.to("#hide", {
            scrollTrigger: {
                trigger: ".small-box",
                start: "10px 40%",
            },
            display: "none",
            opacity: 0,
            delay: 1,
            duration: 1
        });


    }


});
              
            
!
999px

Console