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

              
                <link href="https://fonts.googleapis.com/css?family=Lato:100,300,400" rel="stylesheet">
<div class="container">  	
	<section id="quick-links">

		<div class="heading">
			<h2>Quick Links</h2>
			<p>What would you like to see next?</p>
			<hr>
		</div>

			<a href="#" class="grid-link">
				<div class="grid-outer">
					<div class="grid-item">
						<div class="grid-overlay" id="grid-overlay-about"></div>
						<div class="grid-item-img" id="grid-about"></div>
						<div class="grid-item-content">
							<h4>About us</h4>
							<p class="light">I am the descriptor</p>
						</div>
					</div>
				</div>
			</a>

			<a href="#" class="grid-link">
				<div class="grid-outer">
					<div class="grid-item">
						<div class="grid-overlay" id="grid-overlay-services"></div>
						<div class="grid-item-img" id="grid-services"></div>
						<div class="grid-item-content">
							<h4>Services</h4>
							<p class="light">I am the descriptor</p>
						</div>
					</div>
				</div>
			</a>

			<a href="#" class="grid-link">
				<div class="grid-outer">
					<div class="grid-item">
						<div class="grid-overlay" id="grid-overlay-pricing"></div>
						<div class="grid-item-img" id="grid-pricing"></div>
						<div class="grid-item-content">
							<h4>Pricing</h4>
							<p class="light">I am the descriptor</p>
						</div>
					</div>
				</div>
			</a>

			<a href="#" class="grid-link">
				<div class="grid-outer">
					<div class="grid-item">
						<div class="grid-overlay" id="grid-overlay-contact"></div>
						<div class="grid-item-img" id="grid-contact"></div>
						<div class="grid-item-content">
							<h4>Contact us</h4>
							<p class="light">I am the descriptor</p>
						</div>
					</div>
				</div>
			</a>

	</section>
</div>

	<!-- Typekit Fonts -->
	<script src="https://use.typekit.net/exc7lfy.js"></script>
              
            
!

CSS

              
                @import "bourbon";
$white:#ffffff;

body {
  font-family:"Lato", sans-serif;
  font-style:normal;
  font-size:17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h4 {
    font-size:1.2em;
    font-weight:300;
    letter-spacing:1px;
}

p {
	font-weight:400;
	letter-spacing:2px;
	font-size:1.1em;
}

.heading {
	text-align:center;
	margin:50px 0;
	
	h2 {
		text-transform:uppercase;
		font-weight:400;
		letter-spacing:8px;
	}

	hr {
		border-top:1px solid #d3d3d3;
		width:10%;
		margin:0 auto;
		margin-top:30px;
	}
}

.container {
	width:70%;
	margin:0 auto;
}

section#quick-links {
	margin-bottom:50px;
	
    a.grid-link {
        height:300px;
        position:relative;
        color:$white;

        .grid-outer {
            height:100%;
            padding:5px;
					  @include calc(width, "50% - 10px");
					  float:left;

            .grid-item {
                height:300px;
                position:relative;
                width:100%;
                overflow:hidden;

                .grid-overlay {
                    @include position(absolute, 0 0 0 0);
                    background:rgba(0,0,0,.25);
                    @include transition(all 600ms ease);
                    z-index:1;
										//prevent css filter and css blur performance lag
										-webkit-backface-visibility: hidden;
										-webkit-perspective: 1000;
										-webkit-transform: translate3d(0,0,0);
										-webkit-transform: translateZ(0);
										backface-visibility: hidden;
										perspective: 1000;
										transform: translate3d(0,0,0);
										transform: translateZ(0);
                }

                .grid-item-img {
                    height:100%;
                    width:100%;
                    @include transition(all 600ms ease);
									
									&#grid-about {
										background:url(https://unsplash.it/800/400) no-repeat center center;
										background-size:cover;
									}
									
									&#grid-services {
										background:url(https://unsplash.it/800/410) no-repeat center center;
										background-size:cover;
									}
									
									&#grid-pricing {
										background:url(https://unsplash.it/800/420) no-repeat center center;
										background-size:cover;
									}
									
									&#grid-contact {
										background:url(https://unsplash.it/800/430) no-repeat center center;
										background-size:cover;
									}
                }

                .grid-item-content {
                    text-align:center;
										@include transform(translate(-50%, -50%));
										@include position(absolute, 50% null null 50%);
                    z-index:2;

                    h4,
                    p {
                        color:$white;
                        text-decoration:none;
												@include transition(all 600ms ease);
                    }

                    h4 {
                        text-transform:uppercase;
                        letter-spacing:4px;
                        border:3px solid transparent;
                        padding:15px 0;
                        margin-bottom:-20px;
                    }

                    p {
												margin-top:-20px;
                        opacity:0;
                    }
                }
            }
        }

        &:hover {
            text-decoration:none;

            .grid-outer {
                .grid-item {
                    .grid-overlay{
												&#grid-overlay-about {
													background:linear-gradient(-45deg, rgba(255,138,111,.85) 0%,rgba(5,224,216,.7) 100%);
												}
											
												&#grid-overlay-services {
													background:linear-gradient(-45deg, rgba(0,201,255,.75) 0%,rgba(146,254,157,.85) 100%);
												}
											
											&#grid-overlay-pricing {
													background:linear-gradient(-45deg, rgba(52,148,230,.85) 0%,rgba(236,110,173,.7) 100%);
												}
											
											&#grid-overlay-contact {
													background:linear-gradient(-45deg, rgba(237,66,100,.85) 0%,rgba(255,237,188,.7) 100%);
											}                      
                    }
									
                    .grid-item-img {
                        @include transform(scale(1.1));
                        @include filter(blur(5px));
                    }
									
                    .grid-item-content {
                        h4 {
                            margin-bottom:10px;
														border-bottom:1px solid $white;
														border-top:1px solid $white;
														padding:15px 30px;
                        }

                        p {
                            margin-top:10px;
                            opacity:1;
                            color:$white;
                            font-size:1.05em;
                        }
                    }
                }
            }
        }
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console