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

              
                <link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">

<div class="wrapper">
<svg id="altesJahr" class="center" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 370 110" overflow="visible">
  
      <path  d="M73.5 86.4v24.76h17.63V86.4H73.5zm-8.31 0v24.76h8.31V86.4h-8.31zm0 3.16L36.5 105.53v5.63h28.69v-21.6z"/>
      <path d="M65.19 88.6l-28.69 16v.93l28.69-15.97v-.97zM36.5 61.97v42.62l28.69-16v-2.18h-21.5c2.78-2.74 5.22-4.94 7.28-6.63 2.06-1.69 6.13-4.65 12.25-8.87a125.5 125.5 0 0 0 11.28-8.94h-38zm-.37 0h-2.2c-2.37 1.88-4.94 3.82-7.05 5.62v35.1h-1.29V68.72C18.4 74.97 12.9 80.7 9.5 85.78A57 57 0 0 0 0 111.16h36.13v-49.2z" />
      <path d="M36.13 61.97v49.19h.37v-49.2h-.38zm39.9-1.31H35.6l-1.65 1.3H74.5c.49-.43 1.07-.87 1.53-1.3zm11.75-16.13l-38.47 5.19a172.81 172.81 0 0 1-10.03 8c-1.39 1.03-2.4 1.94-3.69 2.94h40.44c3.64-3.4 6.48-6.63 8.47-9.72 1.35-2.1 2.4-4.24 3.28-6.4z"/>
      <path d="M89.78 37.81H59.06a21.86 21.86 0 0 1-2.69 4.85c-1.34 1.85-3.83 4.27-7.06 7.06l38.47-5.19c.9-2.2 1.58-4.44 2-6.72z"/>
      <path d="M26.88 9.69v27.19l5.78.46c.84-6.16 2.5-10.44 4.97-12.87 2.46-2.44 5.62-3.66 9.5-3.66 3.72 0 6.82 1.17 9.28 3.53a11.39 11.39 0 0 1 3.68 8.54c0 1.6-.36 3.24-1.03 4.93h30.72c.36-1.96.6-3.95.6-5.97 0-6.26-1.73-11.92-5.13-16.96a29.62 29.62 0 0 0-4.56-5.2H26.88zM25.6 68.72v33.97l-5.75 7.21c-.64.8 9.78-1.14 9.74-1.65l-2.71-40.66c-.45.38-.85.75-1.29 1.13zm0-59.03H13.33a28.5 28.5 0 0 0-4.53 5.19c-3.18 4.8-5.37 11.48-6.56 20.03l23.34 1.87V9.68zm0 0v27.1l1.27.09V9.68H25.6z"/>
      <path d="M80.31 9.34h-66.6l-.37.35H80.7l-.38-.35zm-35 0h35a31.43 31.43 0 0 0-9.06-5.68C65.31 1.22 57 0 46.31 0c-.35 0-.65.03-1 .03v9.31zM44.66.06C35.24.2 27.7 1.43 22.25 3.84a32.5 32.5 0 0 0-8.53 5.5h30.94V.06z"/>
      <path d="M44.66.06v9.28h.65V.04l-.65.02z"/>
      <path d="M104.63 64.6l30.43 6.59-.06-.72-30.4-6.6c0 .24.01.49.03.72zm79.09 34.24l-30.63-7.37a11.3 11.3 0 0 1-4.34.84c-.7 0-1.32-.16-1.97-.28l-27.4 11.66a35.1 35.1 0 0 0 7.15 4.94c5.67 2.93 13.09 4.4 22.28 4.4 16.4 0 27.98-4.58 34.69-13.78.09-.12.13-.29.22-.4zm4.59-9.06l-28-6.75c-.97 2.48-2.09 4.62-3.56 6.03a11.71 11.71 0 0 1-3.66 2.4l30.63 7.38a40.82 40.82 0 0 0 4.6-9.06z"/>
      <path d="M162 77.03c-.1.52-.14 1.32-.25 1.78-.37 1.63-.92 2.9-1.44 4.22l28 6.75c.8-2.1 1.57-4.19 2.19-6.56L162 77.03zm-24.1 7.19l-25.62 10.9c.11.19.2.45.31.63a37.68 37.68 0 0 0 6.78 7.94l27.41-11.66c-3.69-.65-6.63-3.04-8.72-7.37l-.15-.44z"/>
      <path d="M104.63 64.6c.33 5.14.86 10.1 1.8 14.62 1.41 6.68 3.38 11.93 5.85 15.9l25.63-10.9c-1.34-2.96-2.26-7.36-2.85-13.03l-30.44-6.6zm86.09 17.93l-28.63-6.19c-.03.21-.05.5-.09.7l28.5 6.18c.06-.25.16-.44.22-.69zm-56.38-26.75l-29.8-6.84c-.12 2.35-.29 4.59-.29 7.12 0 2.72.2 5.24.34 7.81l30.41 6.6c-.4-4.14-.66-8.77-.66-14.31v-.38z"/>
      <path d="M134.56 46.72L105.28 40c-.35 2.81-.6 5.8-.75 8.94l29.81 6.84c0-3.25.09-6.3.22-9.06zm58.82 5.78h-30.1c.03 1.5.1 2.85.1 4.47 0 8.53-.49 14.73-1.29 19.37l28.63 6.2c1.86-7.51 2.84-16.4 2.84-26.85 0-1.09-.15-2.12-.19-3.19zm-.75-10.66h-29.91c.3 3.14.48 6.7.56 10.66h30.1c-.1-3.6-.3-7.17-.75-10.66z"/>
      <path d="M112.03 17.25c-3.4 5.68-5.57 13.38-6.75 22.75l29.28 6.72c.42-8.75 1.48-15.04 3.16-18.88 2.24-5.1 5.85-7.62 10.87-7.62 4.92 0 8.64 2.47 11.1 7.47 1.46 2.97 2.44 7.82 3.03 14.15h29.9a99.62 99.62 0 0 0-2.12-11.65 47.78 47.78 0 0 0-4.13-11.22c-.31-.59-.76-1.14-1.12-1.72h-73.22zm72.66-.85H112.5c-.17.27-.3.58-.47.85h73.22c-.18-.29-.38-.56-.56-.84z"/>
      <path d="M148.81 16.4h35.88a39.18 39.18 0 0 0-5.38-6.59c-2.98-2.9-6.84-5.28-11.56-7.1C163.03.92 157.01 0 149.65 0c-.3 0-.54.06-.84.06v16.35zM137.66 1.1c-9.38 1.68-16.83 5.4-22.2 11.34a29.98 29.98 0 0 0-2.96 3.97h25.16V1.09zm0 0v15.3h11.15V.07c-4 .05-7.7.41-11.15 1.03z"/>
      <path d="M269.63 101.75l-30.72 5.97v3.44h30.72v-9.41z"/>
      <path d="M269.63 88.53l-30.72 6v13.19l30.72-5.97V88.53zm-30.73-7.31v13.31l30.72-6v-7.31h-30.71zm30.73-20.09H238.9v20.09h30.72v-20.1zm0-4.38l-41.57-37.28c-5.42 3.75-12.4 7.04-21.1 9.84v24.9c7.02-2.13 12.86-4.37 17.5-6.71a93.61 93.61 0 0 0 14.45-9.19v22.81h30.72v-4.37z"/>
      <path d="M269.63 41.72L236.5 12a48.79 48.79 0 0 1-5.44 5.31c-.9.75-1.97 1.45-3 2.16l41.56 37.28V41.72z"/>
      <path d="M244.5 0a49.63 49.63 0 0 1-8 12l33.13 29.72V0H244.5z"/>
      <path d="M335.38 92.88l-31.75 11.37c-.37 2.25-.75 4.46-1.07 6.81h30.6a192.8 192.8 0 0 1 2.21-18.19z"/>
      <path d="M337.75 82.84l-32.31 11.57c-.66 3.16-1.26 6.44-1.81 9.84l31.75-11.38c.63-3.62 1.54-6.76 2.37-10.03zm.44-1.87c.26-1.23.5-2.5.84-3.6a141.3 141.3 0 0 1 6.28-16.9l-19.53 6.12 12.4 14.38z"/>
      <path d="M315.56 69.78L312 70.91a166.17 166.17 0 0 0-6.56 23.5l23.94-8.57-13.82-16.06z"/>
      <path d="M315.56 69.78l13.81 16.06 8.38-3c.16-.6.3-1.23.44-1.87l-12.4-14.38-10.23 3.2z"/>
      <path d="M336.63 63.19L318.65 56a116.3 116.3 0 0 0-4.72 9.69c-.7 1.64-1.3 3.47-1.94 5.22l24.63-7.72z"/>
      <path d="M346.03 59l-23.65-9.44a159.3 159.3 0 0 0-3.72 6.44l17.96 7.19 8.7-2.72c.22-.5.48-.97.71-1.47z"/>
      <path d="M359.75 36.19l-36.25 11.4c-.41.67-.73 1.31-1.13 1.97L346.04 59a124.7 124.7 0 0 1 8-14.84c1.74-2.74 3.7-5.37 5.72-7.97zm13.81-22.59V.6h-49.25l49.25 13z"/>
      <path d="M283.97 9.72v16.81h54.56A209.35 209.35 0 0 0 323.5 47.6l36.25-11.4a120.9 120.9 0 0 1 4.44-5.25L283.97 9.72z"/>
      <path d="M283.97 9.72l80.22 21.22c2.9-3.31 5.97-6.55 9.37-9.63V13.6L324.31.6h-40.34v9.13z"/>
