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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!DOCTYPE html>
<html lang="en">
<head>
  <title>Glassmorphism HTML Template</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>

</head>
<body>

<div class="p-5 text-info text-center">
  <p class="logo">Glassmorphism HTML Template</p> 
  <p class="text-info text-center"><strong>Responsive HTML Template Bootstrap 5 and Glassmorphism</strong></p>
</div>
   

<nav class="navbar navbar-expand-sm bg-light classic bg-primary fixed-top">
  <div class="container-fluid justify-content-center">
    <ul class="nav nav-pills justify-content-center">
  <li class="nav-item">
    <a class="nav-link active" href="#">Home</a>
  </li>
  <li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">Dropdown</a>
    <ul class="dropdown-menu">
      <li><a class="dropdown-item" href="#">Link 1</a></li>
      <li><a class="dropdown-item" href="#">Link 2</a></li>
      <li><a class="dropdown-item" href="#">Link 3</a></li>
    </ul>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">My Work</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Contact Me</a>
  </li>
</ul>
  </div>
</nav>

<div class="container mt-5 bg">
  <div class="row">
    <div class="col-sm-4">
      <h2 class="text-dark">About Me</h2>
      <div><img class="img-fluid img-thumbnail" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8cGVvcGxlfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60" width="300"></div>
      <p class="text-dark">Some text about me in culpa qui officia deserunt mollit anim..</p>
      <h3 class="mt-4 text-dark">Social Links</h3>
      <p class="text-dark">Follow Me</p>
      <ul class="nav nav-pills flex-column">
        <li class="nav-item">
          <a class="nav-link active" href="#">Facebook</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Twitter</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">Instagram</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">LinkedIn</a>
        </li>
      </ul>
      <hr class="d-sm-none">
    </div>
    <div class="col-sm-8">
      <h2 class="text-dark">Flower Blooms</h2>
      <h5 class="text-dark">Title description, June 7, 2022</h5>
      <div><img class="img-fluid img-thumbnail" src="https://cdn.pixabay.com/photo/2016/07/21/20/56/anemone-1533515_960_720.jpg" width="708"></div>
      <p class="text-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

      <h2 class="mt-5 text-dark">Love is Like the Sun</h2>
      <h5 class="text-dark">Title description, Sep 2, 2022</h5>
      <div><img class="img-fluid img-thumbnail" src="https://cdn.pixabay.com/photo/2017/04/25/08/19/sunset-2258906_960_720.jpg" width="708"></div>
      <p class="text-dark">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    </div>
  </div>
</div>

<div class="mt-5 p-4 classic text-dark text-center">
  <p><strong>Made With Love 2022</strong></p>
  <p><strong>Glassmorphism HTML Template by EasyRocketStudio.com</strong></p>
</div>

</body>
</html>
              
            
!

CSS

              
                body {
  background: url(https://cdn.pixabay.com/photo/2016/03/17/23/07/abstract-1264071_960_720.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}
.bg {
  background: rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 32px;
}
.classic {
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(209, 213, 219, 0.3);
	padding:22px;
	z-index: 1;
}
.logo {
	font-size: calc( 1em + 8vw );
  font-weight: 900;
  color: mix(#fff, #e91e63, 85%);
  
  
  --x-offset: -0.0625em;
  --y-offset: 0.0625em;
  --stroke: 0.025em;
  --background-color: white;
  --stroke-color: lightblue;
  
  text-shadow: 
    
    var(--x-offset)
    var(--y-offset)
    0px
    var(--background-color), 
    
    calc( var(--x-offset) - var(--stroke) )
    calc( var(--y-offset) + var(--stroke) )
    0px
    var(--stroke-color);
}
@media only screen and (max-width: 600px){
	.logo {
	color: mix(#fff, #e91e63, 85%);
	font-size: calc(1em + 4vw); 
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console