Blog

If you longing to mount uphill era lineage feature in your website also facebook, Then here i am going to introduce Awesome jQuery-based supple timeline generator plugin created by RyanFitzgerald, With the in the back occurring happening of this plugin you can easily make vertical static and functioning timeline which may display your cartoon journey or your profession or company journey behind more gorgeous vent.
Timeline is a light, jQuery-based generator that builds a timeline based on the subject of the order of user input. It comes behind a number of customization options out of the bin such as displaying dates, interchange toggle, breeziness, and choosing which side it starts something considering. It comes along with than tiny to no styling new than what it required, appropriately it can be styled to suite your specific needs. I originally created a timeline for my personal website, however I have by now found a number of reachable reuse options for it, therefore I agreed to make this straightforward plugin.

Integration of jQuery-based responsive timeline generator on your website

First you quirk to grow required dependent CSS, JS libraries regarding page

<!-- CSS -->
<link rel="stylesheet" href="vertical-timeline.css">
 
<!-- JS -->
<script  src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="   crossorigin="anonymous"></script>
<script src="vertical-timeline.min.js"></script>

HTML

In this section magnify html which compulsion to use as timeline, Add data-vtdate attribute upon div to display date along as soon as timeline paragraph.

<div id="timeline">
    <div data-vtdate="September 2016">
        <h3>Lorem ipsum dolor sit amet</h3>
        <p>
            Proin mattis nisl non est dapibus elementum. Etiam varius, purus sodales varius tempor, mauris nunc hendrerit velit, vitae interdum quam erat non lorem. Fusce luctus malesuada neque nec pretium. In sed turpis dui.
        </p>
    </div>
    <div data-vtdate="March 2016">
        <h3>Lorem ipsum dolor sit amet</h3>
        <p>
            Proin mattis nisl non est dapibus elementum. Etiam varius, purus sodales varius tempor, mauris nunc hendrerit velit, vitae interdum quam erat non lorem. Fusce luctus malesuada neque nec pretium. In sed turpis dui.
        </p>
    </div>
    <div data-vtdate="January 2016">
        <h3>Lorem ipsum dolor sit amet</h3>
        <p>
            Proin mattis nisl non est dapibus elementum. Etiam varius, purus sodales varius tempor, mauris nunc hendrerit velit, vitae interdum quam erat non lorem. Fusce luctus malesuada neque nec pretium. In sed turpis dui.
        </p>
    </div>
</div>

jQuery

Action period..!! finally mount taking place verticalTimeline() conflict upon page to make your timeline actionable.

<script>
$(function() {  
  $('#timeline').verticalTimeline();
 }); 
</script>

Timeline has a few options that can be customized to suite your specific needs. The included options that can be utilized are:

<script>
$(function() {  
  $('#timeline').verticalTimeline({
    startLeft: false,
    alternate: true,
    animate: "fade", // or slide
    arrows: false
 }); 
</script>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.