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

Auto Save

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

              
                <!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>BGE Alpaca Store Web</title>
<!--   boxicons   -->
    <link rel="stylesheet"
  href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
<!--   Remixicons   -->
    <link href="https://cdn.jsdelivr.net/npm/remixicon@3.4.0/fonts/remixicon.css" rel="stylesheet">
    
<!--  Google Fonts    -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap" rel="stylesheet">
  </head>
  <body>
    <header>
      <a href="#" class="logo">BGE Alpaca</a>
      <ul class="navlist">
        <li><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Shop</a></li>
        <li><a href="#">Locations</a></li>
        <li><a href="#">Contac Us</a></li>
      </ul>
      
      <div class="bx bx-menu" id="menu-icon">
        
      </div>
    </header>
    
    <section class="hero">
      <div class="hero-text">
        <h5>Peru - Cusco</h5>
        <h4>Luxury Alpaca Clothing</h4>
        <h1>BGE Alpaca</h1>
        <p>🦙 Peru's finest Alpaca wares from Cusco | 100% High-Quality | Embracing Andean culture, sharing it globally 🌎 | #AlpacaLuxury</p>
        <a href="#">Shop Now</a>
        <a href="#" class="ctaa"><i class="ri-play-fill"></i>Watch Alpaca Clothing</a>
      </div>
      <div class="hero-img">
        <img src="https://i.imgur.com/N9kdmmx.png" alt="BGE ALpca Logo">
      </div>
    </section>
    <div class="icons">
      <a href="#"><i class="ri-instagram-line"></i></a>
      <a href="#"><i class="ri-youtube-line"></i></a>
      <a href="#"><i class="ri-facebook-box-line"></i></a>
    </div>
    
    <div class="scroll-down">
      <a href="#"><i class="ri-arrow-down-s-fill"></i></a>
    </div>
<!-- Scroll Reveal Effect      -->
    <script src="https://unpkg.com/scrollreveal"></script>
  </body>
  
</html>
              
            
!

CSS

              
                *{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  text-decoration:none;
}
header{
  position:fixed;
  right:0;
  top:0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 33px 9%;
  background: transparent;
}

.logo{
  font-size: 30px;
  font-weight:700;
  color:white;
}

.navlist {
  display:flex;
}

.navlist a{
  color:white;
  margin-left: 60px;
  font-size: 15px;
  font-weight: 600;
  transition: all .55s ease;
  
}

.navlist a:hover{
  border-bottom: 2px solid white;
}

#menu-icon{
  color: white;
  font-size:30px;
  z-index: 9999999;
  cursor: pointer;
  display: none;
}

.hero{
  height: 100%;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(245.59deg, #936639 0%, #b79d86 28.53%, #8a6642 75.52%);
  position:relative;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

section{
  padding: 0 19%;
  
}

.hero-text h5{
  font-size: 14px;
  font-weight: 400;
  color: white;
  margin-bottom: 40px;
}
.hero-text h1{
  font-family: 'Permanent Marker', cursive;
  font-size: 90px;
  line-height: 1;
  color: white;
  margin: 0 0 45px;
}

.hero-text h4{
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.hero-text p{
  color: white;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero-img img {
  width: 700px;
  height auto
}

.hero-text a {
  display: inline-block;
  color:white;
  background: #b79d86;
  border: 1px solid transparent;
  padding: 12px 30px;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  text-transform: uppercase;
  transition: all .55s ease;
}

.hero-text a:hover{
  background: transparent;
  border: 1px solid white;
  transform: translateX(8px);
}
.hero-text a.ctaa{
  background: transparent;
  border:1px solid white;
  margin-left: 20px
    
}

.hero-text a.ctaa i{
  vertical-align: middle;
  margin-right: 5px;
}
.icons{
  position: absolute;
  top: 50%;
  padding: 0 9%;
  transform: TranslateY(-50%);
}

.icons i {
  display:block;
  margin: 26px 0;
  font-size: 24px;
  color: white;
  transition: all .50s ease;
}

.icons i:hover{
  color: #b79d86;
  transform: translateY(-5px);
}

.scroll-down{
  position: absolute;
  bottom: 6%;
  right:9%;
}

.scroll-down i{
  display: block;
  padding: 12px;
  font-size: 25px;
  color:white;
  
  background: #b79d86;
  border-radius:30px;
  transition: all .50s ease;
}

.scroll-down i:hover{
  transform: translateY(-5px)
}


/* Fixing depending on screen size */
@media (max-width: 1535px){
  header{
    padding: 15px 3%;
    transition: .2s;
    
  }
  .icons{
    padding: 0 3%;
    transition: .2s;
    
  }
  
  .scroll-down {
    right: 3%;
    transition: .2s;
  }
}

@media (max-width: 1460px){
  section{
    padding: 0 12%;
    transition: .2s;
    
  }
}

@media (max-width: 1340px){
  .hero-img img{
    width: 100%;
    height: auto;
  }
  .hero-text h1{
    font-size: 75px;
    margin: 0 0 30px;
  }
  .hero-text h5{
    margin-bottom: 25px;
  }
}

@media (max-width: 1195px){
  section{
    padding: 0 3%;
    transition: .2s;
  }
  .hero-text{
    padding-top: 115px;
    
  }
  .hero-img{
    text-align: center;
  }
  .hero-img img{
    width: 560px;
    height: auto;
  }
  .hero{
    height: 100%;
    gap:1rem;
    grid-template-columns: 1fr;
  }
  .icons{
    display:none;
  }
  .scroll-down{
    display:none;
  }
}
@media (max-width: 990px){
  
  #menu-icon{
    display:block;
  }
  .navlist{
    position:absolute;
    top:100%;
    right: 100%;
    width: 100vw;
    height: 100vh;
    background: #b79d86;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 50px 20px;
    transition: all .55s ease;
  }
  .navlist a{
    
    margin-left: 0;
    display: block;
    margin: 7px 0;
  }
  
  .navlist.open{
    right: 0;
  }
  
}

@media (max-width: 680px){
  .hero-img img{
    width: 100%;
    height: auto;
  }
}
              
            
!

JS

              
                // For the appearing Menu when Menu button is clicked
let Menu = document.querySelector("#menu-icon");
let HiddenNavList = document.querySelector(".navlist");

Menu.onclick = () => {
  Menu.classList.toggle("bx-x");
  HiddenNavList.classList.toggle("open");
}

// For the Scroll Reveal
const sr = ScrollReveal({
  distance: '65px',
  duration: 2600,
  delay: 450,
  reset: true
})

// This will give effect to the Hero text,icons,scroll-down ,and image so that whne is loaded it appears with an effect

sr.reveal('.hero-text', {delay:200,origin:'top'})
sr.reveal('.hero-img', {delay:450,origin:'top'})
sr.reveal('.icons', {delay:450,origin:'left'})
sr.reveal('.scroll-down', {delay:450,origin:'right'})
              
            
!
999px

Console