@optimumweb/jtimeline

1.0.3 • Public • Published

jTimeline

A jQuery powered horizontal timeline.

Demo

Installation

npm i @optimumweb/jtimeline

Usage

$(document).ready(function () {
    $('#jtimeline-demo').jTimeline();
});

Settings

resolution: pixels per second (default: 50000)

minimumSpacing: minimum spacing between events (default: 200)

step: scrolling (translateX) step size (default: 200)

leftArrow: character for left arrow (default: ←)

rightArrow: character for right arrow (default: →)

Example

$(document).ready(function () {
    $('#jtimeline-demo').jTimeline({
        resolution: 20000,
        minimumSpacing: 500,
        step: 500,
        leftArrow: "<",
        rightArrow: ">"
    });
});

About

Author: OptimumWeb Inc. / Jonathan Roy

Website: https://optimumweb.ca

Twitter: https://twitter.com/jonathanroy

License: MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @optimumweb/jtimeline

    Weekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    37.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • jonathanroy