add "timeline-inverted" class to each line item