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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                
<header>And so, it begins...</header>
<section class="projects">
    <div class="projects-timeline">
        <div class="projects-tl-placeholder">
            <!-- projects -->
        </div>
    </div>
    <div class="projects-list">
        <div class="project " data-year="2020">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 1</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2020">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 2</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2020">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 3</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2019">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 4</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2019">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 5</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2019">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 6</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 7</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 8</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 9</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 10</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 11</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 12</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 13</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 14</h2>
                            <div class="status">in progress</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project " data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 15</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="project even" data-year="2018">
            <div class="img">
                <div class="img-list"></div>
                <div class="texts-wrap-box">
                    <div class="texts-wrap">
                        <div class="texts">
                            <h2>Project 16</h2>
                            <div class="status">done</div>
                            <p>Lorem ipsum dolor sit amet...</p>
                            <div class="details">
                                <div class="item">
                                    <div class="title">A:</div>
                                    <div class="desc">no</div>
                                </div>
                                <div class="item">
                                    <div class="title">B:</div>
                                    <div class="desc">yes</div>
                                </div>
                            </div>

                            <div class="buttons">
                                <a class="button arrow black" href="#"
                                    target="_blank">MORE...</a>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<footer>This is the end</footer>
              
            
!

CSS

              
                @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
  $n: index($breakpoint-names, $name);
  @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
}

@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
  $min: map-get($breakpoints, $name);
  @return if($min != 0, $min, null);
}

@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
  $next: breakpoint-next($name, $breakpoints);
  @return if($next, breakpoint-min($next, $breakpoints) - .02, null);
}

@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
  @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
}

@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
  $min: breakpoint-min($name, $breakpoints);
  @if $min {
    @media (min-width: $min) {
      @content;
    }
  } @else {
    @content;
  }
}

@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
  $max: breakpoint-max($name, $breakpoints);
  @if $max {
    @media (max-width: $max) {
      @content;
    }
  } @else {
    @content;
  }
}

@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
  $min: breakpoint-min($lower, $breakpoints);
  $max: breakpoint-max($upper, $breakpoints);

  @if $min != null and $max != null {
    @media (min-width: $min) and (max-width: $max) {
      @content;
    }
  } @else if $max == null {
    @include media-breakpoint-up($lower, $breakpoints) {
      @content;
    }
  } @else if $min == null {
    @include media-breakpoint-down($upper, $breakpoints) {
      @content;
    }
  }
}

@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
  $min: breakpoint-min($name, $breakpoints);
  $max: breakpoint-max($name, $breakpoints);

  @if $min != null and $max != null {
    @media (min-width: $min) and (max-width: $max) {
      @content;
    }
  } @else if $max == null {
    @include media-breakpoint-up($name, $breakpoints) {
      @content;
    }
  } @else if $min == null {
    @include media-breakpoint-down($name, $breakpoints) {
      @content;
    }
  }
}

@mixin _assert-ascending($map, $map-name) {
  $prev-key: null;
  $prev-num: null;
  @each $key, $num in $map {
    @if $prev-num == null or unit($num) == "%" or unit($prev-num) == "%" {
      // Do nothing
    } @else if not comparable($prev-num, $num) {
      @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
    } @else if $prev-num >= $num {
      @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
    }
    $prev-key: $key;
    $prev-num: $num;
  }
}

@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
  @if length($map) > 0 {
    $values: map-values($map);
    $first-value: nth($values, 1);
    @if $first-value != 0 {
      @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
    }
  }
}

$grid-breakpoints: (
        xs: 0,
        x320: 321px,
        sm: 576px,
        md: 768px,
        lg: 992px,
        xl: 1200px,
        x1280: 1280px,
        x1366: 1366px,
        x1440: 1440px,
        x1600: 1601px,
        x1680: 1681px
) !default;

@include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
@include _assert-starts-at-zero($grid-breakpoints);


@import url('https://fonts.googleapis.com/css?family=Signika+Negative:300,400&display=swap');
body { 
  font-family: "Signika Negative", sans-serif; 
  font-weight: 300;
}

