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

              
                <ul>
	<li>
		<div class="icon svg-holder">
			<div>
				<svg id="icon-lighthouse" xmlns="http://www.w3.org/2000/svg" width="88" height="88" viewBox="0 0 88 88">
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M26.4 26.1h28v5.7h-28z"/>
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M23.7 80.3h33.4V86H23.7z"/>
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M30.7 13.3H50V26H30.7z"/>
					<path fill="none" fill="#F4F8FA" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M52.9 13.3H27.8L40.4 6z"/>
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M12.1 86h56.6"/>
					<g>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M54.5 80.3h-28l4.6-48.5h18.8z"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M26.3 80.1l25.5-25.5"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M28.3 61.3l22.2-22.2"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M30.2 42.7l10.9-10.8"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M42.7 80.4l10.8-10.8"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M44.7 80.3h-8.4V69.5c0-2.3 1.9-4.2 4.2-4.2h0c2.3 0 4.2 1.9 4.2 4.2v10.8z"/>
					</g>
					<g id="rays-r">
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M59.4 15.2l13.9-5.1"/>
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M59.4 19.7h20"/>
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M59.4 24.2l13.9 5.1"/>
					</g>
					<g id="rays-l">
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M22.1 15.2l-14-5.1"/>
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M22.1 19.7h-20"/>
						<path stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M22.1 24.2l-14 5.1"/>
					</g>
				</svg>
			</div>
		</div>
	</li>
	<li>
		<div class="icon svg-holder">
			<div>
				<svg id="icon-target" xmlns="http://www.w3.org/2000/svg" width="88" height="88" viewBox="0 0 88 88">
					<g id="target">
						<ellipse cx="37.9" cy="52.1" fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" rx="28.7" ry="38.3" transform="rotate(-45.001 37.862 52.05)"/>
						<ellipse cx="39.8" cy="50.1" fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" rx="18" ry="23.9" transform="rotate(-45.001 39.778 50.136)"/>
						<ellipse cx="41.7" cy="48.2" fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" rx="7.2" ry="9.6" transform="rotate(-45.001 41.693 48.22)"/>
					</g>
					<g id="arrow">
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M43.6 46.3L62 28"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M69.4 27.1L62 28l.8-7.4L77.4 6.1l-.3 6.8 6.9-.3z"/>
					</g>
				</svg>
			</div>
		</div>
	</li>
	<li>
		<div class="icon svg-holder">
			<div>
				<svg id="icon-hand" xmlns="http://www.w3.org/2000/svg" width="88" height="88" viewBox="0 0 88 88">
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M4 70.5l3.9-3.9c5.8-5.8 13.7-9.1 22-9.1H53c.9 0 1.7.7 1.7 1.7v1.9c0 3.4-2.8 6.2-6.2 6.2H29.3"/>
					<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M18.5 86l7.1-7.1c1.8-1.8 4.2-2.8 6.7-2.8H51c3.6 0 7-1.4 9.5-3.9l22.9-22.9c.9-.9.9-2.3 0-3.2v0c-2.4-2.4-6.3-2.4-8.7 0L61.1 59.6"/>
					<g id="star-4">
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M48.9 7.2V16"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M44.5 11.6h8.8"/>
					</g>
					<g id="star-3">
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M32.6 42.9v5.6"/>
						<path fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M29.8 45.7h5.6"/>
					</g>
					<path id="star-2" fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M54.4 31.4l3.4-8.6 3.4 8.6 8.6 3.4-8.6 3.4-3.4 8.6-3.4-8.6-8.6-3.4z"/>
					<path id="star-1" fill="none" stroke="#0F7E80" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="3" d="M18.5 17.5L23 6l4.6 11.5L39 22l-11.4 4.6L23 38l-4.5-11.4L7 22z"/>
				</svg>
			</div>
		</div>
	</li>
</ul>
              
            
!

CSS

              
                @mixin breakpoint($point) {
	@media (max-width: $point + "px") { @content ; }
}

