alexprut / MinimalTimeline.js

Minimal Timeline UI component for the web

Home Page:https://alexprut.github.io/MinimalTimeline.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MinimalTimeline.js

JavaScript Style Guide MIT

Minimal Timeline UI component for the web

Live demo: http://alexprut.github.io/MinimalTimeline.js

Demo - MinimalTimeline.js

Installation

  • Bower:
    Run from your console/terminal bower install minimal-timeline.js --save-dev
  • From Source:
    Run git clone https://github.com/alexprut/MinimalTimeline.js.git
  • Direct download:
    Download the last version from here

Usage

<div class="timeline">
    <div class="legend timeline__legend clearfix">
        <a class="legend__link legend__link_border_blue" href="#" data-type="event">example</a>
        <a class="legend__link" href="#" data-type="big-goal">example</a>
        <a class="legend__link legend__link_border_yellow" href="#" data-type="book">example</a>
    </div>
    <div class="timeline__content">
        <div class="timeline-details">
            <span class="timeline-details__head"></span>
            <span class="timeline-details__tail"></span>
        </div>
        <div class="timeline-block clearfix" data-year="2016">
            <div class="timeline-block__date hidden">2016</div>
            <div class="timeline-box timeline-box_border_yellow" data-end="current" data-type="book">
                <span class="timeline-box__title">
                    <a target="_blank" href="#example">
                        example
                    </a>
                </span>
                <span class="timeline-box__date">example</span>
            </div>
        </div>
    </div>
    <button class="timeline__button">more</button>
</div>

<script>
    $(function () {
        $('.timeline').timeline({isOneDeep: false});
    });
</script>

For a complete example see index.html

Parameters

Name Type Description Default
isOneDeep bool to force or not the mode button to show all the entries with one click false

License

MinimalTimeline.js is licensed under the MIT License – see the LICENSE file for details.

About

Minimal Timeline UI component for the web

https://alexprut.github.io/MinimalTimeline.js/

License:MIT License


Languages

Language:CSS 66.7%Language:HTML 19.1%Language:JavaScript 14.2%