.projects-list-intro{
  .container.normal{
    max-width: initial;
    padding: 0 0 0 435px;

    @include media-breakpoint-down(x1440) {
      padding: 0 0 0 390px;
    }
    @include media-breakpoint-down(x1366) {
      padding: 0 0 0 350px;
    }
    @include media-breakpoint-down(lg) {
      padding: 0 0 0 310px;
    }
    @include media-breakpoint-down(md) {
      padding: 0 0 0 240px;
    }
    @include media-breakpoint-down(sm) {
      padding: 0 20px;
    }

    h2{
      margin-bottom: 60px;

      @include media-breakpoint-down(x1366) {
        margin-bottom: 40px;
      }
      @include media-breakpoint-down(lg) {
        margin-bottom: 30px;
      }
      @include media-breakpoint-down(md) {
        margin-bottom: 15px;
      }
    }
  }
}

.projects {
  display: flex;
  align-items: flex-start;
  padding: 0 170px 0 90px;

  @include media-breakpoint-down(x1366) {
    padding: 0 120px 0 90px;
  }
  @include media-breakpoint-down(lg) {
    padding: 0 90px;
  }
  @include media-breakpoint-down(md) {
    padding: 0 90px 0 20px;
  }
  @include media-breakpoint-down(sm) {
    padding: 0 20px;
  }

  .projects-timeline{
    display: block;
    //display: flex;
    //flex-flow: column;
    width: 345px;
    flex-grow: 0;
    flex-shrink: 0;
    padding: 0 0 0 70px;
    height: 100vh;
    overflow: hidden;
    position: sticky;
    top: 0;
    //background-color: rgba(blue, 0.1);

    &::-webkit-scrollbar {
      display: none;
    }

    &::scrollbar {
      display: none;
    }
    scrollbar-width: none;

    &::before{
      content:"";
      display: block;
      position: absolute;
      height: 100%;
      width: 2px;
      background-color: #d5d4d7;
      top: 0;
      left: 70px;
    }

    @include media-breakpoint-down(x1440) {
      width: 300px;
    }
    @include media-breakpoint-down(x1366) {
      width: 260px;
    }
    @include media-breakpoint-down(lg) {
      padding: 0 0 0 56px;
      width: 220px;

      &::before{
        left: 56px;
      }
    }
    @include media-breakpoint-down(sm) {
      display: none;
    }

    .projects-tl-placeholder {
      display: flex;
      flex-flow: column;
      width: 100%;
      min-height: 100%;
      //min-height: calc(100% - 110px);
      //margin-top: 110px;
    }

    .timeline-years{
      width: 2px;
      height: auto;
      background-color: #d5d4d7;
      position: relative;
      transition: all 0.3s ease-in-out;
      min-height: 32px;
      flex-grow: 1;

      /* &:first-of-type {
        padding-top: 100px;
      } */

      /* &:last-of-type {
        flex-grow: 1;
      } */

      .project-point:nth-child(2) {
        margin-top: 42px;
      }

      &.active{
        height: auto;
        flex-grow: 0;

        .project-point{
          opacity: 1;
          visibility: visible;
          max-height: 6em;
        }

        .years {
          color: #c37c3b;

          .point{
            background-color: #c37c3b;

            &:before{
              opacity: 0;
              visibility: hidden;
            }

            &:after{
              opacity: 1;
              visibility: visible;
            }
          }
        }
      }

      .years{
        position: absolute;
        //top: 0;
        right: -8px;
        z-index: 1;
        display: flex;
        align-items: center;
        line-height: 26px;
        font-size: 18px;
        //background-color: #fff;
        cursor: pointer;
        color: black;
        transition: all 0.3s ease-in-out;

        @include media-breakpoint-down(lg) {
          font-size: 16px;
          line-height: 24px;
        }

        &:hover{
          color: #c37c3b;

          .point{
            background-color: #c37c3b;

            &:before{
              opacity: 0;
              visibility: hidden;
            }

            &:after{
              opacity: 1;
              visibility: visible;
            }
          }
        }

        .point{
          width: 18px;
          height: 18px;
          background-color: #fff;
          border-radius: 100%;
          margin-left: 18px;
          position: relative;
          transition: all 0.3s ease-in-out;

          @include media-breakpoint-down(lg) {
            margin-left: 10px;
          }

          &:before{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate3d(-50%, -50%, 0);
            border: 2px solid #d5d4d7;
            width: 14px;
            height: 14px;
            border-radius: 100%;
            transition: none;
          }

          &:after{
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate3d(-50%, -50%, 0);
            width: 8px;
            height: 8px;
            background-color: #fff;
            border-radius: 100%;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease-in-out;
          }
        }
      }
    }

    .project-point{
      position: relative;
      left: 2px;
      z-index: 1;
      padding-left: 40px;
      width: 130px;
      cursor: pointer;
      opacity: 0;
      //visibility: hidden;
      overflow: hidden;
      max-height: 0em;
      transition: max-height 0.3s;

      //&:first-of-type {
      //  margin-top: 42px;
      //}

      @include media-breakpoint-down(x1366) {
        padding-left: 35px;
        width: 125px;
      }
      @include media-breakpoint-down(lg) {
        padding-left: 30px;
        width: 120px;
      }

      &.active, &:hover{
        &:before{
          background-color: darkmagenta;
        }

        .title{
          color: black;
        }

        .status{
          color: darkmagenta;
        }
      }

      &:before{
        content: '';
        position: absolute;
        top: 10px;
        left: 0;
        width: 32px;
        height: 1px;
        background-color: #d5d4d7;
        transition: all 0.3s ease-in-out;

        @include media-breakpoint-down(x1366) {
          width: 27px;
        }
        @include media-breakpoint-down(lg) {
          width: 22px;
          top: 8px;
        }
      }

      .title{
        font-size: 16px;
        line-height: 24px;
        color: #939bac;
        margin-bottom: 7px;
        font-weight: bold;
        transition: all 0.3s ease-in-out;

        @include media-breakpoint-down(lg) {
          font-size: 14px;
          line-height: 20px;
        }
      }

      .status{
        font-size: 12px;
        padding-bottom: 20px;
        line-height: 1;
        color: #dcb79c;
        transition: all 0.3s ease-in-out;
      }
    }
  }

  .projects-list {
    overflow: hidden;
    flex-grow: 1;

    @include media-breakpoint-down(sm) {
      width: 100%;
    }

    .project {
      width: 100%;
      margin-top: 90px;
      transition: 0.75s 0.4s cubic-bezier(0.5, 0, 0.5, 1);
      background-color: rgba(blue, 0.1);

      @include media-breakpoint-down(x1366) {
        margin-top: 50px;
      }
      @include media-breakpoint-down(md) {
        margin-top: 40px;
      }
      @include media-breakpoint-down(sm) {
        margin-top: 30px;
      }

      &:first-child{
        margin-top: 0;
      }

      &:nth-child(even) {
        margin-left: auto;

        .img {
          .img-list.owl-carousel {
            left: auto;
            right: 0;
          }

          .texts-wrap-box{
            justify-content: flex-start;
          }

          .texts-wrap {
            left: 0;
            right: auto;
          }
        }
      }

      .img {
        padding: 70px 0;
        position: relative;
        height: 600px;

        @include media-breakpoint-down(x1440) {
          height: 500px;
        }
        @include media-breakpoint-down(x1366) {
          height: 450px;
        }
        @include media-breakpoint-down(lg) {
          height: auto;
          padding: 0;
        }

        .img-list {
          width: 850px;

          @include media-breakpoint-down(x1440) {
            width: 700px;
          }
          @include media-breakpoint-down(x1366) {
            width: 650px;
          }
          @include media-breakpoint-down(md) {
            width: 100%;
          }
        }
      }

      .texts-wrap-box{
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;

        @include media-breakpoint-down(lg) {
          height: auto;
          display: block;
          margin-top: 2px;
        }
      }

      .texts-wrap {
        width: 100%;
        max-width: 540px;
        min-height: 450px;
        background-color: rgba(blue, 0.1);
        background-size: cover;
        padding: 60px;
        flex-direction: column;
        justify-content: space-between;

        @include media-breakpoint-down(x1440) {
          padding: 40px;
          min-height: 400px;
          max-width: 500px;
        }
        @include media-breakpoint-down(x1366) {
          padding: 30px;
          min-height: 350px;
          max-width: 450px;
        }
        @include media-breakpoint-down(lg) {
          min-height: initial;
          max-width: initial;
        }
        @include media-breakpoint-down(sm) {
          padding: 20px;
        }

        .texts {
          color: black;

          @include media-breakpoint-down(lg) {
            display: flex;
            flex-wrap: wrap;
          }

          h2{
            @include media-breakpoint-down(x1366) {
              font-size: 28px;
            }
            @include media-breakpoint-down(lg) {
              font-size: 24px;
              width: 100%;
            }
            @include media-breakpoint-down(sm) {
              font-size: 20px;
            }
          }

          .status {
            font-size: 16px;
            margin-top: 15px;
            color: darkmagenta;

            @include media-breakpoint-down(x1366) {
              margin-top: 10px;
            }
            @include media-breakpoint-down(lg) {
              font-size: 14px;
              width: 100%;
            }
            @media (max-width: 600px - 1px) {
              font-size: 14px;
            }
          }

          p {
            font-size: 16px;
            margin-top: 15px;

            @include media-breakpoint-down(x1366) {
              margin-top: 10px;
            }
            @include media-breakpoint-down(lg) {
              font-size: 14px;
              width: 100%;
            }
            @media (max-width: 600px - 1px) {
              font-size: 14px;
            }
          }

          .details{
            display: flex;
            align-items: flex-start;
            margin-top: 20px;

            @include media-breakpoint-down(x1366) {
              margin-top: 15px;
            }
            @include media-breakpoint-down(lg) {
              width: 60%;
            }
            @include media-breakpoint-down(md) {
              width: 100%;
            }

            .item{
              font-size: 16px;
              width: 50%;

              @include media-breakpoint-down(lg) {
                font-size: 14px;
              }

              .title{
                margin-bottom: 5px;
              }

              .desc{
              }
            }
          }
        }

        .buttons {
          margin-top: 40px;
          display: flex;
          justify-content: space-between;
          align-items: center;

          @include media-breakpoint-down(x1366) {
            margin-top: 25px;
          }
          @include media-breakpoint-down(lg) {
            margin-top: 15px;
            width: 40%;
          }
          @include media-breakpoint-down(md) {
            width: 100%;
          }
          @media (max-width: 600px - 1px) {
            display: block;
            margin-top: 20px;
          }

          .button {
            color: black;

            @include media-breakpoint-down(lg) {
              font-size: 12px;
            }

            &:hover {
              color: darkmagenta;
            }

            &:not(:first-of-type) {
              @media (max-width: 600px - 1px) {
                margin-top: 15px;
              }
            }
          }
        }
      }
    }
  }
}

