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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              #timeline-1.timeline-container
  .timeline-header
    h2.timeline-header__title HARUN PEHLİVAN
    h3.timeline-header__subtitle IT (CODER,DESIGNER,DEVELOPER,ADMİNİSTRATOR) FOUNDER CEO BLOGGER INITIATIVE RESEARCH AND DEVELOPMENT HP IT GROUP (TEBİM TEBİTAGEM)
  .timeline
    .timeline-item(data-text='DOĞUMU')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81578/thumbnail_090820131870.jpg')
        h2.timeline__content-title
          | 1984
        p.timeline__content-desc
          | 22/07/1984'TE ÇORUMDA DOĞDU
    .timeline-item(data-text='İLKOKUL')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81577/thumbnail_14937101_1681103132136296_1943163407_n.jpg')
        h2.timeline__content-title İLKOKUL
        p.timeline__content-desc
          | HALEN İKAME ETMEKTE OLAN AMASYANIN SULUOVA İLÇESİNDE BULUNAN SULUOVA MEHMET BİLGİLİ İLKOKULU
    .timeline-item(data-text='SULUOVA MEHMET BİLGİLİ İLKOKULU')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81585/thumbnail_Mehmet_Bilgili__lkokulu.jpg')
        h2.timeline__content-title İLKOKUL
        p.timeline__content-desc
          | SULUOVA MEHMET BİLGİLİ İLKOKULU
    .timeline-item(data-text='')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81586/thumbnail_k_20210706_20170719_095852.jpg')
        h2.timeline__content-title ORTAOKULU
        p.timeline__content-desc
          | HALEN İKAMET ETTİĞİ AMASYANIN SULUOVA İLÇESİNDE BULUNAN SULUOVA İLKÖĞRETİM OKULUNDA 12 YILLIK ZORUNLU EĞİTİM VE ÖĞRETİMİ ALDI
    .timeline-item(data-text='İMAM-HATİP LİSESİ')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81587/thumbnail_Suluova_Anadolu__mam-Hatip_lisesi.jpg')
        h2.timeline__content-title 2005
        p.timeline__content-desc
          | İLERİ DİN EĞİTİMİ VE ÖĞRETİMİNİ İKAMET ETTİĞİ AMASYANIN SULUOVA İLÇESİNDE BULUNAN SULUOVA İMAM-HATİP LİSESİNİ DEVLET PARASIZ YATILI ÖĞRENCİ OLARAK MEZUN OLDU
    .timeline-item(data-text='TİCARET MESLEK LİSESİ')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81588/thumbnail_k_17131312_aaa.jpg')
        h2.timeline__content-title 2010
        p.timeline__content-desc
          | HAYALİNDEKİ MESLEKLERİNDEN BİRİ OLAN BİLİŞİM TEKNOLOJİLERİ MESLEKİ VE TEKNİK EĞİTİMİ VE ÖĞRETİMİNİ MESLEKİ AÇIK ÖĞRETİM LİSESİ YÜZYÜZE ĞİTİM VE ÖĞRETİMİNİN İKAMET ETTİĞİ AMASYANIN SULUOVA İLÇESİNDE BULUNAN SULUOVA TİCARET MESLEK LİSESİNDEN ALDI
    .timeline-item(data-text='ENGELSİZ YARINLAR PROJESİ')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81460/thumbnail_image.aspx141.jpg')
        h2.timeline__content-title 2010
        p.timeline__content-desc
          | SULUOVA TİCARETMESLEK LİSESİ​NDE KEN AB HİBE DESTEKLİ GENÇ ENGELLİ İSDİHTAMINA YÖNELİK ENGELSİZ YARINLAR PROJESİ KAPSAMINDA ÖN MUHASEBE KURSUNA KATILDI
    .timeline-item(data-text='TERCUMAN INFORMATICS CENTER')
      .timeline__content
        img.timeline__img(src='http://images.ticiz.com/2983370_w0_h120_b47f4647f782be593863fd591c.png')
        h2.timeline__content-title 2008
        p.timeline__content-desc
          | TERCUMAN INFORMATICS CENTER​ KURDU
          | 
    .timeline-item(data-text='AMASYA ÜNİVERSİTESİ MERZİFON MESLEK YÜKSEKOKULU')
      .timeline__content
        img.timeline__img(src='https://www.amasya.edu.tr/images/aulogo.png')
        h2.timeline__content-title 2012
        p.timeline__content-desc
          | AMASYA ÜNİVERSİTESİ MERZİFON MESLEK YÜKSEKOKULU BİLİGİSAYAR PROGRAMCILIĞI TERK
    .timeline-item(data-text='TERCUMAN EDUCATION, SCIENCE,TECHNICAL RESEARCH AND DEVELOPMENT CENTER')
      .timeline__content
        img.timeline__img(src='http://images.ticiz.com/2983370_w0_h120_b47f4647f782be593863fd591c.png')
        h2.timeline__content-title 2012
        p.timeline__content-desc
          | TERCUMAN EDUCATION, SCIENCE,TECHNICAL RESEARCH AND DEVELOPMENT CENTER KURDU
    .timeline-item(data-text='TEBİMTEBİTAGEM GAZETESİ RADYO TELEVİZYONU ')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81381/medium_genellogo.png')
        h2.timeline__content-title 2013
        p.timeline__content-desc
          | TEBİMTEBİTAGEM GAZETESİ RADYO TELEVİZYONU
          | 
    .timeline-item(data-text='HARUN PEHLİVAN INFORMATION TECHNOLOGY GROUP')
      .timeline__content
        img.timeline__img(src='http://onepagerapp.com/uploads/gallery_image/81379/medium_logohpitgroup.png')
        h2.timeline__content-title 2019
        p.timeline__content-desc
          | HARUN PEHLİVAN INFORMATION TECHNOLOGY GROUP
