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

              
                <header>
	<h1 class="title">Outdoor Run</h1>
	<h2 class="time">10:09</h2>
</header>
<div id="owl-demo" class="owl-carousel owl-theme">
 <section class="item">
	 <h1>17:56<small><sup>.56</sup></small></h1>
	  <h2 class="yellow">Elapsed Time</h2>
	</section>
  <section class="item">
	  <h1>9'03"<small><sup> MI</sup></small></h1>
	  <h2 class="teal">Pace</h2>
	</section>
  <section class="item">
	  <h1>2.35<small><sup> MI</sup></small></h1>
	  <h2 class="blue">Distance</h2>
	</section>
  
	<section class="item">
		<h1>451<small><sup> CAL</sup></small></h1>
	  <h2 class='pink'>Calories</h2>
	</section>
			
	<section class="item">
		<h1>120<small><sup> BPM</sup></small></h1>
		<h2 class='red'>Heart Rate</h2>
	</section>
 
</div>
              
            
!

CSS

              
                //Apple Watch Colors
// https://developer.apple.com/watch/human-interface-guidelines/specifications/
$pink: rgba(250,17,79,1);
$red: rgba(255,59,48,1);
$orange: rgba(255,149,0,1);
$yellow: rgba(255,230,32,1);
$green: rgba(4,222,113,1);
$teal: rgba(0,245,234,1);
$blue-light: rgba(90,200,250,1);
$blue: rgba(32,148,250,1);
$purple: rgba(120,122,255,1);
$white: rgba(242,244,255,1);
//color classes
.pink{ color:$pink};
.red{ color:$red};
.orange{ color:$orange};
.yellow{ color:$yellow};
.green{ color:$green};
.teal{ color:$teal};
.blue-light{ color:$blue-light};
.blue{ color:$blue};
.purple{ color:$purple};
	
	
body, h1, h2{
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
   font-weight: 300;
	background: #000;
	color: $white;
	margin: 0;
	padding: 0;
}
body{
	width: 300px;
	margin: 1em auto;
}
.title{
	font-size: 35px;
	color: rgba(255,255,255,0.5);
	margin-bottom: 1em;
}
.time{
	text-align: right;
	font-size: 60px;
	margin-bottom: 1em;
}
.item{
	height: 130px;
	position: relative;
}


.active{
	h1{
		font-size: 90px;
		line-height: 1;
		position: absolute;
		top: 0;
		//border: 1px solid white;
		overflow: hidden;
		 -webkit-animation: h1-shrink 1s ; /* Chrome, Safari, Opera */ 
		 animation: h1-shrink 1s ;
	}

	/* Chrome, Safari, Opera */ 
	@-webkit-keyframes h1-shrink {
		 0%, 50%   {
			 max-height: 0;
			 top: -100%;
		 }
		 100% {
			 max-height: 120px;
			 top: 0;
		 }
	}

	/* Standard syntax */
	@keyframes h1-shrink {
		 0%, 50%   {
			 top: -100%;
		 }
		 100% {
			 top: 0;
		 }
	}



	h2 {
		
		position: absolute;
		top: 65%;
		font-size: 40px;
		line-height: 1;
		 -webkit-animation: h2-grow 1s ; /* Chrome, Safari, Opera */ 
		 animation: h2-grow  1s ;
	}

	/* Chrome, Safari, Opera */ 
	@-webkit-keyframes h2-grow  {
		 0%, 50%   {
			 font-size: 50px;
			top: 0%;
		 }
		 100% {
			 font-size: 40px;
		 	top: 65%;
		 }
	}

	/* Standard syntax */
	@keyframes h2-grow  {
		 0%, 50%   {
			 font-size: 50px;
			top: 0%;
		 }
		 100% {
			 font-size: 40px;
		 	top: 65%;
		 }
	}
}



	
	
	
	


//Owl Styles ----------
#owl-demo .item img{
    display: block;
    width: 100%;
    height: auto;
}

/* 
 * 	Core Owl Carousel CSS File
 *	v1.3.3
 */

/* clearfix */
.owl-carousel .owl-wrapper:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
/* display none until init */
.owl-carousel{
	display: none;
	position: relative;
	width: 100%;
	-ms-touch-action: pan-y;
}
.owl-carousel .owl-wrapper{
	display: none;
	position: relative;
	-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-wrapper-outer{
	overflow: hidden;
	position: relative;
	width: 100%;
}
.owl-carousel .owl-wrapper-outer.autoHeight{
	-webkit-transition: height 500ms ease-in-out;
	-moz-transition: height 500ms ease-in-out;
	-ms-transition: height 500ms ease-in-out;
	-o-transition: height 500ms ease-in-out;
	transition: height 500ms ease-in-out;
}
	
.owl-carousel .owl-item{
	float: left;
}
.owl-controls .owl-page,
.owl-controls .owl-buttons div{
	cursor: pointer;
}
.owl-controls {
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* mouse grab icon */
.grabbing { 
    cursor:url(grabbing.png) 8 8, move;
}

/* fix */
.owl-carousel  .owl-wrapper,
.owl-carousel  .owl-item{
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility:    hidden;
	-ms-backface-visibility:     hidden;
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -ms-transform: translate3d(0,0,0);
}


/* Styling Pagination*/

.owl-theme .owl-controls .owl-page{
	display: inline-block;
	zoom: 1;
	*display: inline;/*IE7 life-saver */
}
.owl-theme .owl-controls .owl-page span{
	display: block;
	width: 12px;
	height: 12px;
	margin: 5px 7px;
	filter: Alpha(Opacity=50);/*IE7 fix*/
	opacity: 0.5;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
	background: #869791;
}

.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
	filter: Alpha(Opacity=100);/*IE7 fix*/
	opacity: 1;
}

/* If PaginationNumbers is true */
.owl-pagination{
	text-align: center;
	padding: 1em 0;
}
.owl-theme .owl-controls .owl-page span.owl-numbers{
	height: auto;
	width: auto;
	color: #FFF;
	padding: 2px 10px;
	font-size: 12px;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	
}

              
            
!

JS

              
                $(document).ready(function() {
 
  $("#owl-demo").owlCarousel({
 
      navigation : false, // Show next and prev buttons
      slideSpeed : 300,
      paginationSpeed : 400,
	   pagination: true,
      singleItem:true,
	   addClassActive: true,
	   rewindNav: false,
 
  });
 
});
              
            
!
999px

Console