header, footer {
  display: flex;
  width: 100%;
  height: 300px;
  justify-content: center;
  align-items: center;
  font-size: 10vmin;
  font-weight: 500;
}
              
            
!

JS

              
                gsap.registerPlugin(InertiaPlugin);
gsap.registerPlugin(Draggable);
gsap.registerPlugin(ScrollToPlugin);
gsap.registerPlugin(ScrollTrigger);

var scrollBusy = false;
var projects = [];
var cnt = 0;

var linkTO = 0;

$(".projects .projects-list .project").each(function (index, element) {
  var year = parseInt($(this).data("year"));
  if(!projects[year]) {
    projects[year] = [];
    cnt = 0;
  }
  $(element).data("pid", cnt);
  cnt++;
  projects[year].push({
    title: $(this).find(".texts h2").text(),
    status: $(this).find(".texts .status").text(),
    el: element
  });
});

var pText = "";
projects.forEach(function(val, id){
  var tmp = '<div class="timeline-years" data-year="'.concat(id,'"><div class="years">',id,'<div class="point"></div></div>');
  val.forEach(function(o, id2){
    tmp = tmp.concat('<div class="project-point" data-pid="',id2,'"><div class="title">',o.title,'</div><div class="status">',o.status,'</div></div>');
  });
  tmp = tmp.concat('</div>');
  pText = tmp.concat(pText);
});

