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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <svg xmlns="http://www.w3.org/2000/svg" style="background:silver">
	<filter id="steel">
		<feTurbulence baseFrequency="0.09 0.00001" numOctaves="3" seed="53"></feTurbulence>
		<feColorMatrix values="4.4 4 -3.2 1.9 -0.8 2.3 -4.1 2 -3.3 4.6 -1.3 2 4.7 0 3.9 -3.9 0.6 -1.1 0.5 0.5"></feColorMatrix>
		<feDiffuseLighting lighting-color="silver" surfaceScale="1.5">
			<feDistantLight azimuth="120" elevation="90"></feDistantLight>
		</feDiffuseLighting>
		<feComposite operator="in" in2="SourceGraphic" />
	</filter>
	<filter id="dropshadow" height="120%">
		<feGaussianBlur in="SourceAlpha" stdDeviation="5" />
		<feComponentTransfer>
			<feFuncA type="linear" slope="0.5" />
			<!-- slope is the opacity of the shadow -->
		</feComponentTransfer>
		<feMerge>
			<feMergeNode />
			<feMergeNode in="SourceGraphic" />
		</feMerge>
	</filter>
	<pattern id="gear1" width="100" height="100" patternUnits="userSpaceOnUse">
		<g filter="url(#dropshadow)">
			<!-- center gear -->
			<path d="M 65 50 L 64 56 L 72 63 L 75 74 L 58 84 L 50 75 L 48 65 L 42 63 L 38 59 L 28 62 L 16 60 L 16 40 L 28 37 L 38 41 L 42 37 L 48 35 L 50 25 L 58 16 L 75 26 L 72 38 L 64 44 Z M 46 50 A 1 1 90 0 0 54 50 A 1 1 90 0 0 46 50" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 50 50" to="360 50 50" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- left gear -->
			<path d="M 15 50 L 14 56 L 22 63 L 25 74 L 8 84 L 0 75 L -2 65 L -8 63 L -12 59 L -22 62 L -34 60 L -34 40 L -22 37 L -12 41 L -8 37 L -2 35 L 0 25 L 8 16 L 25 26 L 22 38 L 14 44 Z M -4 50 A 1 1 90 0 0 4 50 A 1 1 90 0 0 -4 50" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 0 50" to="-360 0 50" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- right gear -->
			<path d="M 115 50 L 114 56 L 122 63 L 125 74 L 108 84 L 100 75 L 98 65 L 92 63 L 88 59 L 78 62 L 66 60 L 66 40 L 78 37 L 88 41 L 92 37 L 98 35 L 100 25 L 108 16 L 125 26 L 122 38 L 114 44 Z M 96 50 A 1 1 90 0 0 104 50 A 1 1 90 0 0 96 50" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 100 50" to="-360 100 50" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- top gear -->
			<path d="M 65 0 L 64 6 L 72 13 L 75 24 L 58 34 L 50 25 L 48 15 L 42 13 L 38 9 L 28 12 L 16 10 L 16 -10 L 28 -13 L 38 -9 L 42 -13 L 48 -15 L 50 -25 L 58 -34 L 75 -24 L 72 -12 L 64 -6 Z M 46 0 A 1 1 90 0 0 54 0 A 1 1 90 0 0 46 0" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="60 50 0" to="-300 50 0" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- bottom gear -->
			<path d="M 65 100 L 64 106 L 72 113 L 75 124 L 58 134 L 50 125 L 48 115 L 42 113 L 38 109 L 28 112 L 16 110 L 16 90 L 28 87 L 38 91 L 42 87 L 48 85 L 50 75 L 58 66 L 75 76 L 72 88 L 64 94 Z M 46 100 A 1 1 90 0 0 54 100 A 1 1 90 0 0 46 100" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="60 50 100" to="-300 50 100" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- top right gear -->
			<path d="M 115 0 L 114 6 L 122 13 L 125 24 L 108 34 L 100 25 L 98 15 L 92 13 L 88 9 L 78 12 L 66 10 L 66 -10 L 78 -13 L 88 -9 L 92 -13 L 98 -15 L 100 -25 L 108 -34 L 125 -24 L 122 -12 L 114 -6 Z M 96 0 A 1 1 90 0 0 104 0 A 1 1 90 0 0 96 0" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-60 100 0" to="300 100 0" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- top left gear -->
			<path d="M 15 0 L 14 6 L 22 13 L 25 24 L 8 34 L 0 25 L -2 15 L -8 13 L -12 9 L -22 12 L -34 10 L -34 -10 L -22 -13 L -12 -9 L -8 -13 L -2 -15 L 0 -25 L 8 -34 L 25 -24 L 22 -12 L 14 -6 Z M -4 0 A 1 1 90 0 0 4 0 A 1 1 90 0 0 -4 0" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-60 0 0" to="300 0 0" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- bottom right gear -->
			<path d="M 115 100 L 114 106 L 122 113 L 125 124 L 108 134 L 100 125 L 98 115 L 92 113 L 88 109 L 78 112 L 66 110 L 66 90 L 78 87 L 88 91 L 92 87 L 98 85 L 100 75 L 108 66 L 125 76 L 122 88 L 114 94 Z M 96 100 A 1 1 90 0 0 104 100 A 1 1 90 0 0 96 100" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-60 100 100" to="300 100 100" dur="20s" repeatCount="indefinite" />
			</path>
			<!-- bottom left gear -->
			<path d="M 15 100 L 14 106 L 22 113 L 25 124 L 8 134 L 0 125 L -2 115 L -8 113 L -12 109 L -22 112 L -34 110 L -34 90 L -22 87 L -12 91 L -8 87 L -2 85 L 0 75 L 8 66 L 25 76 L 22 88 L 14 94 Z M -4 100 A 1 1 90 0 0 4 100 A 1 1 90 0 0 -4 100" filter="url(#steel)" fill-rule="evenodd">
				<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-60 0 100" to="300 0 100" dur="20s" repeatCount="indefinite" />
			</path>
		</g>
	</pattern>
	<rect width="100%" height="100%" fill="url(#gear1)" />
</svg>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console