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

Quick-add: + add another resource

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.

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.

            
              <body>

  <svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="0">
    <!-- Created with SVG-edit - https://svg-edit.googlecode.com/ -->
    <defs>
      <g id="line">
        <line id="svg_1" y2="15.666668" x2="99.666662" y1="15.666668" x1="0.999995" stroke-width="2" stroke="#BA8748" fill="none" />
        <line stroke="#BA8748" id="svg_4" y2="1" x2="8.989895" y1="1" x1="99.666661" stroke-width="2" fill="none" />
        <line id="svg_5" stroke="#BA8748" y2="31.166662" x2="7.832443" y1="31.166662" x1="100.109209" stroke-width="2" fill="none" />
      </g>
    </defs>
  </svg>

  <h2 class="headline pulse">

  <div class="lines">

    <svg class="left" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

  <span class="text">Fancy Pants Headlines</span>

  <div class="lines">

    <svg class="right" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

</h2>
  
<h2 class="headline pulse">

  <div class="lines">

    <svg class="left" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

  <span class="text">Check Me Out</span>

  <div class="lines">

    <svg class="right" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

</h2>
  
  <h2 class="headline pulse">

  <div class="lines">

    <svg class="left" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

  <span class="text">yep</span>

  <div class="lines">

    <svg class="right" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 205 33">
      <g id="headline">
        <use xlink:href="#line" />
      </g>
    </svg>

  </div>

</h2>

</body>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Poiret+One|PT+Sans+Narrow:400,700);


@mixin transform-origin($position) {
  -webkit-transform-origin: $position;
     -moz-transform-origin: $position;
      -ms-transform-origin: $position;
       -o-transform-origin: $position;
          transform-origin: $position;
}

@mixin rotate($deg) {
  -webkit-transform: rotate($deg);
     -moz-transform: rotate($deg);
      -ms-transform: rotate($deg);
       -o-transform: rotate($deg);
          transform: rotate($deg);
}

@mixin move($shiftx, $shifty, $scale) {
  -webkit-transform: translate($shiftx, $shifty) scalex($scale);
     -moz-transform: translate($shiftx, $shifty) scalex($scale);
      -ms-transform: translate($shiftx, $shifty) scalex($scale);
  -o-transform: translate($shiftx, $shifty) scalex($scale);
          transform: translate($shiftx, $shifty) scalex($scale);
}


body {
  background-color: #e6e6e6;
}


/* HEADLINE STRUCTURE */

.headline {
  display:block;
  width: 60%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  text-align:center;
}

.lines{
  display: inline-block;
  position: absolute;
  top:40%; 
  svg {
    width: 200px;
    height: 32px;
    @media screen and (max-width: 650px) {
      width: 90px;
      height: 15px;
    }
  }
}


.text {
  display: inline-block;
  max-width: 60%;
  padding: 1em 30px;
  text-align: center;
  font-family: 'Poiret One', sans-serif;
  text-transform: uppercase;
  font-size: 35px;
  letter-spacing: 10px;
  line-height: 1.5em;
  color: #BA8748;
  @media screen and (max-width: 650px) {
    font-size: 20px;
    letter-spacing: 2px;
  }
}

.left {
  float: right;
  margin-left: -220px;
}

.right {
  @include rotate(180deg);
  float:left;
  margin-left: -10px;
}

/* ANIMATION */

$header-speed: 2s;
$animation-length: infinite;

#headline {
  @include move(115px, 0px, 1);
  /* @include transform-origin(right); */
}

.pulse #headline {
  -webkit-animation: grow $header-speed $animation-length;
  -moz-animation: grow $header-speed $animation-length;
  animation: grow $header-speed $animation-length;
}

@keyframes grow {
  0% {
    @include move(115px, 0px, 1);
     @include transform-origin(right); 
  }
  30% {
    -webkit-transform: translate(115px, 0px) scalex(2);
    -moz-transform:  translate(8px, 0px) scalex(2);
    -o-transform: translate(0px, 0px) scalex(2);
    @include transform-origin(right); 
  }
}

@-webkit-keyframes grow {
  0% {
    @include move(115px, 0px, 1);
     @include transform-origin(right); 
  }
  30% {
    -webkit-transform: translate(115px, 0px) scalex(2);
    -moz-transform:  translate(0px, 0px) scalex(2);
    -o-transform: translate(0px, 0px) scalex(2);
    @include transform-origin(right); 
  }
}
            
          
!
            
              /* ADD & REMOVE  PULSE CLASS ONSCROLL FOR ANIMATION*/


/*var headline = document.getElementsByClassName("headline");
        
          window.onscroll = function(){
              

              for (var i = 0; i < headline.length; i++) {

                var svg = headline[i];

                if (headline[i].getBoundingClientRect().top < 600 && headline[i].getBoundingClientRect().top > 0){
                   $(svg).addClass("pulse");
                } else {
                  $(svg).removeClass("pulse");
                }
              }

          };*/
            
          
!
999px
Loading ..................

Console