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

              
                <body class="hm-gradient">
    
    <main>
        
        <!--MDB Hover Effects-->
        <div class="container mt-4">

            <div class="text-center darken-grey-text mb-4">
                <h1 class="font-bold mt-4 mb-3 h5">Built with Material Design for Bootstrap 4</h1>
                <a class="btn btn-danger btn-md" href="https://mdbootstrap.com/material-design-for-bootstrap/" target="_blank">Free download<i class="fa fa-download pl-2"></i></a>
            </div>
            
            <!-- Grid row -->
            <div class="row pb-3">
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-12 mb-4">
            
                    <div class="view overlay hm-black-strong">
                        <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (1).jpg" class="img-fluid" alt="sample image">
                        <div class="mask flex-center">
                            <p class="white-text">Strong overlay</p>
                        </div>
                    </div>
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <div class="view overlay hm-white-light">
                        <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (133).jpg" class="img-fluid" alt="sample image">
                        <div class="mask flex-center">
                            <p class="white-text">Light overlay</p>
                        </div>
                    </div>
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <div class="view overlay hm-yellow-slight">
                        <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (110).jpg" class="img-fluid" alt="sample image">
                        <div class="mask flex-center">
                            <p class="white-text">Super light overlay</p>
                        </div>
                    </div>
            
                </div>
                <!-- Grid column -->
            
            </div>
            <!-- Grid row -->

            <!-- Grid row -->
            <div class="row">
            
                <!-- Grid column -->
                <div class="col-md-6 mb-4">
            
                    <div class="view overlay hm-zoom">
                        <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img (119).jpg" class="img-fluid" alt="sample image">
                        <div class="mask flex-center">
                            <p class="white-text">Zoom effect</p>
                        </div>
                    </div>
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-md-6 mb-4">
            
                    <div class="view overlay hoverable">
                        <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img (112).jpg" class="img-fluid" alt="sample image">
                        <div class="mask flex-center">
                            <p class="white-text">Shadow effect</p>
                        </div>
                    </div>
            
                </div>
                <!-- Grid column -->
            
            </div>
            <!-- Grid row -->
          
            <hr class="my-4">
          
            <div class="text-center darken-grey-text mb-4">
                <h3 class="font-bold mb-3">Here you can find more Hover Effects:</h3>
                <a class="btn btn-danger" href="https://mdbootstrap.com/css/hover-effects/" target="_blank">Bootstrap Hover Effects</a>
            </div>

        </div>
        <!--MDB Hover Effects-->
      
    </main>
  
</body>
              
            
!

CSS

              
                .hm-gradient {
    background-image: linear-gradient(to top, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
}
.darken-grey-text {
    color: #2E2E2E;
}
              
            
!

JS

              
                
              
            
!
999px

Console