How can I recreate a vertical timeline with highlighted years and icons, along with event descriptions, when users click on buttons in Webflow?

Published on
September 22, 2023

To recreate a vertical timeline with highlighted years and icons, along with event descriptions, when users click on buttons in Webflow, you can follow these steps:

  1. Set up the structure:
  • Create a section to hold your timeline.
  • Inside the section, add a div block with a class, let's call it "timeline-container".
  • Within the "timeline-container", add another div block with a class called "timeline-events" that will represent the entire timeline layout.
  1. Design the timeline:
  • Style the "timeline-container" to set its position, dimensions, and alignment as per your design requirements.
  • Style the "timeline-events" to set its position and dimensions. This will be the container for your individual timeline events.
  1. Add timeline events:
  • Inside the "timeline-events" div block, create a series of div blocks or sections to represent each event in your timeline.
  • Style these event div blocks with appropriate dimensions, spacing, and positioning to create the effect of a vertical timeline.
  1. Highlight years and icons:
  • Within each event div block, add elements (e.g., text elements) to display the year associated with that event. Style them to stand out (e.g., larger text size, bold).
  • Add icons or symbols to represent the event. You can use Webflow's built-in icon library or import your own custom icons. Place them next to or above/below the year text.
  1. Add event descriptions:
  • Inside each event div block, add a hidden element (e.g., a div block with hidden overflow or a text element with hidden visibility).
  • Add the event description within this hidden element. Style it accordingly, with appropriate font sizes, spacing, and alignment.
  1. Trigger event descriptions on button clicks:
  • Add a button element for each event div block, positioned next to/under the corresponding event.
  • Assign a unique ID to each event div block, and set the ID as a custom attribute on the associated button using Webflow's custom attributes feature.
  • Create an interaction for each button that will trigger the display or reveal animation for the respective event's description.
  • Use the custom attribute to target the corresponding event div block using Webflow's interaction panel, and add an appropriate show/hide animation to make the event description appear/disappear.

By following these steps, you can recreate a vertical timeline with highlighted years and icons, along with event descriptions, when users click on buttons in Webflow. This will create an interactive and visually engaging timeline for your users to explore.

Additional Questions:

  1. How can I create a horizontal timeline in Webflow?
  2. Can I animate the timeline events to slide in from the side when scrolling down the page in Webflow?
  3. Is it possible to make the timeline responsive so that it adapts to different screen sizes in Webflow?