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. 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

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

              
                
<a class="iconcard btn-icon">
  <svg class="img-responsive">
    <use xlink:href="#fav"></use>
  </svg>
</a>

<a class="iconcard2 btn-icon2">
  <svg class="img-responsive2">
    <use xlink:href="#hg"></use>
  </svg2>
</a>

<a class="iconcard btn-icon">
  <svg class="img-responsive">
    <use xlink:href="#fav"></use>
  </svg>
</a>

<svg class="ding">
<symbol id="fav" width="40px" height="40px" viewBox="0 0 40 40" >
    <defs>
        <linearGradient x1="43.8691538%" y1="0%" x2="55.8690755%" y2="100%" id="linearGradient-1">
            <stop stop-color="#FFF265" offset="0%"></stop>
            <stop stop-color="#FFE431" offset="79.65159%"></stop>
            <stop stop-color="#FFEE87" offset="100%"></stop>
        </linearGradient>
    </defs>
    <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g transform="translate(-768.000000, -419.000000)">
            <g transform="translate(768.000000, 419.000000)">
                <rect x="0" y="0" width="40" height="40"></rect>
                <rect fill="#B620E0" transform="translate(26.000000, 28.000000) rotate(45.000000) translate(-26.000000, -28.000000) " x="14" y="24" width="24" height="8"></rect>
                <rect fill="#6236FF" transform="translate(14.000000, 28.000000) rotate(-45.000000) translate(-14.000000, -28.000000) " x="2" y="24" width="24" height="8"></rect>
                <circle fill="url(#linearGradient-1)" cx="20" cy="19" r="16"></circle>
                <rect id="5" fill="#6DD400" x="8" y="0" width="24" height="8"></rect>
                <path d="M29.3402604,19.4647048 L30.7891491,19.8529333 C30.9225157,19.8886688 31.0016613,20.025753 30.9659258,20.1591195 C30.9301904,20.2924861 30.7931061,20.3716317 30.6597396,20.3358962 L30.1794936,20.2061242 L30.1708832,20.2938764 C29.5824545,25.3370346 25.221528,29.2 19.9949929,29.2 C14.7432238,29.2 10.3597581,25.298038 9.80965055,20.2097037 L9.34026039,20.3358962 C9.20689387,20.3716317 9.06980963,20.2924861 9.03407417,20.1591195 C8.99833872,20.025753 9.07748434,19.8886688 9.21085087,19.8529333 L10.6597396,19.4647048 C10.7931061,19.4289693 10.9301904,19.5081149 10.9659258,19.6414815 C11.0016613,19.774848 10.9225157,19.9119322 10.7891491,19.9476677 L10.2004936,20.1041242 L10.2294592,20.35404 C10.8435804,25.1467885 15.0115138,28.8 19.9949929,28.8 C25.0689396,28.8 29.2919219,25.014532 29.7893653,20.1026287 L29.2108509,19.9476677 C29.0774843,19.9119322 28.9983387,19.774848 29.0340742,19.6414815 C29.0698096,19.5081149 29.2068939,19.4289693 29.3402604,19.4647048 Z" id="形状结合" fill="#282028" fill-rule="nonzero"></path>
                <path d="M20,19.75 C20.1380712,19.75 20.25,19.8619288 20.25,20 L20.2493524,22.29 L20.7820179,22.3843347 C20.9179914,22.4083105 21.0087836,22.5379751 20.9848078,22.6739487 C20.9608319,22.8099223 20.8311673,22.9007144 20.6951938,22.8767386 L19.2179821,22.6162663 C19.0820086,22.5922905 18.9912164,22.4626259 19.0151922,22.3266523 C19.0391681,22.1906787 19.1688327,22.0998866 19.3048062,22.1238624 L19.7493524,22.202 L19.75,20 C19.75,19.8619288 19.8619288,19.75 20,19.75 Z" id="形状结合" fill="#282028"></path>
                <circle fill="#282028" cx="16" cy="16.4" r="1.4"></circle>
                <circle fill="#282028" cx="24" cy="16.4" r="1.4"></circle>
            </g>
        </g>
    </g>
  </symbol>
</svg>

