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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                
<section class="videos">
	<ul class="sharevideo">
		<li><h3>Share</h3></li>
		<li><a href="#"><i class="fa fa-facebook"></i></a></li>
		<li><a href="#"><i class="fa fa-twitter"></i></a></li>
	</ul>
	<a href="#" title="Explore this Video" class="videolink">
		<div class="content">
			<h3>The Raconteurs / These Stones Will Shout</h3>
			<p>Enjoy this song  performed by The Raconteurs that appears on the album Consolers Of The Lonely (2008).</p>
		</div>
	</a>
	<img src="https://picsum.photos/500/300">
</section> 
<h1>Video Widget with Social Media Icons</h1>
              
            
!

CSS

              
                /** === === GOOGLE FONTS === === */

@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700);
@import url(https://fonts.googleapis.com/css?family=Dosis:400,500,600,700);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);


/** === === RESETS === === */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	font-size: 100%;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	margin: 0;
	padding: 0;
}

figure {
	margin: 0;
}

article,aside,details,figcaption,figure,footer,header,hgroup,nav,section {
	display: block;
}

audio[controls],canvas,video {
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

img {
	border: 0;
	-ms-interpolation-mode: bicubic;
}

a:hover {
	text-decoration: none !important;
}

a.no-action-link {
	cursor: default;
}

a {
	color: #FFF;
	text-decoration: none;
	line-height: inherit;
	cursor: pointer;
}

a:hover {
	text-decoration: underline;
}

strong,b {
	font-weight: bold;
	line-height: inherit;
}

small {
	font-size: 60%;
	line-height: inherit;
}

code {
	font-weight: bold;
	background: #ffff99;
}

ul,ol {
	margin-bottom: 17px;
	list-style-position: inside;
}

body {
	font-family: 'Open Sans',Verdana,Geneva,sans-serif;
  line-height: 1.250em;
  webkit-font-smoothing: antialiased;
  background-color: #eee;
	height: 100%;
	background-color: #2c3e50;
}

h1 {
	color: #BAD0E6;
	font-size: 1em;
	text-align: center;
	text-transform: uppercase;
	margin-top: 30px;
}

section {
	width: 500px;
	height: 300px;
	position: relative;
	background-color: #2980b9;
	border: 1px solid #6A99C9;
	margin: 0 auto;
}

section img {
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  padding: 0;
	height: 100%;
}


.videolink {
  position: absolute;
  z-index: 2;
  background-image: url(../images/global/bgtiles.png);
  background: rgba(0, 0, 0, 0.6) none;
  display: block;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
  width: 100%;
  height: 100%;
}

.videolink:hover {
  background: rgba(0, 0, 0, 0.85);
  text-decoration: none;
}

h3 {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.2em;
}

p {
  display: block;
  font-weight: 300;
  line-height: 1.250em;
  font-size: 1.2em;
}


.videos div.content {
  padding: 90px 10px 0 100px;
  background: url(https://i.imgur.com/icB6Ap0.png) no-repeat 30px 130px;
  border: none;
}

.videos .content p {
  margin-top: 70px;
}

.videos .content h3 {
  margin-top: 0;
  padding-top: 85px;	
  -webkit-transition: all 0.3s linear 0.3s;
  -moz-transition: all 0.3s linear 0.3s;
  -o-transition: all 0.3s linear 0.3s;
  transition: all 0.3s linear 0.3s;
  padding-top: 50px;
}


	
	
.videos .content p {
  margin-top: 20px;
  color: rgba(0, 0, 0, 0);
  -webkit-transition: all 0.3s linear 0.3s;
  -moz-transition: all 0.3s linear 0.3s;
  -o-transition: all 0.3s linear 0.3s;
  transition: all 0.3s linear 0.3s;
}

.videos ul.sharevideo {
  display: block;
  width: 150px;
  height: 40px;
  background-color: #FFF;
  margin: 0 0 0 -75px;
  padding: 10px 0 0 0;
  position: absolute;
  top: -50px;
  left: 50%;
  -webkit-transition: all 0.3s linear 0.3s;
  -moz-transition: all 0.3s linear 0.3s;
  -o-transition: all 0.3s linear 0.3s;
  transition: all 0.3s linear 0.3s;
  z-index: 5;
}
	
.videos ul.sharevideo li {
  float: left;
  list-style: none;
  color: #2980b9;
  margin-left: 5px;
}

.videos ul.sharevideo li h3 {
  text-transform: uppercase;
  font-size: 1.125em;
  font-weight: 600;
  font-family: 'Dosis', sans-serif;
  margin: 0 5px;
}

.videos ul.sharevideo li i {
  color: #2980b9;
  font-size: 1.563em;
}

.videos ul.sharevideo li a {
  width: 20px;
  height: 30px;
  display: block;
}

.videos ul.sharevideo li a:hover {
  text-decoration: none;
}

.videos ul.sharevideo li a:hover i {
  color: #8687C6;
}

.videos img {
  opacity: 1;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  transition: all 0.5s linear;
}

.videos:hover ul.sharevideo {
  top: 0;
}

.videos:hover img {
  opacity: 0;
}

.videos a.videolink:hover {
  background:rgba(0,0,0,0);
}

.videos a.videolink:hover .content h3 {
  margin-top: 0;
  padding-top: 20px;
  font-size: 1em;
  margin-bottom: 10px;
}


.videos a.videolink:hover .content p {
  margin-top: 0;
  color: #ffffff;
}

              
            
!

JS

              
                
              
            
!
999px

Console