Timeline
Show users chronologically ordered information
The timeline is a new component in Rivet 1.7.0. If you encounter any issues, please let us know so we can improve!
Use the timeline component to help order chronologically relevant information in a visually meaningful way.
Basic timeline
Sample Item
Spring 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
Sample Item 2
Summer 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
<div class="rvt-timeline">
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item</h3>
<span class="rvt-timeline__date">Spring 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item 2</h3>
<span class="rvt-timeline__date">Summer 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
</div>
Right-aligned timeline
Add the .rvt-timeline--right
class to align the timeline to the right side of the page.
Sample Item
Spring 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
Sample Item 2
Summer 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
<div class="rvt-timeline rvt-timeline--right">
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item</h3>
<span class="rvt-timeline__date">Spring 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item 2</h3>
<span class="rvt-timeline__date">Summer 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
</div>
Centered timeline
Add the .rvt-timeline--center
class to center your timeline horizontally. Centered timeline items default to appearing on the left-side of the line. To switch an item to appearing on the right, add the .rvt-timeline__item--right
class to an item.
Sample Item
Spring 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
Sample Item 2
Summer 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
<div class="rvt-timeline rvt-timeline--center">
<div class="rvt-timeline__row">
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item</h3>
<span class="rvt-timeline__date">Spring 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
</div>
<div class="rvt-timeline__row">
<div class="rvt-timeline__item rvt-timeline__item--right">
<div class="rvt-timeline__marker" aria-hidden="true"></div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item 2</h3>
<span class="rvt-timeline__date">Summer 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
</div>
</div>
External date labels
The .rvt-timeline__date--label
class can be added to labels to make them appear on the opposite side of the timeline from the main pieces of content. This only works for certain screen sizes, but is compatible with all three alignment options.
The external labels are set to a width of 10rem in order to create a uniform appearance. To adjust this, use Rivet width utility classes on the span
with the .rvt-timeline__date--label
class.
Sample Item
Spring 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
Sample Item 2
Summer 2019Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.
<!--
NOTE: This container (.rvt-container) is for demo purposes only.
It is not required to use the timeline component.
-->
<div class="rvt-container">
<!-- Start timeline markup -->
<div class="rvt-timeline">
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true">
</div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item</h3>
<span class="rvt-timeline__date rvt-timeline__date--label">Spring 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
<div class="rvt-timeline__item">
<div class="rvt-timeline__marker" aria-hidden="true">
</div>
<div class="rvt-timeline__content">
<h3 class="rvt-timeline__heading">Sample Item 2</h3>
<span class="rvt-timeline__date rvt-timeline__date--label">Summer 2019</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in nulla ante. Suspendisse potenti. Donec efficitur, sem vitae dignissim viverra, nunc purus tempus nisi, feugiat ullamcorper tellus urna ut dui. Suspendisse potenti.</p>
</div>
</div>
</div>
<!-- End timeline markup -->
</div>
On this page