Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="l-constrain">
  <h1 class="title">Tap on the bubble to learn more on what we've achieved in 2020 and onwards!</h1>
  <div class="message-container">
    <div class="message jan_message jan_bubble" id ="jan_bubble" data-day="six"><a href="#" class="bubble_text" data-day="six">We are Agile!</a></div>
  <div class="message mar_message mar_bubble" id ="mar_bubble" data-day="seven"><a href="#" class="bubble_text" data-day="seven">Goods in Transit</a> </div>
    <div class="message may_message may_bubble" id ="may_bubble" data-day="eight" ><a href="#" class="bubble_text" data-day="eight">4PL Solution</a></div>
    <div class="message dec_message dec_bubble" id ="dec_bubble" data-day="nine"><a href="#" class="bubble_text" data-day="nine">Automation of Shipment Milestones</a> </div>
    <div class="message ongoing_message ongoing_bubble" id ="ongoing_bubble" data-day="ten"><a href="#" class="bubble_text" id = "ongoing_bubble_text" data-day="ten">UI/UX and Business Intelligence</a></div>
</div>
  <div class="timeline__row">
    <div class="pointer"><a href="#" class="triangle" id ="triangle_jan"></a></div>
    <div class="pointer"><a href="#" class="triangle" id ="triangle_mar"></a></div>
    <div class="pointer"><a href="#" class="triangle" id="triangle_may"></a></div>
    <div class="pointer"><a href="#" class="triangle" id="triangle_dec"></a></div>
    <div class="pointer"><a href="#" class="triangle" id="triangle_ongoing"></a></div>
</div>

  </br>
  <div class="timeline">
    <div class="timeline__bar"></div>
    <div class="timeline__row">
      <div class="flex-column">
        <a href="#" class="timeline__button is-active" data-day="six"></a>
        <h3 class ="timeline_mini_month">JAN 2020</h3>
      </div>
      <div class="flex-column">
        <a href="#" class="timeline__button" id="mar_color"data-day="seven"></a>
        <h3 class ="timeline_mini_month">MAR 2020</h3>
      </div>
      <div class="flex-column">
        <a href="#" class="timeline__button" id="may_color" data-day="eight"></a>
        <h3 class ="timeline_mini_month">MAY 2020</h3>
      </div>
      <div class="flex-column">
        <a href="#" class="timeline__button"  id= "dec_color" data-day="nine"></a>
        <h3 class ="timeline_mini_month">DEC 2020</h3>
      </div>
      <div class="flex-column">
        <a href="#" class="timeline__button" id = "ongoing_color" data-day="ten"></a>
        <h3 class ="timeline_mini_month">ONGOING</h3>
      </div>
    </div>
    <div class="timeline__content">
      <div class="timeline__item is-active" data-day="six">
        <div class="timeline__item-row">
          <div class="timeline__item-date">Jan 2020</div>
          <div class="timeline__item-text">
            <h3>We are Agile!</h3>
            <p>Gravity adapts to Agile as the major practice of our software development projects to increase users' engagement and enhance the collaboration among internal and external stakeholders during the development cycle and feature release.</p>
          </div>
        </div>
      </div>
      <div class="timeline__item" data-day="seven">
        <div class="timeline__item-row">
          <div class="timeline__item-date" id="item-date-mar">Mar 2020</div>
          <div class="timeline__item-text">
            <h3>Goods in Transit</h3>
            <p>We released a brand new shipment progress tracking feature - Goods In Transit (former tile: Progress To Market), which integrated several tracking sources to provide the visibility of any in-transit shipment statuses.</p>
             <ul>
               <li>Vessel Location</li>
               <li>Container Status</li>
               <li>Flight Status</li>
               <li>Airway Bill Status</li>
               <li>Rail (Container) Location</li>
               <li>Road (Mobile) Location</li>
               <li>IoT</li>
            </ul></br>
            <img src = "https://i.imgur.com/np7sN1g.png">
          </div>
        </div>
      </div>
      <div class="timeline__item" data-day="eight">
        <div class="timeline__item-row">
          <div class="timeline__item-date" id="item-date-may">May 2020</div>
          <div class="timeline__item-text">
            <h3>4PL Solution</h3>
            <p>Since late 2019, we have cooperated with a global customer to deliver their 4PL solution, providing several system upgrades to support Control Tower capabilities in managing a massive group of 3PLs and Suppliers</p></br>
            <img src="https://i.imgur.com/4kskVTt.png">
          </div>
        </div>
      </div>
      <div class="timeline__item" data-day="nine">
        <div class="timeline__item-row">
          <div class="timeline__item-date" id ="item-date-dec">Dec 2020</div>
          <div class="timeline__item-text">
            <h3>Automation of Shipment Milestones</h3>
            <p>Shipment milestone updates are a time-consuming task for supply chain operation teams and often the blocker to providing clients with the latest in-transit visibility. An automation process developed within the Gravity platform can update vessel departure and arrival milestones on an operation users' behalf.</p>
              
          </div>
        </div>
      </div>
      <div class="timeline__item" data-day="ten">
        <div class="timeline__item-row">
          <div class="timeline__item-date" id="item-date-ongoing">2021...</div>
          <div class="timeline__item-text">
            <h3>Business Intelligence</h3>
            <p>Numerous business analytics are published to assist our users in understanding their data and generating business insights:</p>
            <ul>
              <li>Shipment Visibility - consumption of live tracking data (Vessel Location / Container Status / Flight Status / Airwaybill Status)</li>
              <li>Data Extraction - consumption of the operational data (PO / Booking / Shipment / Delivery)</li>
              <li>API Status - consumption of live integration data (File base / RESTful)</li>
            </ul>
            </br>
           <img src = "https://i.imgur.com/emkJNV3.png">
          <h3>UI/UX</h3>
            <ul>
              <li>Generated more than <strong>70</strong> prototypes for features demanded by the community as part of the Agile practice</li>
              <li>Provided professional recommendations to <strong>13</strong> clients to onboard the Gravity solution using their own branding</li>
              <li>Introduced the new generation of user interface to upgrade the user experience</li>
            </ul>
          </div>
        </div>
      </div>   
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  overflow: hidden;
}