.demo-footer
  a(href='https://www.doyoubuzz.com/harun-pehlivan', target='_blank') Source/Kaynak
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One');
// Responsive
@mixin responsive() {
  @media only screen and (max-width: 767px) {
    @content;
  }
}

$content-font: Cardo;
$heading-font: 'Pathway Gothic One',
sans-serif;
$timeline-width:700px;
$timeline-container-width:100%;
.timeline {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: $timeline-width;
  position: relative;
  &__content {
    &-title {
      font-weight: normal;
      font-size: 66px;
      margin: -10px 0 0 0;
      transition: .4s;
      padding: 0 10px;
      box-sizing: border-box;
      font-family: $heading-font;
      color: #fff;
    }
    &-desc {
      margin: 0;
      font-size: 15px;
      box-sizing: border-box;
      color: rgba(#fff, .7);
      font-family: $content-font;
      font-weight: normal;
      line-height: 25px;
    }
  }
  &:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    content: "";
    background: rgba(255, 255, 255, .07);
    @include responsive() {
      left: 40px;
    }
  }
  &-item {
    padding: 40px 0;
    opacity: .3;
    filter: blur(2px);
    transition: .5s;
    box-sizing: border-box;
    width: calc(50% - 40px);
    display: flex;
    position: relative;
    transform: translateY(-80px);
    &:before {
      content: attr(data-text);
      letter-spacing: 3px;
      width: 100%;
      position: absolute;
      color: rgba(#fff, .5);
      font-size: 13px;
      font-family: $heading-font;
      border-left: 2px solid rgba(#fff, .5);
      top: 70%;
      margin-top: -5px;
      padding-left: 15px;
      opacity: 0;
      right: calc(-100% - 56px);
    }
    &:nth-child(even) {
      align-self: flex-end;
      &:before {
        right: auto;
        text-align: right;
        left: calc(-100% - 56px);
        padding-left: 0;
        border-left: none;
        border-right: 2px solid rgba(#fff, .5);
        padding-right: 15px;
      }
    }
    &--active {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0px);
      &:before {
        top: 50%;
        transition: .3s all .2s;
        opacity: 1;
      }
      .timeline__content-title {
        margin: -50px 0 20px 0;
      }
    }
    @include responsive() {
      align-self: baseline !important;
      width: 100%;
      padding: 0 30px 150px 80px;
      &:before {
        left: 10px !important;
        padding: 0 !important;
        top: 50px;
        text-align: center !important;
        width: 60px;
        border: none !important;
      }
      &:last-child {
        padding-bottom: 40px;
      }
    }
  }
  &__img {
    max-width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, .4);
  }
  &-container {
    width: $timeline-container-width;
    position: relative;
    padding: 80px 0;
    transition: .3s ease 0s;
    background-attachment: fixed;
    background-size: cover;
    &:before {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(99, 99, 99, 0.8);
      content: "";
    }
  }
  &-header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    &__title {
      color: #fff;
      font-size: 46px;
      font-family: $content-font;
      font-weight: normal;
      margin: 0;
    }
    &__subtitle {
      color: rgba(255, 255, 255, .5);
      font-family: $heading-font;
      font-size: 16px;
      letter-spacing: 5px;
      margin: 10px 0 0 0;
      font-weight: normal;
    }
  }
}

// DEMO
.demo-footer {
  padding: 60px 0;
  text-align: center;
  a {
    color: #999;
    display: inline-block;
    font-family: $content-font;
  }
}
            
          
!
            
              (function($) {
  $.fn.timeline = function() {
    var selectors = {
      id: $(this),
      item: $(this).find(".timeline-item"),
      activeClass: "timeline-item--active",
      img: ".timeline__img"
    };
    selectors.item.eq(0).addClass(selectors.activeClass);
    selectors.id.css(
      "background-image",
      "url(" +
        selectors.item
          .first()
          .find(selectors.img)
          .attr("src") +
        ")"
    );
    var itemLength = selectors.item.length;
    $(window).scroll(function() {
      var max, min;
      var pos = $(this).scrollTop();
      selectors.item.each(function(i) {
        min = $(this).offset().top;
        max = $(this).height() + $(this).offset().top;
        var that = $(this);
        if (i == itemLength - 2 && pos > min + $(this).height() / 2) {
          selectors.item.removeClass(selectors.activeClass);
          selectors.id.css(
            "background-image",
            "url(" +
              selectors.item
                .last()
                .find(selectors.img)
                .attr("src") +
              ")"
          );
          selectors.item.last().addClass(selectors.activeClass);
        } else if (pos <= max - 40 && pos >= min) {
          selectors.id.css(
            "background-image",
            "url(" +
              $(this)
                .find(selectors.img)
                .attr("src") +
              ")"
          );
          selectors.item.removeClass(selectors.activeClass);
          $(this).addClass(selectors.activeClass);
        }
      });
    });
  };
})(jQuery);

$("#timeline-1").timeline();

            
          
!
999px

Console