cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="element">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda fugiat vel dolore ducimus explicabo vero rerum laudantium voluptates doloremque perspiciatis quam sunt, illum quod corrupti maxime eligendi aliquid, nostrum aspernatur impedit expedita tenetur! Repudiandae quisquam dolores esse sapiente, commodi incidunt, aspernatur voluptatibus? Illum molestias, ducimus vitae quod! Nam, cum maiores odit repellendus reprehenderit provident sint, tempore! Asperiores, minus voluptatibus veritatis odit nam, commodi magni eligendi! Nobis omnis laborum ut facilis, fugit doloribus labore at voluptas itaque nesciunt quasi libero provident ratione fuga quisquam obcaecati animi blanditiis aliquid eius. Quae dicta nostrum praesentium obcaecati incidunt omnis, numquam cum, atque provident nam!</div>
<div class="element">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda fugiat vel dolore ducimus explicabo vero rerum laudantium voluptates doloremque perspiciatis quam sunt, illum quod corrupti maxime eligendi aliquid, nostrum aspernatur impedit expedita tenetur! Repudiandae quisquam dolores esse sapiente, commodi incidunt, aspernatur voluptatibus? Illum molestias, ducimus vitae quod! Nam, cum maiores odit repellendus reprehenderit provident sint, tempore! Asperiores, minus voluptatibus veritatis odit nam, commodi magni eligendi! Nobis omnis laborum ut facilis, fugit doloribus labore at voluptas itaque nesciunt quasi libero provident ratione fuga quisquam obcaecati animi blanditiis aliquid eius. Quae dicta nostrum praesentium obcaecati incidunt omnis, numquam cum, atque provident nam!</div>
            
          
!
            
              .element
	margin: 0 auto
	
	&:first-child
		background-color: red
	
	&:nth-child(2)
		background-color: green

            
          
!
            
              $(".element").velocity({
	width: "500px",
	opacity: "0.7"
}, {
	duration: 400,
	easing: "swing",
	queue: "",
	begin: function(el){
		console.log(el);
		let dom = el[0];
		console.log(dom);
	},
	progress: undefined,
	complete: undefined, 
	display: undefined, 
	visibility: undefined, 
	loop: false, 
	delay: false, 
	mobileHA: true
});

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console