cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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="outter-wrapper">
  <div class="outer-countainer">
  
    <div class="container">
      <div class="divider"></div>
      <div class="logo-background"></div>
      <div class="img-background"></div>
      <div class="text-wrapper">
        <div class="black top"></div>
        <div class="black bottom"></div>
        <div class="text">
          <h2 class="tym-miesiacu">W tym miesiącu<br/>
  copywriter
  <h2 class="gratis">- Gratis!!! -</h2>
          <div class="web-wrapper">
            <a href="http://www.websitestyle.pl"><h3 class="web-addres">www.websitestyle.pl <div class="web-background"></div></h3></a>
          </div>
          </h2>
        </div>
      </div>
      <div class="svg-wrapper">
        <svg id="wslog" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 104.44">
                      <title>logo</title>
                      <polygon id="letter-1"
                               points="47.71 2.85 41.88 2.85 25.04 55.17 9.61 2.85 0 2.85 20.67 68.69 28.17 68.69 44.52 18.92 51.61 41.23 56.48 31.1 47.71 2.85"/>
                      <path id="letter-2" d="M91.1,32.5V42l8.27-2.68V38q0-8-2.93-11.25T85.79,23.52H68.89l-4.31,9H91.1Z"
                            transform="translate(0 -0.28)"/>
                      <path id="letter-3"
                            d="M97.18,54.12q-2.85-3.24-10.57-3.24H55.75L51.27,60.2a29.38,29.38,0,0,0,3.69.22H91.32V80.23H48.23V69.64l-1.71.45L40.38,82.88a9.33,9.33,0,0,0,1.73,3.24Q45,89.39,52.84,89.39H86.61q7.83,0,10.62-3.24T100,73.81V66.4Q100,57.36,97.18,54.12Z"
                            transform="translate(0 -0.28)"/>
                      <line id="letter-4"  x1="75.14" y1="0.21" x2="26.52" y2="104.23"/>
                  </svg>
      </div>
  
    </div>
  </div>
  <div id="controls">
    <div id="slider"></div>
  <div class="controls-buttons">
      <input type="button" id="playBtn" value="play">
      <input type="button" id="pauseBtn" value="pause">
      <input type="button" id="resumeBtn" value="resume">
      <input type="button" id="reverseBtn" value="reverse">
    </div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Titillium+Web");
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Titillium Web', sans-serif;
}


.outter-wrapper{
 display: flex;
 justify-content: center;
 margin: 0 auto;
 flex-direction: column;
 width: 100%;
}
.outer-countainer {
  display: flex;
  justify-content: center;
  height: 100%;
  
}

.container {
  width: 580px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
/*       border: 1px solid grey; */
  font-family: 'Titillium Web', sans-serif;
  position: relative;
  background: #fff;
  overflow: hidden;
   visibility:hidden;
  opacity:0;
}

.text-wrapper {
  position: absolute;
  left: -22px;
  top: 0;
  width: 350px;
  height: 400px;
  visibility:hidden;
  opacity:0;
}

.black {
  width: 100px;
  height: 5px;
  background: #000;
  position: absolute;
  left: 139px;
}

.black.top {
  top: 0;
    visibility:hidden;
  opacity:0;
}

.black.bottom {
  bottom: 0;
  visibility:hidden;
  opacity:0;
  
}

.text {
  text-align: center;
  position: absolute;
  left: 60px;;
  top: 20px;
}

.tym-miesiacu {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 35px;
/*   visibility:visible!important;
  opacity:1!important; */
}

.gratis {
  font-weight: 100;
  font-size: 1.8rem;
  text-transform: uppercase;
/*    visibility:hidden;
  opacity:0; */
}

.web-addres {
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 1rem;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  position: absolute;
  z-index: 2;
  left: 6px;
  
}

.web-background {
     width: 245px;
    height: 60px;
    background: #000;
    content: " ";
    display: block;
    position: absolute;
    top: 0px;
    left: -4px;
    z-index: -1;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: skewX(-17deg);

}

.divider {
  height: 400px;
  width: 5px;
  background: #959595;
  transform: skewX(-17deg);
  position: absolute;
  right: 218px;
  z-index: 2;
   visibility:hidden;
  opacity:0;
}

.logo-background {
  background: #000;
  width: 580px;
  height: 400px;
  transform: skewX(-17deg);
  position: absolute;
  right: -360px;
}

.img-background {
  width: 580px;
  height: 400px;
  position: absolute;
  right: -162px;
  background: url(http://patryksmakosz.com/assets/background.jpg);
  z-index: 0;
   visibility:hidden;
  opacity:0;
}

#wslog {
  height: 150px;
  width: 150px;
  position: absolute;
  right: 17%;
  top: 60%;
  transform: translate(50%, -50%);
  fill: #fff;
  stroke: #fff;
  z-index: -1;
   visibility:hidden;
  opacity:0;
}

#controls {
   
 top: 125px;
 right: 0;
 width: 100%;


}

#slider {
    height: 13px;
        width: 40%;
    margin-top: 1rem!important;
    margin-bottom: 1rem!important;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.controls-buttons{
      width: 100%;
    display: flex;
    justify-content: center;
}

input[type="button"] {
    padding: 6px;
    margin: 4px;
    background: #47c9e5;
    border: none;
    color: #fff;
    text-transform: uppercase;
    border-radius: 10%;
    transition: 0.4s all ease-in;
    border: 1px solid #fff;
    cursor: pointer;
}
input[type="button"]:hover{
  background: #fff;
  color: #47c9e5;
  border: 1px solid #47c9e5;
}