<svg class="ding">
<symbol id="hg" width="180px" height="180px" viewBox="0 0 180 180" >
    <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g transform="translate(-822.000000, -418.000000)" fill="#282028" fill-rule="nonzero">
            <g transform="translate(822.000000, 418.000000)">
                <path d="M20.3518519,27.5 C23.266688,27.5 25.6296296,29.8505051 25.6296296,32.75 C25.6296296,35.6494949 23.266688,38 20.3518519,38 C17.4370157,38 15.0740741,35.6494949 15.0740741,32.75 C15.0740741,29.8505051 17.4370157,27.5 20.3518519,27.5 Z M20.3518519,28.9 C18.2143053,28.9 16.4814815,30.6237037 16.4814815,32.75 C16.4814815,34.8762963 18.2143053,36.6 20.3518519,36.6 C22.4893984,36.6 24.2222222,34.8762963 24.2222222,32.75 C24.2222222,30.6237037 22.4893984,28.9 20.3518519,28.9 Z M5.92592593,3 C8.64643969,3 10.8518519,5.19380473 10.8518519,7.9 C10.8518519,10.6061953 8.64643969,12.8 5.92592593,12.8 C3.20541216,12.8 1,10.6061953 1,7.9 C1,5.19380473 3.20541216,3 5.92592593,3 Z M34.0740741,3 C36.7945878,3 39,5.19380473 39,7.9 C39,10.6061953 36.7945878,12.8 34.0740741,12.8 C31.3535603,12.8 29.1481481,10.6061953 29.1481481,7.9 C29.1481481,5.19380473 31.3535603,3 34.0740741,3 Z"></path>
            </g>
        </g>
    </g>
  </symbol>
</svg>

<a class="owlling" href="https://www.owlling.com/" target="_blank"><img src="http://ux.owlling.com/res/logo.svg" alt=""></a>
              
            
!

CSS

              
                body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f8fa;
}

.owlling {
  position: fixed;
  display: block;
  right: 20px;
  bottom: 20px;
}

.owlling img {
  display: block;
  height: 28px;
}

.iconcard {
    background: #ffffff;
    box-shadow:  16px 16px 64px #DDE3E6, 
                 -16px -16px 64px #ffffff;
    border-radius: 8px;
    border: 0px solid #ffffff;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    cursor:pointer;
    margin: 24px;
}

.iconcard:hover {
    border: 0px solid #ffffff;
    background-color: #fff;
    box-shadow:  inset 16px 16px 64px #DDE3E6, 
                 inset -16px -16px 64px #ffffff;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    cursor:pointer;
}

.iconcard2 {
    background: #FDE23D;
    box-shadow:  16px 16px 64px #FFFADF, 
                 -16px -16px 64px #ffffff;
    border-radius: 8px;
    border: 0px solid #ffffff;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    cursor:pointer;
    margin: 24px;
}

.iconcard2:hover {
    border: 0px solid #ffffff;
    background-color: #6DD400;
    box-shadow:  16px 16px 64px #DFFFE0, 
                 -16px -16px 64px #ffffff;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    cursor:pointer;
}

.iconcard:hover .img-responsive {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    /* IE 9 */
    -moz-transform: rotate(180deg);
    /* Firefox */
    -webkit-transform: rotate(180deg);
    /* Safari 和 Chrome */
    -o-transform: rotate(180deg);
    /* Opera */
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.iconcard:hover .img-responsive2 {
    transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    /* IE 9 */
    -moz-transform: rotate(5deg);
    /* Firefox */
    -webkit-transform: rotate(5deg);
    /* Safari 和 Chrome */
    -o-transform: rotate(5deg);
    /* Opera */
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.ding {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.btn-icon {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 24%;
}

.btn-icon svg {
  width: 40px;
  height: 40px;
  margin: 40px;
  fill: #FF257F;
}

.btn-icon2 {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 100%;
}

.btn-icon2 svg {
  width: 40px;
  height: 40px;
  margin-left: 28px;
  margin-top: 48px;
  fill: #FF257F;
}

.btn-icon2:hover svg {
  width: 40px;
  height: 40px;
  margin-left: 56px;
  margin-top: 48px;
  fill: #FF257F;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

              
            
!

JS

              
                
              
            
!
999px

Console