//console.log(pText);
$(".projects-tl-placeholder").html(pText);
$(".projects-tl-placeholder .timeline-years").first().addClass("active").find(".project-point").first().addClass("active");

$(".timeline-years .years").click(function (e) {
  e.preventDefault();
  console.log("YEAR click");
  scrollBusy = true;
  $(".timeline-years").removeClass("active");
  $(".timeline-years .project-point").removeClass("active");
  var $this = $(this);
  setTimeout(function () {
    $this.parent().addClass("active").find(".project-point").first().addClass("active");
    var year = parseInt($this.parent().data("year"));
    gsap.to(window, {duration: 1, scrollTo: projects[year][0].el, ease:"power3.inOut", onComplete:function(){scrollBusy=false; console.log("YEAR click end");}});
    gsap.to($(".projects-timeline").first(), {duration: 1, scrollTo: $this.parent().position().top, ease:"power3.inOut"});
  }, 300);
});

function linkClick(e) {
  e.preventDefault();
  console.log("PROJECT click");
  scrollBusy = true;
  //$(".timeline-years").removeClass("active");
  $(".timeline-years .project-point").removeClass("active");
  var $this = $(this);
  $this.addClass("active");
  var year = parseInt($this.parent().data("year"));
  var pid = parseInt($this.data("pid"));
  gsap.to(window, {duration: 1, scrollTo: projects[year][pid].el, ease:"power3.inOut", onComplete:function(){scrollBusy=false;console.log("PROJECT click end");}});
  gsap.to($(".projects-timeline").first(), {duration: 1, scrollTo: $this.position().top + $this.parent().position().top, ease:"power3.inOut"});
}