</svg>

    <h1 class="neuesJahr center">2018</h1>
  
  <svg id="daumen" class="center" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 402.02 423.96">
  <defs>
    <linearGradient id="a">
      <stop offset="0" stop-color="#db5e00"/>
      <stop offset=".5" stop-color="#dbc200" stop-opacity=".5"/>
      <stop offset="1" stop-color="#dbc200" stop-opacity="0"/>
    </linearGradient>
    <linearGradient xlink:href="#a" id="e" gradientUnits="userSpaceOnUse" gradientTransform="rotate(7.89 -4078.23 778.64)" x1="-88.62" y1="-241.63" x2="-109.87" y2="-323.1"/>
    <linearGradient xlink:href="#a" id="d" gradientUnits="userSpaceOnUse" gradientTransform="translate(293.08 573.85)" x1="-268.5" y1="-247.11" x2="-284.64" y2="-321.34"/>
    <linearGradient xlink:href="#a" id="c" gradientUnits="userSpaceOnUse" gradientTransform="translate(238.76 584.87)" x1="-253.89" y1="-264.13" x2="-253.88" y2="-335.54"/>
    <linearGradient xlink:href="#a" id="b" gradientUnits="userSpaceOnUse" gradientTransform="translate(122.25 581.72)" x1="-117.86" y1="-262.58" x2="-122.01" y2="-322.95"/>
  </defs>
  <path class="kontur" d="M185.5 248.3l124.37-11.8 11.81 110.72-47.62 55.34-87.18-33.97z" fill="#4d421b" stroke="#866a1f" stroke-opacity=".22"/>
  <path class="kontur" d="M206.72 380.5c-17-2.74-31.58-.65-43.67-14.6-10.96 31.25-153.77 29.63-179.7 33-5.38-56.22 1.16-57.17 4.96-110.12 13.36.71 171.43-54.32 202.14-48.02m60.74 87.59c-126.85-11.13 15.4 171.74 49.92 53.86m-16.46-90.78c-122.87 33.27 88.17 175.7 74.26 37.77" fill="#4d421b" stroke-width="4" stroke-opacity=".22"/>
  <path id="flamme01" class="hidden" d="M82.82 278.95c3.78-12.4 12.04-49.8 27.66 1.18 4.91 13.34 7.96 23.05 2.14 32.1-5.8 9-21.07 19.31-32.15.26-5.7-9.78-1.03-22.15 2.35-33.54z" fill="url(#b)" transform="translate(231.24 -254.08)"/>
  <path class="kontur" d="M197.81 304.8c25.78 2.2 50.03-10.14 64.57-32.3" fill="#4d421b"  stroke-width="3" stroke-linecap="round" stroke-opacity=".22"/>
  <path class="kontur" id="Daumen01" d="M172.76 269.17c12.85-49.8 37.27-69.02 64.02-78.5 21.45-7.59 40.27-16.27 46.2-43.97 28.52-115.12 66.1-54.76 76.26-36.73 14.43 31.74-7.09 53.52-20.6 65.68-41.99 32.42-39.14 37.24-.55 52.88 126.88 51.43 22.97 109.52 2.78 104.1-83.7-22.52-84.2-112.04 0-85.73" fill="#4d421b"  stroke-width="4" stroke-opacity=".22"/>
  <path class="flamme03 hidden" d="M73.74 280.52c3.1-12.4 9.88-49.79 22.7 1.18 4.03 13.34 11.46 23.06 6.68 32.1-4.76 9-17.3 19.32-26.4.26-4.66-9.78-5.75-22.14-2.98-33.54z" fill="url(#c)" transform="translate(231.24 -254.08)"/>
  <path class="flamme04 hidden"d="M96.39 286.06c3.47-11.18 11.07-44.9 25.43 1.06 4.52 12.03 3.64 20.8-1.7 28.94-5.35 8.13-19.38 17.42-29.57.24-5.23-8.82 2.74-19.97 5.84-30.24z" fill="url(#d)" transform="translate(231.24 -254.08)"/>
  <path id="Daumen02" class="hidden" d="M172.76 269.17c12.85-49.8 37.27-69.02 64.02-78.5 21.45-7.59 52.49-3.87 58.41-31.57 28.52-115.12 66.1-54.77 76.26-36.74 14.44 31.75-7.08 53.53-20.6 65.69-41.98 32.42-51.35 24.84-12.76 40.48 126.88 51.43 28.67 110.5 2.78 104.1-84.14-20.83-84.2-112.04 0-85.73" fill="#4d421b"  stroke-width="4" stroke-opacity=".22"/>
  <path class="flamme02 hidden" d="M87.61 277.38c5.44-11.77 18.76-47.67 27.23 4.96 3.04 13.89 4.73 23.93-2.28 32.09-6.99 8.13-23.52 16.24-31.89-4.15-4.29-10.47 2.03-22.08 6.94-32.9z" fill="url(#e)" transform="translate(231.24 -254.08)"/>
  <path class="docht  hidden" d="M327.88 61.06l.16 28.88" fill="#4d421b" stroke="#866a1f" stroke-width="2.81" stroke-opacity=".22"/>
