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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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="canvas">
  
  <div class="slide first-slide slide--active">
    <div class="header">Твой Фогейм</div>
    <div class="subheader">Читай о последних событиях в твоей игре</div>
    <div class="dots">
      <div class="dot dot--active"></div>
      <div class="dot"></div>
      <div class="dot"></div>
    </div>
<!--     <div class="title">Верните Запускатр!</div> -->
     <div class="forgame">
       <svg class="logo" width="96px" height="96px" viewBox="115 236 96 96">
      <path d="M202.381078,300.059381 L183.880581,300.035722 C182.525385,299.839576 181.148457,300.199418 180.062245,301.033595 C179.231807,302.193748 178.850248,303.61594 178.988381,305.03622 L178.988381,323.792611 C178.988381,328.07915 176.384402,329.777065 171.791271,331.110346 C168.895288,331.713391 165.944164,332.011455 162.986147,331.999663 C159.986628,332.005333 156.996199,331.669623 154.072523,330.999007 C149.775679,329.959382 146.986694,328.076367 146.986694,323.79122 L146.986694,304.532412 C146.977475,303.314036 146.500934,302.145733 145.655493,301.268798 C144.804896,300.480883 143.700716,300.023285 142.542401,299.978661 L123.207295,300.04268 C118.922969,300.04268 117.225931,297.498592 115.891948,292.905871 C115.287883,290.006672 114.989038,287.052135 115.000307,284.090632 C114.994532,281.089558 115.33007,278.097572 116.000447,275.172404 C117.942304,269.07522 146.648677,239.093106 154.226926,236.891384 C157.122913,236.288369 160.074035,235.990306 163.03205,236.002067 C165.883835,235.970221 168.727815,236.306548 171.493593,237.002723 C175.790438,238.040956 179.052368,239.925363 179.052368,244.21051 L178.978644,263.087983 C178.782207,264.443688 179.141357,265.821307 179.974611,266.908291 C181.134221,267.739041 182.555633,268.120786 183.97517,267.982709 L202.796992,267.982709 C207.079926,267.982709 208.361051,270.646487 209.68947,275.243382 C210.568815,278.096312 211.010617,281.066175 210.999806,284.051663 C211.007731,287.052464 210.674528,290.044432 210.006622,292.969891 C208.968925,297.268956 206.668186,300.059381 202.381078,300.059381 Z M130,278 L123,284 L129.99877,290 L129.99877,278 L130,278 Z M162.994238,243 L157,250 L169,250 L162.994238,243 Z M157,317 L162.99808,324 L169,317 L157,317 L157,317 Z M195.994929,278 L195.994929,290 L202.994929,284 L195.994929,278 Z" stroke="none" fill="#151517" fill-rule="evenodd"></path>
    </svg>
    </div>
    <div class="news"></div>
    <div class="button">Дальше</div>
  </div>
  
  <div class="slide second-slide">
    <div class="header">Играй в 4DUCK</div>
    <div class="subheader">Баффы, бонусы и предметы в каждой утке</div>
    <div class="dots">
      <div class="dot"></div>
      <div class="dot dot--active"></div>
      <div class="dot"></div>
    </div>
    <div class="button">Дальше</div>
    <div class="dog"><img src="http://chetverukhin.ru/images/dog.gif" alt="" /></div>
<!--     <div class="duck"><img src="http://chetverukhin.ru/images/duck-up.gif" alt="" /></div> -->
    <div class="grass"><img src="http://chetverukhin.ru/images/grass.png" alt="" /></div>
  </div>
  
  <div class="slide third-slide">
    <div class="forgamer-gradient"></div>
    <div class="header">Читай Фогеймер</div>
    <div class="subheader">Об играх без воды и рекламы</div>
    <div class="dots">
      <div class="dot"></div>
      <div class="dot"></div>
      <div class="dot dot--active"></div>
    </div>
    <div class="forgamer"><img src="http://chetverukhin.ru/images/app.png" alt="" /></div>
    <div class="forgamer-logo"><img src="http://chetverukhin.ru/images/forgamer-logo.png" alt="" /></div>
    <div class="button">Го уже</div>