p {
  font-size: 16px;
  line-height: 2;
}

li {
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

.l-constrain {
  width: auto;
  margin: 0 auto;
  padding: 0 1em;
  height: auto;
}

#dec_color.timeline__button {
  border: 3px solid #44A863 !important;

  &::after {
      background-color: #fff;
      border: solid 3px #44A863;
      z-index: -1;
      transition: all 100ms ease-in;
    }
    
    &::before {
      background-color: #44A863;
    }
}

#ongoing_color.timeline__button {
  border: 3px solid #FF6E2E !important;
  
   &::after {
      background-color: #fff;
      border: solid 3px #FF6E2E;
      z-index: -1;
      transition: all 100ms ease-in;
    }
    
    &::before {
      background-color: #FF6E2E;
    }
}

#may_color.timeline__button {
  border: 3px solid #23ACA4 !important;
  
   &::after {
      background-color: #fff;
      border: solid 3px #23ACA4;
      z-index: -1;
      transition: all 100ms ease-in;
    }
    
    &::before {
      background-color: #23ACA4;
    }
}
#mar_color.timeline__button {
  border: 3px solid #13AEC5 !important;
  
   &::after {
      background-color: #fff;
      border: solid 3px #13AEC5;
      z-index: -1;
      transition: all 100ms ease-in;
    }
    
    &::before {
      background-color: #13AEC5;
    }
}

.title {
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 2em;
  color: #000000;
  line-height: 16px;
}

.timeline {
  position: relative;
}

.timeline_mini_month {
  text-align: center;
  font-size:0.9em;
  font-weight: 700;
  color: #282828 !important;
}

.timeline__bar {
  background: linear-gradient(90deg, rgba(2,176,230,1) 41%, rgba(68,168,99,1) 74%, rgba(255,110,46,1) 75%);
  width: calc(100% - calc(100% / 7));
  height: 6px;
  margin: 0 auto;
}

.timeline__row {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  
  .flex-column {
    flex-basis: calc(100% / 7);
  }
  
  .pointer {
    flex-basis: calc(100% / 7);
  }
}

.triangle {
  border-style: solid;
	border-width: 0px 10px 10px 10px;
    transform: rotate(180deg);
    border-color: transparent transparent #02B0E6 transparent;
    width: 0;
    height: 0;
  display: block;
  margin: 0 auto;
  cursor: auto;
}
 #triangle_mar.triangle {
    border-color: transparent transparent #13AEC5 transparent !important;
  }
  
 #triangle_may.triangle {
    border-color: transparent transparent #23ACA4 transparent !important;
  }

#triangle_dec.triangle {
    border-color: transparent transparent #44A863 transparent !important;
  }

#triangle_ongoing.triangle {
    border-color: transparent transparent #FF6E2E transparent !important;
  }
  

.timeline__button {
  height: 15px;
  width: 15px;
  background-color: #FFFFFF;
  border: 3px solid #00b5ff;
  opacity: 1;
  border-radius: 100%;
  display: block;
  margin: 0 auto;
  transform: translateY(calc(-50% - 2px));
  transition: all 100ms ease-in;
  position: relative;
  
  &::after,
  &::before {
    content: "";
    display: block;
    position: absolute;
    border-radius: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    height: 10px;
    width: 10px;
    transition: all 100ms ease-in;
  }
  
  &::after {
      background-color: #fff;
      border: solid 3px #00b5ff;
      z-index: -1;
      transition: all 100ms ease-in;
      
    }
    
    &::before {
      background-color: #00b5ff;
      

    }
  
  &.is-active {
    background-color: #00b5ff;
    
    &::after {
      opacity: 1;
      width: 20px;
      height: 20px;
    }
    
    &::before {
      opacity: 1;
      height: 10px;
      width: 10px;
    }
    
  }
}

