Interactive demos and real-world use cases
The RSL Timeline component is a powerful, accessible way to display chronological events, project milestones, historical data, and progress tracking. It supports multiple variants, orientations, and interactive features all controlled through data attributes.
Tab to focus events, Arrow keys to navigate,
and Enter/Space to interact with collapsible events.
The default timeline orientation. Perfect for displaying chronological events in a top-to-bottom flow.
Initial planning meeting with stakeholders to define project scope and objectives.
Wireframes and mockups approved by the design team.
Building core features and implementing the design system.
Quality assurance and user acceptance testing.
Product goes live to the public.
-
Project Kickoff
Initial planning meeting...
-
Development in Progress
Building core features...
Enhanced visual presentation with card-style content containers, shadows, and hover effects.
Started in a small garage with just 3 people and a big dream.
Raised $2M in seed funding to accelerate product development.
Moved to a proper office space to accommodate the growing team.
Expanding operations to Europe and Asia-Pacific regions.
-
Company Founded
Started in a small garage...
Events alternate between left and right sides of the timeline for a balanced, visually appealing design.
Market research and feature brainstorming sessions.
UI/UX design and prototyping phase.
Core feature development and integration.
User acceptance testing and feedback collection.
Product available to all users worldwide.
-
Ideation
Market research...
Display events in a horizontal scroll layout. Great for process flows and step-by-step guides.
Your order has been received.
Payment successfully processed.
Your items are being packed.
On the way to your address.
Package delivered successfully!
-
Order Placed
Clean, simplified design with less visual weight. Perfect for embedded timelines or sidebars.
report-q3-2024.pdf
Sarah replied to your post
Team sync at 3:00 PM
New project: RSL Timeline
-
File uploaded
report-q3-2024.pdf
Three size options to fit your layout needs: small, medium (default), and large.
Events can be expanded/collapsed to show or hide detailed information. Click any event to toggle.
Include the CSS and JS files in your HTML:
<link rel="stylesheet" href="timeline.css"> <script src="timeline.js"></script>
Then add the data-rsl-timeline attribute to your timeline container. That's it!
Yes! Override any of the CSS variables to match your brand:
.rsl-timeline {
--rsl-timeline-completed: #10b981;
--rsl-timeline-current: #3b82f6;
--rsl-timeline-date-color: #8b5cf6;
}
RSL Timeline is built with WCAG 2.1 AA compliance in mind:
-
How do I install RSL Timeline?
Include the CSS and JS files...
Events animate into view as you scroll down the page. Respects prefers-reduced-motion.
Prepare soil and plant your favorite vegetables.
Keep soil moist and watch for early growth.
Plants thrive in the summer heat.
Enjoy the fruits of your labor!
-
Customize the line connecting events with different styles.
Programmatically control timelines using the JavaScript API.
This is the first event in the timeline.
// Add a new event
RSL.Timeline.addEvent(timeline, {
id: 'new-event',
date: 'Today',
title: 'New Event Added',
description: 'This event was added via the API.',
icon: 'fas fa-star',
status: 'current'
});
// Remove an event by ID
RSL.Timeline.removeEvent(timeline, 'event-id');
// Update an existing event
RSL.Timeline.updateEvent(timeline, 'event-id', {
status: 'completed',
title: 'Updated Title'
});
// Scroll to a specific event
RSL.Timeline.scrollTo(timeline, 'event-id');
// Get all events data
var events = RSL.Timeline.getEventsData(timeline);
// Filter events by category
RSL.Timeline.filter(timeline, { category: 'milestone' });
// Expand/collapse (for collapsible timelines)
RSL.Timeline.expand(timeline, 'event-id');
RSL.Timeline.collapse(timeline, 'event-id');
RSL.Timeline.expandAll(timeline);
RSL.Timeline.collapseAll(timeline);
aria-current="step".prefers-reduced-motion.Watch how Timeline can filter events based on status, category, or type. This live demo shows Timeline working alongside other filterable components in a dashboard.
View Live Dashboard Demo