</div>
  
</div>





            
          
!
            
              @font-face{

font-family:"Proxima N W01 Black";

src:url("https://www.fuelcdn.com/fonts/proxima-nova/9b05cd3b-19d8-496a-816b-8de46cf24af1.eot?#iefix");

src:url("https://www.fuelcdn.com/fonts/proxima-nova/9b05cd3b-19d8-496a-816b-8de46cf24af1.eot?#iefix") format("eot"),url("https://www.fuelcdn.com/fonts/proxima-nova/43106d4c-07a9-48c0-bdeb-d82f359c85f5.woff") format("woff"),url("https://www.fuelcdn.com/fonts/proxima-nova/7783372a-b74a-4eb3-902f-ab18b106eb46.ttf") format("truetype"),url("https://www.fuelcdn.com/fonts/proxima-nova/22e79766-6290-47c1-b1af-93665675dd48.svg#22e79766-6290-47c1-b1af-93665675dd48") format("svg");

}

body {
  -webkit-font-smoothing: antialiased;
}

.transition-opacity-in {
  transition: opacity .5s ease-in;
}

.transition-background-in {
  transition: background .5s ease-in;
}

.first-slide {
  transform: translate(-320px, 0);
  transition: transform .2s ease-in;
  
  &.slide--active {
    transform: translate(0,0);
  }
  
  &.slide--ready {
    
    .dots {
      opacity: 1;
    }
    
    .dot {
      background: black;
    }
    
    .header {
      opacity: 1;
    }
    
    .subheader, .button {
      opacity: .5;
    }
    
    .forgame {
      background: transparent;
    }
  }
  
  .header {
    color: #333;
  }
  
  .dot {
    background-color: black;
  }
}

.second-slide {
  transform: translate(320px, 0);
  transition: transform .2s ease-in;
  background-color: #00C7FA;
  
  &.slide--active {
    transform: translate(0px,0);
    
    .duck {
      visibility: visible;
    }
  }
  
  &.slide--superinactive {
    transform: translate(-320px,0);
  }
  
  .duck {
    visibility: hidden;
  }
  
  .header, .dots, .subheader, .button {
    color: white;
    opacity: 1;
  }
  
  .dot {
    background-color: white;
  }
}

.third-slide {
  transform: translate(320px,0);
  transition: transform .2s ease-in;
  
  &.slide--active {
    transform: translate(0,0);
  }
  
  .header, .dots, .subheader, .button {
    color: white;
    opacity: 1;
  }
  
  .dot {
    background-color: white;
  }
}

.slide {
  height: 100%;
}