//Timeline Content Styles
.timeline__content {
  max-width: 830px;
  margin: 60px auto 0;
  position: relative;
}

.timeline__item {
  position: absolute;
  opacity: 0;
  transition: all 250ms ease-in;
  
  &.is-active {
    opacity: 1;
    left: 0;
  }
}

.timeline__item-row {
  display: block;
}

.timeline__item-date {
  font-size: 50px;
  font-weight: 800; 
  margin-right: 20px;
  color: #00b5ff;
}

#item-date-mar.timeline__item-date {
color:#13AEC5;
}
#item-date-dec.timeline__item-date {
  color: #44A863 ;
}

#item-date-ongoing.timeline__item-date {
  color: #FF6E2E;
}

#item-date-may.timeline__item-date {
  color: #23ACA4;
}

.timeline__item-text {
  h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
    color: #62576b;
  }
  
  p {
    margin-top: 0;
  
  }
  
}

.message-container {
  display: flex;
  justify-content: space-between;
  width: auto;
  margin: 0 auto;
  
  .message {
    flex-basis: calc(100% / 7);
    padding:5px;
	  color:black;
	  line-height:15px;
    height:auto;
    display: flex;
    align-items: center;
    justify-content: center;
	  border-radius:15px;
    border: 2px solid #02B0E6;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.25px;
}

}

.jan_bubble{
  background: #02B0E6;
}
.mar_bubble {
  background: #13AEC5;
}

.may_bubble {
  background: #23ACA4;
}

.dec_bubble {
  background:#44A863;
}

.ongoing_bubble {
  background: #FF6E2E;
}
#mar_bubble.message {
  border: 2px solid #13AEC5 !important;
  }
 
#may_bubble.message {
  border: 2px solid #23ACA4 !important;

}

#dec_bubble.message {
  border: 2px solid #44A863 !important;
  
}

#ongoing_bubble.message{
  border: 2px solid #FF6E2E !important;

}

.bubble_text {
  color: white;
  text-decoration: none;
}

.bubble_text_white {
  color: black !important;
  text-decoration: none;
}

@media (max-width: 480px) {
  .bubble_text {
    font-size: 8.5px;
  }
  
  .message {
    padding: 1.8px !important;
  }
  
  .timeline__item-text {
    h3 {
      font-size:18px;
    }
  }
}
              
            
!

JS

              
                var timelineButton = $('.timeline__button');
var timelineItem = $('.timeline__item');
var bubbleText = $('.bubble_text')

timelineButton.on('click', function(e) {
  e.preventDefault();
  timelineButton.removeClass('is-active');
  bubbleText.removeClass('bubble_text');
  bubbleText.addClass('bubble_text_white');
  $(this).addClass('is-active');
  
//   TweenLite.to($('.timeline__item.is-active'), .3, {
//     left: -1000, 
//     ease: Power1.easeOut,
//     opacity: 0
//   });
  
//   TweenLite.to($('.timeline__item.is-active'), 0, {
//     left: 0
//   });
  
  var day = $(this).attr("data-day");
  timelineItem.removeClass('is-active');
  bubbleText.removeClass('bubble_text_white');
  bubbleText.addClass('bubble_text');
  $('[data-day="'+ day +'"]').addClass('is-active');
  $('[data-day="'+ day +'"]').addClass('bubble_text');
  $("p").addClass('bubble_text_white');
  $("li").addClass('bubble_text_white');
  
  // var newItem = $('.timeline__item.is-active');
  // TweenLite.to(newItem, .3, {
  //   delay: .5,
  //   ease: Power1.easeOut,
  //   opacity: 1
  // });
});

bubbleText.on('click', function(e) {
  e.preventDefault();
  timelineButton.removeClass('is-active');
  bubbleText.removeClass('bubble_text');
  bubbleText.addClass('bubble_text_white');
  $(this).addClass('is-active');
  
//   TweenLite.to($('.timeline__item.is-active'), .3, {
//     left: -1000, 
//     ease: Power1.easeOut,
//     opacity: 0
//   });
  
//   TweenLite.to($('.timeline__item.is-active'), 0, {
//     left: 0
//   });
  
  var day = $(this).attr("data-day");
  timelineItem.removeClass('is-active');
  bubbleText.removeClass('bubble_text_white');
  bubbleText.addClass('bubble_text');
  $('[data-day="'+ day +'"]').addClass('is-active');
  $('[data-day="'+ day +'"]').addClass('bubble_text');
  $("p").addClass('bubble_text_white');
  $("li").addClass('bubble_text_white');
  
  // var newItem = $('.timeline__item.is-active');
  // TweenLite.to(newItem, .3, {
  //   delay: .5,
  //   ease: Power1.easeOut,
  //   opacity: 1
  // });
});
              
            
!
999px

Console