Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <button type="button" class="iceCream-btn">
  <span class="stick"></span>
  <span class="nuts"></span>
  <span class="coconut"></span>
  <span class="nuts"></span>
  <span class="bola">
    <span class="strawberry"></span>
    <span class="chocolate"></span>
    <span class="mango"></span>
    <span class="kiwi"></span>
              @import "compass/css3";

	Flat Ice Cream Button/Icon, Pure CSS - 30.10.13
	(c) 2013 @ElmahdiMahmoud 
	license: https://www.opensource.org/licenses/mit-license.php

/* Global ===================== */
body { height: 100%; }

body {
    padding: 0; 
    margin: 0;
     * Gradient generated by 
     * http://www.colorzilla.com/gradient-editor/ 
    background: #9db2ec;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMTAwJSIgeDI9IjEwMCUiIHkyPSIwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjOWRiMmVjIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTglIiBzdG9wLWNvbG9yPSIjZDhkMWYyIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMzUlIiBzdG9wLWNvbG9yPSIjYzNkNmY3IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTIlIiBzdG9wLWNvbG9yPSIjYTRlMWU1IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNzQlIiBzdG9wLWNvbG9yPSIjOThkOGUxIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2EyZWJmYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(45deg,  #9db2ec 0%, #d8d1f2 18%, #c3d6f7 35%, #a4e1e5 52%, #98d8e1 74%, #a2ebfa 100%);
background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#9db2ec), color-stop(18%,#d8d1f2), color-stop(35%,#c3d6f7), color-stop(52%,#a4e1e5), color-stop(74%,#98d8e1), color-stop(100%,#a2ebfa));
background: -webkit-linear-gradient(45deg,  #9db2ec 0%,#d8d1f2 18%,#c3d6f7 35%,#a4e1e5 52%,#98d8e1 74%,#a2ebfa 100%);
background: -o-linear-gradient(45deg,  #9db2ec 0%,#d8d1f2 18%,#c3d6f7 35%,#a4e1e5 52%,#98d8e1 74%,#a2ebfa 100%);
background: -ms-linear-gradient(45deg,  #9db2ec 0%,#d8d1f2 18%,#c3d6f7 35%,#a4e1e5 52%,#98d8e1 74%,#a2ebfa 100%);
background: linear-gradient(45deg,  #9db2ec 0%,#d8d1f2 18%,#c3d6f7 35%,#a4e1e5 52%,#98d8e1 74%,#a2ebfa 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9db2ec', endColorstr='#a2ebfa',GradientType=1 );  
input::-moz-focus-inner { border: 0; }
*:focus   { outline: 0; }
button {
    border: 0;
    cursor: pointer;
/* Ice Cream Button =========== */
.iceCream-btn {
    width: 87px;
    height: 87px;
    border: 1px solid #384B5F;
    border-radius: 2px; /* TODO: Hey you Lazy, Prefix me */
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -43.5px 0 0 -43.5px ;
    /* Gradient */
    background-color: #362954;
    background-image: url(images/RIP.png); /* RIP as a fallback :) */
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#3d6076), to(#2e5165));
    background-image: -webkit-linear-gradient(top, #3d6076, #2e5165);
    background-image: -moz-linear-gradient(top, #3d6076, #2e5165);
    background-image: -ms-linear-gradient(top, #3d6076, #2e5165);
    background-image: -o-linear-gradient(top, #3d6076, #2e5165);

/* Ice Cream Parts ============ */
.iceCream-btn span {
    position: absolute;
    display: block;
.iceCream-btn > span {
    left: 50%;
.iceCream-btn > span > span {
    left: 0;
    right: 0;
/* Ice Cream Stick ============ */
.stick {
    background-color: #fce5bc;
    box-shadow: 1px 1px 1px #1c354b; /* TODO: Hey you Lazy, Prefix me */
    border-radius: 0 0 30px 30px; /* TODO: Hey you Lazy, Prefix me */
    bottom: 10px;
    margin-left: -3px;
    height: 15px;
    width: 6px;
    z-index: 10;

/* Ice Cream Bola ============= */
.bola {
    width: 35px;
    height: 50px;
    top: 10px;
    margin-left: -17.5px;
    border-radius: 30px 30px 10px 10px; /* TODO: Come on Dude, Prefix me please */
    overflow: hidden;
    box-shadow: 10px 10px 15px #20394f; /* TODO: Come on Dude, Prefix me please */
    z-index: 5;

/* Ice Cream Flavors ========== */
.strawberry {
    background-color: #fb6b6b;
    height: 20px;
    top: 0;
.chocolate {
    background-color: #3e3923;
    height: 15px;
    top: 20px;
.mango {
    background-color: #fdd63d;
    height: 10px;
    top: 35px;
.kiwi {
    background-color: #67be31;
    height: 7px;
    bottom: 0;
/* Ice Cream Decoration ======= */
span.coconut {
    border-radius: 100%;
    height: 2px;
    width: 2px;
    z-index: 20;
span.nuts {
    background-color: #3e3923;
    top: 15px;
span.nuts:nth-child(2) {
    top: 23px;
    left: 54%;
    opacity: .5;
span.coconut {
    background-color: #fff;
    top: 20px;
    left: 45%;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.