ul {
	margin: 0; padding: 3em; box-sizing: border-box;
	list-style: none;
	width: 100%; min-height: 100vh;
	display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center;
	li {
		margin: 0; padding: 0; box-sizing: border-box;
		width: calc(33% - 1.5rem);
		position: relative;
		&:hover {
			#icon-lighthouse {
				#rays-r path:nth-of-type(1), #rays-r path:nth-of-type(3), #rays-l path:nth-of-type(1), #rays-l path:nth-of-type(3) {
					stroke-dasharray: 15; /*stroke-dashoffset: 15;*/
					animation: 
						ray-beam-in-out-sm 	.5s 	linear  	forwards	0s,
						ray-beam-in-sm 	.35s ease-out  forwards		.75s
						;
				}
				#rays-r path:nth-of-type(2), #rays-l path:nth-of-type(2) {
					stroke-dasharray: 20; /*stroke-dashoffset: 20;*/
					animation: 
						ray-beam-in-out-lg 	.5s 	linear  	forwards	0s,
						ray-beam-in-lg		.35s ease-out  forwards		.75s,
						;
				}
				@keyframes ray-beam-in-out-sm {
					0% 	{stroke-dashoffset: 15;}
					100%	{stroke-dashoffset: -15;}
				}
				@keyframes ray-beam-in-sm {
					0% 	{stroke-dashoffset: 15;}
					100%	{stroke-dashoffset: 0;}
				}
				@keyframes ray-beam-in-out-lg {
					0% 	{stroke-dashoffset: 20;}
					100%	{stroke-dashoffset: -20;}
				}
				@keyframes ray-beam-in-lg {
					0% 	{stroke-dashoffset: 20;}
					100%	{stroke-dashoffset: 0;}
				}
			}

			#icon-target {
				#arrow {
					transform-origin: center center;
					animation:
						arrow-fire	.6s	ease-in	 0s
						;
				}
				@keyframes arrow-fire {
					0%	{transform: translate(60px,-60px); opacity: 0;}
					10%	{opacity: 1;}
					70%	{transform: translate(0,0);}
					75%	{transform: rotate(-8deg);}
					85%	{transform: rotate(7deg);}
					93%	{transform: rotate(-4deg);}
					100%	{transform: rotate(0deg);}
				}
			}

			#icon-hand {
				#star-1 {
					transform-origin: 24px 22px;
					transform: translateY(30px) rotate(-140deg) scale(0); opacity: 0;
					animation:
						sparkle 	1s	cubic-bezier(.13,.32,.12,1) 	forwards	0s
						;
				}
				#star-2 {
					transform-origin: 58px 35px;
					transform: translateY(20px) rotate(80deg) scale(0); opacity: 0;
					animation:
						sparkle 	1s	cubic-bezier(.13,.32,.12,1) 	forwards	.2s
						;
				}
				#star-4 {
					transform-origin: 49px 11.5px; 
					transform: translateY(30px) rotate(-40deg) scale(0); opacity: 0;
					animation:
						sparkle 	1.2s	cubic-bezier(.13,.32,.12,1) 	forwards	.2s
						;
				}
				#star-3 {
					transform-origin: 32.5px 45.5px;
					transform: translateY(15px) rotate(30deg) scale(0); opacity: 0;
					animation:
						sparkle 	1.2s	cubic-bezier(.13,.32,.12,1) 	forwards	.15s
						;
				}
				@keyframes sparkle {
					0%	{}
					50%	{opacity: 1;}
					100%	{transform: translateY(0) rotate(0deg) scale(1); opacity: 1;}
				}
			}

		}
		.icon {
			margin: 0 auto;
			width: 100%; max-width: 15em;
		}
	}
	@include breakpoint(600) {
		flex-flow: column; justify-content: space-between; align-items: stretch;
		li {
			margin: 0;
			width: auto;
			&:last-of-type {margin-bottom: 0;}
			.icon {
				max-width: 8em;
			}
		}
	}
}

.svg-holder {
	div {
		position: relative;
		width: 100%; height: 0;
		padding-bottom: 100%;
		svg {overflow: visible;
			position: absolute; top: 0; left: 0;
			width: 100%; height: 100%;
		}
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console