.header, .subheader, .button {
  font-family: "Proxima Nova", sans-serif;
  .transition-opacity-in;
  z-index: 3;
  position: relative;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

.header {
  font-weight: 900;
  font-size: 28px;
  opacity: 0;
  padding: 40px 0 20px;
}

.subheader, .button {
  font-weight: bold;
  font-size: 18px;
  opacity: 0;
  line-height: 24px;
}

.button {
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 10;
}

.dots {
  position: absolute;
  .transition-opacity-in;
  z-index: 3;
  top: 160px;
  opacity: 0;
  display: flex;
  justify-content:center;
  width: 100%;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  opacity: .4;
  
  & + & {
    margin-left: 20px;
  }
  
  &--active {
    opacity: 1;
  }
}


body {
  background: #151517;
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.canvas {
  width: 320px;
	height: 568px;
  position: relative;
  overflow: hidden;
}

.forgame, .app, .news, .forgame:before, .slide, .forgamer-gradient, .forgamer-logo, .forgamer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.forgame {
  background: #fac704;
  display: flex;
  z-index: 2;
  justify-content: center;
  align-items: center;
  .transition-background-in;
  
  .logo {
    position: absolute;
    top: 236px;
    transition: top .4s ease-in; 
    
    // &--active {
    //   top: 237px;
    // }
  }
  
  &:before {
    content: '';
    background-image: linear-gradient(-180deg, #FAC704 0%, rgba(250,199,4,0.89) 18%, rgba(250,199,4,0.75) 49%, rgba(250,199,4,0.80) 79%, #FAC704 100%);
  }
}

.news {
  z-index: 1;
  background: #fac704;
  // background: url(http://chetverukhin.ru/images/news.png);
}

.grass {
  bottom: -4px;
}

.duck {
  bottom: 0;
  transform: translate(0, -70px);
  transition: transform 1.5s ease-in;
  
  &--fly {
    transform: translate(330px, -500px);
  }
  
  img {
    width: 60%;
  }
}

.dog {
  bottom: 0;
  transform: translate(87px, 0);
  transition: transform .5s ease-in;
  
  &--show {
    transform: translate(87px, -170px);
  }
  
  img {
    width: 85%;
  }
}

.dog, .duck, .grass{
  z-index: 3;
  position: absolute;
}

.forgamer-logo {
  z-index: 3;
  top: 140px;
}

.third-slide .header, .third-slide .subheader, .third-slide .dots, .third-slide .forgamer-logo, .third-slide .button, .third-slide .forgamer-gradient {
  .transition-opacity-in;
}

.hide {
  opacity: 0!important;
}

.forgamer-gradient {
  z-index: 3;
  background-image: linear-gradient(-1deg, #151517 2%, rgba(6,6,6,0.80) 22%, rgba(10,10,11,0.79) 52%, rgba(13,13,14,0.85) 73%, #151517 100%);
}

.title {
  position: absolute;
    top: 320px;
    z-index: 3;
    color: black;
    opacity: .5;
    font-family: "Proxima Nova", sans-serif;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
  transition: opacity .4s ease-in-out;
  
  &--active {
    opacity: 0;
  }
}
            
          
!
            
              var circle = $('.logo');
var heartbeat = new TimelineMax();

heartbeat
  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .2, {scale: 1, ease: Power1.easeOut})
  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .8, {scale: 1, ease: Power1.easeOut})

  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .2, {scale: 1, ease: Power1.easeOut})
  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .8, {scale: 1, ease: Power1.easeOut})

  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .2, {scale: 1, ease: Power1.easeOut})
  .to(circle, .2, {scale: 1.03, ease: Power1.easeIn})
  .to(circle, .8, {scale: 1, ease: Power1.easeOut})

  .to(circle, .7, {scale: .9, ease: Power1.easeOut})
  .to(circle, .4, {scale: 1.3, ease: Power1.easeIn, onStart: goFirstSlide})

function goFirstSlide() {
  $('.first-slide').toggleClass('slide--ready');
  $('.title').toggleClass('title--active');
  $('.forgame .logo').toggleClass('logo--active')
}

$('.first-slide .button').click(function() {
  $('.first-slide').removeClass("slide--active");
  $('.second-slide').addClass("slide--active");
  // setTimeout(duckFly, 0);
  setTimeout(dogShow, 0);
})

$('.second-slide .button').click(function() {
  $('.second-slide').removeClass("slide--active");
   $('.second-slide').addClass("slide--superinactive");
  $('.third-slide').addClass("slide--active");
})

$('.third-slide').click(function() {
  console.log('go')
  $('.third-slide .header, .third-slide .subheader, .third-slide .dots, .third-slide .forgamer-logo, .third-slide .button, .third-slide .forgamer-gradient').addClass("hide");
});

function duckFly () {
  $('.duck').addClass('duck--fly');
}

function dogShow() {
  $('.dog').addClass('dog--show');
}

$( "body" ).click(function() {
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console