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

              
                <div class="container">
  <h2 class="text-center text-bold">Bootstrap Div Hover Effect</h2>
        <div class="starter-template">
            <div class="row">
                <div class="col-sm-4">
                    <section class="hover-div"> <img src="http://pngimg.com/uploads/windows_logos/windows_logos_PNG25.png" width="100">
                        <div class="hover-div_inner">
                            <h3><a href="#">Windows</a></h3>
                            <p class="text-center">Windows OS, computer operating system (OS) developed by Microsoft Corporation to run personal computers (PCs). ...</p>
                            <div class="hover-div-lower">
                                <div class="col-xs-6 text-left"><span class="lower-text">Latest</span>windows 10</div>
                                <div class="col-xs-6 text-right"><span class="lower-text">Old</span>windows xp</div>
                            </div>
                        </div>
                    </section>
                </div>
                <div class="col-sm-4">
                    <section class="hover-div"> <img src="https://seeklogo.com/images/M/Mac_OS-logo-EBD2AA67B3-seeklogo.com.png" width="100">
                        <div class="hover-div_inner">
                            <h3><a href="#">Mac</a></h3>
                            <p class="text-center">The family of Macintosh operating systems developed by Apple Inc. includes the graphical user interface-based operating systems..</p>
                            <div class="hover-div-lower">
                                <div class="col-xs-6 text-left"><span class="lower-text">Latest</span>High Sierra</div>
                                <div class="col-xs-6 text-right"><span class="lower-text">Old</span>OS X 10.0</div>
                            </div>
                        </div>
                    </section>
                </div>
                <div class="col-sm-4">
                    <section class="hover-div"> <img src="http://linux4u.jinr.ru/usoft/WWW/www_eit.com/kevinh/art/linux/logo.penguin/linux_logo_2gp.jpg" width="80">
                        <div class="hover-div_inner">
                            <h3><a href="#">Linux</a></h3>
                            <p class="text-center">Linux is a name that broadly denotes a family of free and open-source software operating systems built around the Linux kernel. </p>
                            <div class="hover-div-lower">
                                <div class="col-xs-6 text-left"><span class="lower-text">Linux Mint</span></div>
                                <div class="col-xs-6 text-right"><span class="lower-text">openSUSE</span></div>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </div>
              
            
!

CSS

              
                body {
            font-family: 'Lato', sans-serif;
            padding-top: 50px;
        }
 .starter-template {
            padding: 80px 15px;
            text-align: center;
        }

span.lower-text {
            color: #ffc300;
            font-size: 25px;
            display: block;
        }
        
        .hover-div {
            padding: 20px 20px;
            text-align: center;
            min-height: 350px;
        }
        
        .hover-div {
            border-top: 1px solid #f8f8f8;
            background: #f8f8f8;
            box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
            -webkit-transition: all 0.3s;
            transition: all 0.3s;
            margin: 10px 0px;
        }
        
        .hover-div:hover {
            -webkit-transform: translateY(-20px);
            -ms-transform: translateY(-20px);
            transform: translateY(-20px);
            box-shadow: 0 22px 43px rgba(0, 0, 0, 0.32);
            cursor: pointer;
            border-radius: 5px;
        }
              
            
!

JS

              
                 $(document).ready(function () {
            $('.hover-div').hover(function () {
                $('.hover-div').stop().fadeTo('fast', 0.3);
                $(this).stop().fadeTo('fast', 1);
            }, function () {
                $('.hover-div').stop().fadeTo('fast', 1);
            });
        });
              
            
!
999px

Console