0

Currently, our timeline order with timeline.js is: "2020 -> 2021 -> 2022", but we need to do the opposite: "2022 -> 2021 -> 2020". I didn't find any settings in the library itself. How can this be done?

<script type="text/javascript" src="/javascript/works/jquery.timeline.min.js"></script>
$('.timelineLight').timeline({
    openTriggerClass: '.trigger_open',
    itemMargin: 44,
    startItem: 'first',
})

enter image description here

David Wolf
  • 1,400
  • 1
  • 9
  • 18
Gyvv
  • 1
  • 1

2 Answers2

1

Unfortunately this isn't a supported feature, and likely never will be.

From Joe Germuska (Exec Director at Night Labs)

"This is not a supported feature. Timeline's design reinforces the very strong assumption readers of left-to-right languages have that timelines should have the past on the left and the future on the right. Perhaps it should reverse this for right-to-left languages, but that is not a small task, and TimelineJS is not under active feature development at this time. Sorry."

3mums
  • 11
  • 1
0

As explained in the link below Reversing The Timeline? it is possible by using "start_at_end".

<script type="text/javascript"> var additionalOptions = { start_at_end: true, language: 'en', timenav_height: 250 }

illustris
  • 1
  • 1