</svg>
  
<div class="lines center">
  <h2 class="line line01">Everyone a brainwave</h2>
  <h2 class="line line01">to enjoy life easier.</h2>
  <h2 class="line line02">Happy New Year.</h2>
</div> 

</div>


              
            
!

CSS

              
                body {
	width:100%;
	height:100%;
	background: #4d421b;
	overflow: hidden;
}
.hidden{
  visibility:hidden;
}


#altesJahr {
	position:absolute;
	top: 50%;
	left: 50%;
	padding: 5vw;
	width: 90vw;
	fill:#d6a70f;
	stroke: #d6a70f;
	visibility:hidden;
	overflow: visible;
}

#daumen {
	position: absolute;
	left: 19%;
	top: 55%;
	width: 90vw;
	max-width:500px;
	visibility:hidden;
}
.kontur{
  stroke:#866a1f;
}
.neuesJahr {
	position: absolute;
	top: 47%;
	left: 50%;
	font: 800 38vw Montserrat, sans-serif;
	letter-spacing: -0.07ex;
	line-height: 0vw;
	color:#4d421b;
	margin: 0;
	text-shadow: 0 0 10px #4d421b;
	visibility:hidden;
}
.shadow01 {
  text-shadow:  6px 15px 30px rgba(221, 165, 7, 0.8);
}

