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

              
                <!-- add aria-labelledby="" with the id's of both the title and desc -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 89.295 81.03" role="img" aria-labelledby="titleID holidayWishes">
	<title id="titleID">Code Bean Coffee</title>
	<desc id="holidayWishes">Wishes you a Happy Holiday</desc>
	<defs>
		<linearGradient id="grad1" x1="0" x2="0" y1="0" y2="1">
			<stop class="stop1" offset="33%" stop-color="black" />
			<stop class="stop2" offset="40%" stop-color="red" />
			<stop class="stop3" offset="60%" stop-color="purple" />
			<stop class="stop4" offset="95%" stop-color="blue" />
			<stop class="stop5" offset="100%" stop-color="black" />
		</linearGradient>
	</defs>
	<path id="code-bean" d="M13.96 17.596a4.107 4.107 0 0 1 .422 2.316 3.254 3.254 0 0 1-1.117 2.018 3.325 3.325 0 0 1-1.567.859 3.508 3.508 0 0 1-1.614-.038 4.793 4.793 0 0 1-1.567-.75 9.183 9.183 0 0 1-2.555-2.8 4.868 4.868 0 0 1-.608-1.633 3.5 3.5 0 0 1 .1-1.617 3.333 3.333 0 0 1 1-1.483 3.426 3.426 0 0 1 1.361-.807 2.015 2.015 0 0 1 1.362.083l-.767-.841.647-.59 2.161 2.366-.647.591a2.441 2.441 0 0 0-.805-.588 2.516 2.516 0 0 0-.933-.228 2.4 2.4 0 0 0-.945.149 2.5 2.5 0 0 0-.844.511 2.2 2.2 0 0 0-.718 1.162 2.737 2.737 0 0 0 .045 1.288 4.67 4.67 0 0 0 .579 1.3 8.541 8.541 0 0 0 .9 1.183 8.442 8.442 0 0 0 1.093 1 4.478 4.478 0 0 0 1.232.689 2.808 2.808 0 0 0 1.273.157 2.185 2.185 0 0 0 1.225-.607q1.349-1.232.39-3.347Zm6.907-5.688a4.078 4.078 0 0 1 .562 1.4 3.2 3.2 0 0 1-.027 1.361 3.48 3.48 0 0 1-.589 1.242 4.292 4.292 0 0 1-2.544 1.58 3.448 3.448 0 0 1-1.375-.023 3.205 3.205 0 0 1-1.232-.578 4.063 4.063 0 0 1-1-1.123 4.125 4.125 0 0 1-.56-1.392 3.268 3.268 0 0 1 .012-1.383 3.461 3.461 0 0 1 .585-1.253 4.222 4.222 0 0 1 2.544-1.579 3.423 3.423 0 0 1 1.381.032 3.223 3.223 0 0 1 1.245.6 4.146 4.146 0 0 1 .998 1.116Zm-.869.545a3.33 3.33 0 0 0-.733-.845 2.586 2.586 0 0 0-.908-.478 2.464 2.464 0 0 0-1.025-.067 2.91 2.91 0 0 0-1.875 1.166 2.347 2.347 0 0 0-.388.944 2.621 2.621 0 0 0 .033 1.023 3.528 3.528 0 0 0 1.163 1.873 2.456 2.456 0 0 0 .895.469 2.369 2.369 0 0 0 1.006.053 3.016 3.016 0 0 0 1.876-1.165 2.447 2.447 0 0 0 .4-.93 2.418 2.418 0 0 0-.017-1.015 3.332 3.332 0 0 0-.427-1.03Zm9.826-.618-.969.379-.234-.6a3.22 3.22 0 0 1-.681.917 2.905 2.905 0 0 1-.93.589 3.911 3.911 0 0 1-1.483.291 3.121 3.121 0 0 1-1.308-.3 3.338 3.338 0 0 1-1.069-.824 4.594 4.594 0 0 1-1.072-2.736 3.3 3.3 0 0 1 .225-1.333 3.182 3.182 0 0 1 .759-1.11 3.824 3.824 0 0 1 1.286-.795 3.009 3.009 0 0 1 1.078-.209 3.056 3.056 0 0 1 1.119.2l-.927-2.37-1.3.506-.319-.815 2.267-.887Zm-2.916-4.6a2.713 2.713 0 0 0-1.15-.3 2.84 2.84 0 0 0-1.106.2 2.514 2.514 0 0 0-.925.595 2.2 2.2 0 0 0-.513.834 2.555 2.555 0 0 0-.123.991 3.875 3.875 0 0 0 .8 2.054 2.535 2.535 0 0 0 .762.645 2.219 2.219 0 0 0 .942.266 2.542 2.542 0 0 0 1.085-.192 2.754 2.754 0 0 0 1.58-1.622Zm4.903.716a2.71 2.71 0 0 0 1.128 1.581 2.526 2.526 0 0 0 1.9.3 2.981 2.981 0 0 0 1.313-.582 2.347 2.347 0 0 0 .753-.961l.8.349a3.635 3.635 0 0 1-1.016 1.336 3.786 3.786 0 0 1-1.683.717 3.963 3.963 0 0 1-1.506.017 3.473 3.473 0 0 1-1.286-.518 3.364 3.364 0 0 1-.964-.984 3.92 3.92 0 0 1-.545-1.4 4.231 4.231 0 0 1-.039-1.483 3.319 3.319 0 0 1 .47-1.273 3.215 3.215 0 0 1 .954-.962 3.835 3.835 0 0 1 1.4-.548 3.788 3.788 0 0 1 1.585 0 3.085 3.085 0 0 1 1.249.6 3.377 3.377 0 0 1 .885 1.111 5.8 5.8 0 0 1 .518 1.554Zm4.684-1.8a2.662 2.662 0 0 0-1.138-1.512 2.418 2.418 0 0 0-1.7-.241 2.53 2.53 0 0 0-.867.33 2.274 2.274 0 0 0-.64.591 2.613 2.613 0 0 0-.393.809 2.693 2.693 0 0 0-.1.958Zm18.692 1.868a2.473 2.473 0 0 1-1.257 1.906 4.145 4.145 0 0 1-2.656.237l-3.067-.543L49.907 0l2.9.513a7.2 7.2 0 0 1 1.169.309 3.089 3.089 0 0 1 .978.557 2.163 2.163 0 0 1 .613.888 2.481 2.481 0 0 1 .064 1.316 2.061 2.061 0 0 1-1.853 1.776 2.317 2.317 0 0 1 1.409 2.66Zm-1.009-.178a1.674 1.674 0 0 0-.388-1.563 3.083 3.083 0 0 0-1.693-.767l-2.057-.36-.67 3.789 2.056.363a2.97 2.97 0 0 0 1.857-.161 1.671 1.671 0 0 0 .895-1.301Zm.444-4.438a1.508 1.508 0 0 0-.067-.87 1.465 1.465 0 0 0-.457-.594 2.407 2.407 0 0 0-.688-.366 5.064 5.064 0 0 0-.756-.2l-1.886-.332-.579 3.265 1.889.335a5.513 5.513 0 0 0 .823.081 2.126 2.126 0 0 0 .758-.117 1.433 1.433 0 0 0 .966-1.2Zm3.456 5.023a2.723 2.723 0 0 0 .136 1.938 2.531 2.531 0 0 0 1.464 1.254 2.986 2.986 0 0 0 1.424.191 2.368 2.368 0 0 0 1.143-.426l.5.715a3.612 3.612 0 0 1-1.564.608 3.784 3.784 0 0 1-1.81-.268 3.967 3.967 0 0 1-1.292-.774 3.489 3.489 0 0 1-.826-1.113 3.394 3.394 0 0 1-.307-1.343 3.9 3.9 0 0 1 .27-1.482 4.283 4.283 0 0 1 .741-1.286 3.354 3.354 0 0 1 1.068-.837 3.164 3.164 0 0 1 1.316-.322 3.831 3.831 0 0 1 1.477.263 3.782 3.782 0 0 1 1.352.828 3.116 3.116 0 0 1 .75 1.166 3.408 3.408 0 0 1 .172 1.411 5.833 5.833 0 0 1-.371 1.6Zm4.933.918a2.649 2.649 0 0 0-.18-1.885 2.422 2.422 0 0 0-1.323-1.1 2.525 2.525 0 0 0-.911-.171 2.255 2.255 0 0 0-.855.169 2.539 2.539 0 0 0-.757.485 2.665 2.665 0 0 0-.584.764Zm1.811 2.907a1.81 1.81 0 0 1 .864-.762 2.268 2.268 0 0 1 1.1-.139 4.482 4.482 0 0 1 1.237.33 8.4 8.4 0 0 1 1.257.648q.235.147.418.269a10.941 10.941 0 0 1 .663.484l.347.278.264-.423a1.473 1.473 0 0 0 .255-.827 1.7 1.7 0 0 0-.186-.727 2.32 2.32 0 0 0-.429-.584 2.8 2.8 0 0 0-.467-.383 4.7 4.7 0 0 0-1.33-.583 5.5 5.5 0 0 0-1.339-.174l.015-.9a6.339 6.339 0 0 1 1.529.212 5.677 5.677 0 0 1 1.588.7 4.3 4.3 0 0 1 .873.717 3.157 3.157 0 0 1 .6.9 2.218 2.218 0 0 1 .175 1.049 2.476 2.476 0 0 1-.4 1.142l-2.417 3.875-.882-.551.624-.987a3.266 3.266 0 0 1-.83.179 3.553 3.553 0 0 1-.827-.026 4.245 4.245 0 0 1-.766-.187 3.162 3.162 0 0 1-.649-.3 3.465 3.465 0 0 1-1.5-1.56 1.79 1.79 0 0 1 .213-1.67Zm1.756 2.489a3.264 3.264 0 0 0 1.081.449 3.174 3.174 0 0 0 .99.058 2.341 2.341 0 0 0 .793-.22 1.149 1.149 0 0 0 .478-.39l.348-.559a7.3 7.3 0 0 0-.771-.578c-.258-.166-.482-.31-.672-.428a7.221 7.221 0 0 0-.943-.5 3.441 3.441 0 0 0-.886-.266 1.694 1.694 0 0 0-.752.047.985.985 0 0 0-.55.442 1.074 1.074 0 0 0-.065.917 2.035 2.035 0 0 0 .949 1.028Zm9.279 7.811-.78-.689 2.846-3.223a2.293 2.293 0 0 0 .656-1.355 1.555 1.555 0 0 0-.638-1.252 2.034 2.034 0 0 0-.943-.483 2.491 2.491 0 0 0-1.049.007 3.229 3.229 0 0 0-1.029.427 4.036 4.036 0 0 0-.905.772l-2.07 2.343-.767-.677 4.618-5.231.769.679-1.161 1.314a2.664 2.664 0 0 1 3.25.311q1.93 1.7.053 3.831ZM24.978 78.603a3.642 3.642 0 0 1-1.11 1.772 2.892 2.892 0 0 1-1.941.655 2.968 2.968 0 0 1-1.539-.379 3.116 3.116 0 0 1-1.033-.994 4.238 4.238 0 0 1-.577-1.426 8.125 8.125 0 0 1 0-3.364 4.318 4.318 0 0 1 .579-1.436 3.1 3.1 0 0 1 1.033-1 2.977 2.977 0 0 1 1.543-.375 3.056 3.056 0 0 1 1.376.285 1.791 1.791 0 0 1 .844.871v-1.011h.778v2.85h-.778a2.158 2.158 0 0 0-.176-.867 2.236 2.236 0 0 0-.475-.708 2.151 2.151 0 0 0-.708-.469 2.229 2.229 0 0 0-.861-.169 1.945 1.945 0 0 0-1.167.332 2.433 2.433 0 0 0-.741.871 4.135 4.135 0 0 0-.4 1.2 7.512 7.512 0 0 0 0 2.63 4.007 4.007 0 0 0 .4 1.19 2.5 2.5 0 0 0 .741.865 1.939 1.939 0 0 0 1.167.335q1.622 0 2.26-1.961Zm8.788-2.052a7.748 7.748 0 0 1-.18 1.682 4.421 4.421 0 0 1-.571 1.429 3.018 3.018 0 0 1-1.028.994 3.364 3.364 0 0 1-3.091 0 3.055 3.055 0 0 1-1.031-.994 4.333 4.333 0 0 1-.571-1.429 8.125 8.125 0 0 1 0-3.364 4.317 4.317 0 0 1 .578-1.436 3.092 3.092 0 0 1 1.037-1 3.319 3.319 0 0 1 3.065 0 3 3 0 0 1 1.028 1 4.635 4.635 0 0 1 .578 1.436 7.5 7.5 0 0 1 .186 1.682Zm-.924 0a6.706 6.706 0 0 0-.163-1.546 3.825 3.825 0 0 0-.468-1.173 2.16 2.16 0 0 0-.753-.742 2.026 2.026 0 0 0-1.019-.255 1.951 1.951 0 0 0-1.172.332 2.433 2.433 0 0 0-.741.871 4.01 4.01 0 0 0-.388 1.2 7.915 7.915 0 0 0 0 2.63 3.89 3.89 0 0 0 .388 1.19 2.5 2.5 0 0 0 .741.865 2.211 2.211 0 0 0 2.34 0 2.487 2.487 0 0 0 .744-.865 3.833 3.833 0 0 0 .384-1.19 8.253 8.253 0 0 0 .107-1.317Zm8.97-3.572h-4.634v3.105h3.417v.777h-3.417v4.016h-.911v-8.676h5.545Zm8.604 0h-4.638v3.105h3.417v.777h-3.417v4.016h-.911v-8.676h5.545Zm8.604 7.898h-5.542v-8.676h5.545v.778h-4.637v3.105h3.417v.777h-3.417v3.238h4.634Zm8.604 0h-5.546v-8.676h5.545v.778H62.99v3.105h3.417v.777H62.99v3.238h4.634Z" data-name="5" />
	<path id="gtlt" d="m0 46.457.029-2.363 25.535-18.431-.034 2.657L2.253 45.156v.3l22.839 17.418-.034 2.657Zm63.732 19.194.034-2.657 23.277-16.843v-.3L64.204 28.436l.034-2.659 25.057 19.074-.03 2.363Z" class="cls-1" />
	<g id="bean">
		<path id="right-bean" d="M48.578 43.404c-.025-.013-.056-.025-.081-.038s-.018-.012-.031-.018a.308.308 0 0 0-.074-.025.857.857 0 0 0-.118-.025.475.475 0 0 0-.23.019.627.627 0 0 0-.453.534c-.354 3.347-1.081 5.737-1.993 6.575-.4.367-.839.739-1.292 1.124-1.59 1.366-3.247 2.776-3.831 4.316-.013.025-.019.056-.031.08a.6.6 0 0 0-.037.2v.007a.53.53 0 0 0 .018.136.519.519 0 0 0 .131.261.624.624 0 0 0 .111.106.159.159 0 0 0 .056.037 4.863 4.863 0 0 0 .416.261 5.372 5.372 0 0 0 2.59.652 6.366 6.366 0 0 0 2.471-.516 8.612 8.612 0 0 0 4.178-3.869c2.058-3.732 1.251-8.135-1.8-9.817Z" />
		<path id="left-bean" d="M43.01 51.389c.454-.391.907-.776 1.311-1.149 1.453-1.329 2.1-4.663 2.384-7.234a.521.521 0 0 0-.006-.167.624.624 0 0 0-.081-.218.914.914 0 0 0-.068-.093.991.991 0 0 0-.081-.074.716.716 0 0 0-.093-.062c-.037-.019-.075-.031-.106-.044-.006 0-.012 0-.012-.006-2.937-.838-6.377.919-8.165 4.185-1.652 2.987-1.491 6.538.385 8.662l.012.012a.235.235 0 0 0 .05.062.583.583 0 0 0 .1.087.342.342 0 0 0 .112.069.567.567 0 0 0 .242.049.62.62 0 0 0 .261-.055.538.538 0 0 0 .081-.044.562.562 0 0 0 .186-.192.347.347 0 0 0 .043-.081l.019-.037c.539-1.208 2.073-2.515 3.426-3.67Z" />
	</g>
	<g fill="url(#grad1)">
		<path id="steam-cup" d="M72.288 42.183a3.63 3.63 0 0 0-3.81-2.354h-4.7V38.38a3.04 3.04 0 0 0-3.037-3.036H28.015a3.04 3.04 0 0 0-3.037 3.036v9.525a19.16 19.16 0 0 0 9.759 16.6h-6.53a.621.621 0 0 0 0 1.242h32.959a.621.621 0 0 0 0-1.242h-7.141a19.042 19.042 0 0 0 7.518-7.7h3.827a7.428 7.428 0 0 0 7.42-7.42v-2.257a14.834 14.834 0 0 0-.502-4.945Zm-11.67 13.726a17.8 17.8 0 0 1-9.514 8.6H37.648a17.9 17.9 0 0 1-11.427-16.6V38.38a1.8 1.8 0 0 1 1.794-1.794h32.729a1.8 1.8 0 0 1 1.8 1.794v9.525a17.452 17.452 0 0 1-1.926 8.004Zm10.93-6.518a6.185 6.185 0 0 1-6.178 6.179h-3.217a18.663 18.663 0 0 0 1.625-7.665v-6.834h4.7c1.814 0 2.359.787 2.653 1.556a14.158 14.158 0 0 1 .42 4.5v2.264ZM34.139 32.617a.621.621 0 0 0 1.065-.64l-1.407-2.343a3.179 3.179 0 0 1 .479-3.889l.467-.467a4.445 4.445 0 0 0 1.252-3.755l-.709-4.963a.621.621 0 1 0-1.23.175l.71 4.964a3.2 3.2 0 0 1-.9 2.7l-.467.467a4.419 4.419 0 0 0-.665 5.406Zm8.803 0a.621.621 0 0 0 1.064-.64L42.6 29.634a3.179 3.179 0 0 1 .479-3.889l.467-.467a4.445 4.445 0 0 0 1.252-3.755l-.71-4.963a.621.621 0 1 0-1.23.175l.71 4.964a3.2 3.2 0 0 1-.9 2.7l-.467.467a4.418 4.418 0 0 0-.666 5.406Zm8.802 0a.621.621 0 0 0 1.065-.64l-1.407-2.343a3.179 3.179 0 0 1 .476-3.889l.467-.467a4.445 4.445 0 0 0 1.252-3.755l-.709-4.963a.621.621 0 1 0-1.23.175l.709 4.964a3.2 3.2 0 0 1-.9 2.7l-.467.467a4.419 4.419 0 0 0-.666 5.406Z" />
	</g>
</svg>
              
            
!

CSS

              
                svg {
	max-height: 90vh;
	max-width: 300px;
}

.stop1 {
	stop-color: orange;
}

              
            
!

JS

              
                
              
            
!
999px

Console