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="container">
	<div class="blobs">
		<div class="blob a">a</div>
		<div class="blob b">b</div>
		<div class="blob c">c</div>
	</div>
</div>
              
            
!

CSS

              
                .container
	background: black
	width: 100%
	height: 100vh
	overflow: hidden
	position: relative
	
	&:after
		content: ''
		width: 100%
		height: 100vh
		background: url('https://i.imgur.com/PsjPzdO.png')
		background-size: 200px
		mix-blend-mode: overlay
		position: absolute
		top: 0
		left: 0
		// opacity: 0
	
	.blobs
		width: 50vh
		height: 50vh
		display: block
		position: absolute
		top: 50%
		left: 50%
		transform: translate(-50%, -50%)
		// filter: contrast(30)
		
		.blob
			width: 100%
			height: 100%
			border-radius: 100%
			position: absolute
			background-color: #FF4D00
			mix-blend-mode: multiply
			filter: blur(80px)
			
			&.a
				background-color: mix(#FF4D00, white, 80%)
				animation: circular2 40s linear infinite
			&.b
				background-color: mix(#FF4D00, white, 50%)
				animation: circular 20s linear infinite
			&.c
				animation: circular 60s linear infinite

$R: 150px				
@keyframes circular
	0%
		transform: translate(0, -$R)
	25%
		transform: translate($R, 0)
	50%
		transform: translate(0, $R)
	75%
		transform: translate(-$R, 0)
	100%
		transform: translate(0, -$R)

@keyframes circular2
	0%
		transform: translate(0, $R)
	25%
		transform: translate(-$R, 0)
	50%
		transform: translate(0, -$R)
	75%
		transform: translate($R, 0)
	100%
		transform: translate(0, $R)
              
            
!

JS

              
                // const b1 = document.querySelector('.blob.a');
// const b2 = document.querySelector('.blob.b');
// const b3 = document.querySelector('.blob.c');

// animate stuff


              
            
!
999px

Console