$(".timeline-years .project-point").click(linkClick);

Draggable.create(".projects-timeline", {
  type: "scrollTop",
  edgeResistance: 0.5,
  throwProps:true,
  minimumMovement: 20
});

function activateLink(me,tr){
  if(scrollBusy) return false;
  console.log("LINK activate");
  var $this = $(tr[0].trigger);
  var year = $this.data("year");
  var yearSel = $('.timeline-years[data-year="'+year+'"]');
  var pinSel = yearSel.find(".project-point").eq(parseInt($this.data("pid")));
  if(!yearSel.hasClass("active")){
    $('.timeline-years').removeClass("active");
    $('.timeline-years .project-point').removeClass("active");
  }else{
    $('.timeline-years .project-point').removeClass("active");
  }
  clearTimeout(linkTO);
  linkTO = setTimeout(function(){
    yearSel.addClass("active");
    pinSel.addClass("active");
    gsap.to($(".projects-timeline").first(), {duration: 1, scrollTo: (pinSel.position().top != 0? pinSel.parent().position().top + pinSel.position().top - 50: pinSel.parent().position().top), ease:"power3.inOut", onComplete:function(){
    console.log("LINK activate end");
  }})}, 300);
}

ScrollTrigger.batch($(".projects .projects-list .project"), {
    start: "top 40%",
    end: "bottom 60%",
    //markers: true,
    onEnter: activateLink,
    onEnterBack: activateLink
});

var rTO = 0;
window.addEventListener("resize", function(e){
  clearTimeout(rTO);
  rTO = setTimeout(function(){
    ScrollTrigger.refresh();
  }, 1500)
});
              
            
!
999px

Console