cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <div class="content">
  <div class="ic-logo-wrap">
    <svg class="ic-logo" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
       viewBox="0 0 67.6 77.3" enable-background="new 0 0 67.6 77.3" xml:space="preserve">
      <path class="logo-chicklet" fill="#759ed0" d="M57.6,0H10C4.5,0,0,4.5,0,10v47.6c0,5.5,4.5,10,10,10h38.2v0l9.7,0l9.7,9.7V10C67.6,4.5,63.1,0,57.6,0z"/>
      <rect class="logo-i" x="16.2" y="19.6" fill="#FFFFFF" width="3" height="28.5"/>
      <path class="logo-c" fill="#FFFFFF" d="M40.9,45.7c4.1,0,7.8-2.1,9.9-5.3l2.6,1.7c-2.7,4-7.3,6.7-12.5,6.7c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15

      <ellipse class="anim-fade" fill="#4C001F" cx="12.8" cy="32.7" rx="3.2" ry="3.2"/>
      <ellipse class="anim-fade" fill="#4C001F" cx="54.6" cy="32.7" rx="3.2" ry="3.2"/>
        <polygon class="anim-fade" fill="#4C001F" points="58,46.6 56,49 11.7,49 9.7,46.6 		"/>
        <polygon class="anim-fade" fill="#4C001F" points="22.7,46.7 16.1,54.1 9.7,46.6 		"/>
        <polygon class="anim-fade" fill="#4C001F" points="56.2,48.8 51.8,54.1 47.3,48.8 		"/>
      <polygon class="vamp-right-eyebrow anim-hide" fill="#FFFFFF" points="54.8,15 58.2,18.4 47.9,28.6 44.4,25.2 	"/>
      <polygon class="vamp-left-eyebrow anim-hide" fill="#ffffff" points="10,18.4 13.5,15 23.9,25.2 20.4,28.6 	"/>
  <h1 class="copy anim-fade">Happy<br>Halloween</h1>

  height 100%

  background #ffffff
  font-family 'Creepster', cursive
  text-align center
  position relative
  height 100%

  position absolute
  width 100%
  top 50%
  transform translateY(-50%)
  width 100px
  margin 0 auto
  cursor pointer
  display inline-block
  vertical-align middle

  visibility hidden

  opacity 0

  font-size 3em
  display inline-block
  vertical-align middle
  position relative
  top -10px
  text-align center
  color #D22D78
  line-height 1

@media screen and (min-width: 310px)
    text-align left
@media screen and (min-width: 640px)
    width 200px
    font-size 6em
    top -10px
    padding-left 50px

@media screen and (min-width: 1260px)
    width 400px
    font-size 12em
    top -20px

              var mainSVG = document.querySelector('.ic-logo');

var faceTl = new TimelineMax({paused:true});

MorphSVGPlugin.convertToPath("circle, rect, ellipse, line, polygon, polyline");

faceTl.to('.logo-i', 0.75, {
.to('.logo-c', 0.75, {
}, '-=0.75')
.to('.anim-fade', 0.5, {
    opacity: 1,
}, '-=0.5')
.to('.logo-chicklet', 0.75, {
  fill: '#D22D78'
}, '-=0.75')
.to(document.body, 0.75, {
}, '-=0.75');

mainSVG.addEventListener('click', function() {
  if (faceTl.time() > 0) {
  } else {

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................