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='wrap'>
	<input type='range'/>
</div>
<p>Fruitcake tiramisu sesame snaps toffee apple pie pastry caramels brownie. Dragée caramels carrot cake icing marshmallow sweet roll marshmallow toffee icing. Caramels fruitcake tiramisu danish caramels biscuit dessert. Liquorice cake cheesecake jelly dessert marshmallow croissant sweet brownie.</p>
<p>Tiramisu icing topping ice cream cupcake toffee fruitcake marzipan. Pie bear claw chocolate chocolate cake jelly beans soufflé candy canes jujubes. Ice cream cake pudding macaroon bonbon oat cake jujubes. Ice cream chocolate danish cake.</p>
<p>Donut sweet roll jelly beans chocolate cake. Tootsie roll marshmallow liquorice chocolate. Tiramisu pie oat cake caramels soufflé marshmallow cake. Brownie donut halvah.</p>
<p>Jelly-o candy halvah tootsie roll liquorice pastry jelly beans sugar plum. Dessert halvah tiramisu gummies jelly beans candy canes. Marshmallow tiramisu cheesecake caramels ice cream caramels. Cheesecake tootsie roll chocolate cake halvah tiramisu candy muffin.</p>
<p>Wafer donut chocolate cake. Topping bonbon wafer jelly beans gummi bears gingerbread cake. Tiramisu powder jelly beans gummies carrot cake pastry candy cake.</p>
<p>Fruitcake tiramisu sesame snaps toffee apple pie pastry caramels brownie. Dragée caramels carrot cake icing marshmallow sweet roll marshmallow toffee icing. Caramels fruitcake tiramisu danish caramels biscuit dessert. Liquorice cake cheesecake jelly dessert marshmallow croissant sweet brownie.</p>
<p>Tiramisu icing topping ice cream cupcake toffee fruitcake marzipan. Pie bear claw chocolate chocolate cake jelly beans soufflé candy canes jujubes. Ice cream cake pudding macaroon bonbon oat cake jujubes. Ice cream chocolate danish cake.</p>
<p>Donut sweet roll jelly beans chocolate cake. Tootsie roll marshmallow liquorice chocolate. Tiramisu pie oat cake caramels soufflé marshmallow cake. Brownie donut halvah.</p>
<p>Jelly-o candy halvah tootsie roll liquorice pastry jelly beans sugar plum. Dessert halvah tiramisu gummies jelly beans candy canes. Marshmallow tiramisu cheesecake caramels ice cream caramels. Cheesecake tootsie roll chocolate cake halvah tiramisu candy muffin.</p>
<p>Wafer donut chocolate cake. Topping bonbon wafer jelly beans gummi bears gingerbread cake. Tiramisu powder jelly beans gummies carrot cake pastry candy cake.</p>
              
            
!

CSS

              
                $track-w: 12.5em;
$track-h: .25em;
$thumb-d: 1.5em;

@mixin track() {
	box-sizing: border-box;
	border: none;
	width: $track-w; height: $track-h;
	background: #ccc;
}

@mixin thumb() {
	box-sizing: border-box;
	border: none;
	width: $thumb-d; height: $thumb-d;
	border-radius: 50%;
	background: #f90;
}

.wrap {
	float: left;
	position: relative;
	margin: 0 .5em .5em;
	padding: .5em;
	height: $track-w; width: $thumb-d;
}

[type='range'] {
	&, &::-webkit-slider-thumb {
		-webkit-appearance: none;
	}
	
	position: absolute;
	top: 50%; left: 50%;
	margin: 0;
	padding: 0;
	width: $track-w; height: $thumb-d;
	transform: translate(-50%, -50%) 
		rotate(-90deg);
	background: transparent;
	font: 1em/1 arial, sans-serif;
	
	&::-webkit-slider-runnable-track {
		@include track
	}
	&::-moz-range-track { @include track }
	&::-ms-track { @include track }
	
	&::-webkit-slider-thumb {
		margin-top: .5*($track-h - $thumb-d);
		@include thumb
	}
	&::-moz-range-thumb { @include thumb }
	&::-ms-thumb {
		margin-top: 0;
		@include thumb
	}
	
	&::-ms-tooltip { display: none }
}
              
            
!

JS

              
                
              
            
!
999px

Console