.lines{
	position: absolute;
	top: 55%;
	left: 50%;
	width: 100%;
	text-align:center;
}
.line{
  @import url(http://fonts.googleapis.com/css?family=Indie+Flower);
  margin: 0;
  font-weight: 300;
  font-size: 5vw;
  font-family: 'Indie Flower', cursive;
  color:#d6a70f;
  visibility:hidden;
}




/* Media Queries */
@media screen and (max-width: 47em) {

.line {font-size: 8vw;}

}
@media screen and (max-height: 30em) {

#daumen {
	position: absolute;
	max-width:300px;
}

}
              
            
!

JS

              
                TweenLite.set(".center",{xPercent:'-50',yPercent:'-50'})
TweenLite.set("#altesJahr, #daumen, .control",{autoAlpha:1})

// Animation INTRO =====================================================

var zuEnde = new TimelineMax();
zuEnde.staggerTo('#altesJahr path',4, {
  x: 700,
  y: 700,
  rotation: -1000,
  scale: 0,
  opacity: 0,
  ease: Power3.easeOut
},0.1,2)
.set('h1',{autoAlpha:1},5.5)
.to("h1",1, {className:"+=shadow01",  ease: Sine.easeOut}, 5.5)
.to("h1",1, {className:"-=shadow01",  ease: Sine.easeOut}, "+=2")
.staggerFrom('.line01', 0.2, {autoAlpha: 0, y: -100},1.5,"-=4")
.from("#daumen",1,{autoAlpha:0,opacity:0}, "-=0.5")
.to('.line01',0,{autoAlpha:0}, "+=1")
.to("#Daumen01",0.8, {morphSVG:"#Daumen02", repeat:5, yoyo:true, repeatDelay:0, ease: Back.easeOut.config(1.7), onComplete:flicker})
.to('.line02',0.5,{autoAlpha:1, y: -50}, "+=1")

function flicker(){
  var light = new TimelineMax({onComplete:flicker});
  var time = [0.05, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3];
  var randomTime = time[Math.floor(Math.random() * time.length)];
  var morph = [".flamme02", ".flamme03", ".flamme04"];
  var randomMorph = morph[Math.floor(Math.random() * morph.length)];
  
  light.set("#flamme01,.docht",{autoAlpha:1})
     .to("#flamme01", randomTime, {morphSVG:randomMorph, repeat:1, yoyo:true, repeatDelay:0.02})
}

              
            
!
999px

Console