.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid #47c9e5;
    background: #47c9e5;
    font-weight: normal;
    color: #ffffff;
  cursor:pointer;
}
            
          
!
            
              $("#slider").slider({
  range: false,
  min: 0,
  max: 100,
  step:.1,
  slide: function ( event, ui ) {
    tl.pause();
   
    tl.progress( ui.value/100 );
    }
});
 
// updateSlider function
function updateSlider() {
  $("#slider").slider("value", tl.progress() *100);
}



var topBlack = $('.black.top'),
    bottomBlack = $('.black.bottom'),
    divider = $('.divider'),
    tymMiesiacu = $('.tym-miesiacu'),
    gratis = $('.gratis'),
    webWrapper = $('.web-rapper'),
    webAddres = $('.web-addres'),
    webBackground = $('.web-background'),
    logo = $('#wslog'),
    txtWrapper = $('.text-wrapper'),
    literaW = $('#letter-1'),
    literaS1 = $('#letter-2'),
    literaS2 = $('#letter-3'),
    linia = $('#letter-4'),
    logoBackground = $('.logo-background'),
    image = $('.img-background'),
    container = $('.container'),
    slider = $("#slider"),
    shapes = $("rect, circle, ellipse, polyline, line");
    


tl = new TimelineMax({onUpdate:updateSlider,repeat:-1,delay:2}),
  tymMiesiacuSplit = new SplitText(tymMiesiacu, {type:"words,chars"}), 
  gratisSplit = new SplitText(gratis,{type:"chars"}),
    gratisChars = gratisSplit.chars,  
    chars = tymMiesiacuSplit.chars; //an array of all the divs that wrap each character;


tl
.set(tymMiesiacu, {perspective:400})
.set([divider,bottomBlack,topBlack,image,logoBackground],{autoAlpha:0})
.to(container,0.3,{autoAlpha:1})
.set(logo,{zIndex:1,right:'50%',top:'50%',fill:'none',stroke:'none'})
.to(logo,0.3,{autoAlpha:1})
.fromTo(literaW, 0.6, {drawSVG:"0%",stroke:'#000'}, {drawSVG:"100%", immediateRender:false}, "+=0.1")
.fromTo([literaS1,literaS2], 0.6, {drawSVG:"0%",stroke:'#000'}, {drawSVG:"100%", immediateRender:false}, "-=0.6")
.to(literaW,0.6,{fill:'#000'})
.to([literaS1,literaS2],0.6,{fill:'#000'},'-=0.6')
.fromTo(linia, 1.2, {drawSVG:"40% 60%",stroke:'#000'}, {drawSVG:"100%", immediateRender:false,ease: Back.easeOut.config(1.7), y: 0}, "-=0.4")
.to(logoBackground,0.6,{autoAlpha:1,left: 290,width:580,transform:'skewX(-25deg)',ease: Power3.easeOut, y: 0 },'-=0.4')
.to([literaS1,literaS2],0.6,{fill:'#fff',stroke:'#fff'},'-=0.4')
.to(linia,0.2,{autoAlpha:0})
.fromTo(literaW, 0.6, {drawSVG:"100%",stroke:'#000',fill:'#fff'}, {stroke:'#000',fill:'none',drawSVG:"0%", immediateRender:false}, "+=0.1")
.fromTo([literaS1,literaS2], 0.6, {drawSVG:"100%",stroke:'#fff',fill:'#000'}, {stroke:'#000',fill:'none',drawSVG:"0%", immediateRender:false}, "-=0.6")
.to(logoBackground,0.8,{autoAlpha:1,zIndex:1,width:0,transform:'skewX(-25deg)',ease: Power3.easeOut, y: 0 },"-=0.8")
.fromTo(image,1,{autoAlpha:0,x:80},{autoAlpha:1,x:0},"-=0.6")
.set(txtWrapper,{autoAlpha:1})

.staggerFrom(chars, 0.8, {autoAlpha:0, scale:0, y:80, rotationX:180, transformOrigin:"0% 50% -50",  ease:Back.easeOut}, 0.01, "+=0")
.staggerFrom(gratisChars, 0.8, {autoAlpha:0, scale:0, y:180, rotationX:180,rotationY:90, transformOrigin:"0% 50% -50",  ease:Back.easeOut}, 0.2)
.fromTo(divider,0.6,{autoAlpha:0,height:0},{autoAlpha:1,height:'100%'},'-=0.6')
.set(webWrapper,{autoAlpha:1})
.fromTo(webBackground,0.6,{x:'+=100',autoAlpha:1,width:0,  ease:Back.easeOut},{autoAlpha:1,width:245,x:0,  ease:Back.easeOut})

.fromTo(topBlack,0.6,{autoAlpha:0,x:-100},{autoAlpha:1,width:100,x:0,  ease:Back.easeOut},'-=0.6')
.fromTo(bottomBlack,0.6,{autoAlpha:0,x:100},{autoAlpha:1,width:100,x:0,  ease:Back.easeOut},'-=0.6')

tl.set({}, {}, "+=0.5")
.to(webBackground, 0.6, {scale:1.08, repeat:5, yoyo:true})
.to(divider,3,{height:0})





;



 playBtn = $("#playBtn"),
        pauseBtn = $("#pauseBtn"),
        resumeBtn = $("#resumeBtn"),
        reverseBtn = $("#reverseBtn");


 playBtn.click(function(){
        tl.play();
    });
    pauseBtn.click(function(){
        tl.pause();
    });
    resumeBtn.click(function(){
 
        tl.resume();
    });
    reverseBtn.click(function(){
        tl.reverse();
    });


            
          
!
999px
Close

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.

Go PRO

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

Console