Open In App

Blaze UI Timelines Alternating items

Blaze UI is a free open source UI Toolkit that provides a great structure for building websites quickly with a scalable and maintainable foundation. All components in Blaze UI are developed mobile-first and rely solely on native browser features, not a separate library or framework. It helps us to create a scalable and responsive website fast and efficiently with a consistent style.

Blaze UI Timelines are used to illustrate the events that occurred according to their terminology or what should be planned to happen. Blaze UI Timelines Alternating items are used to create the alternate items in the timeline using the below classes.



Blaze UI Timelines Alternating items Classes:

Syntax:



<ul class="o-timeline o-timeline--alternate">
  ...
  <li class="c-timeline-item c-timeline-item--left">
    <div class="c-timeline-item__body">
        ...
    </div>
  </li>
  ...
</ul>

Example 1: Below example demonstrates the Blaze UI Timelines Alternating items.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title> Blaze UI Timelines Alternating items </title>
    <link rel="stylesheet" href=
</head>
  
<body class="u-window-box-large">
    <div class="u-centered ">
        <h1 style="color: green;"
            GeeksforGeeks 
        </h1>
        <h3
            Blaze UI Timelines Alternating items
        </h3>
    </div>
  
    <ul class="o-timeline o-timeline--alternate">
        <li class="c-timeline-item">
            <div class="c-timeline-item__body">
                GeeksforGeeks 1
            </div>
        </li>
  
        <li class="c-timeline-item c-timeline-item--left">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 2
            </div>
        </li>
  
        <li class="c-timeline-item c-timeline-item--last">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 3
            </div>
        </li>
    </ul>
</body>
  
</html>

Output:

Blaze UI Timelines Alternating items

Example 2: Below example demonstrates the Blaze UI Timelines Alternating items.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title> Blaze UI Timelines Alternating items </title>
    <link rel="stylesheet" href=
</head>
  
<body class="u-window-box-large">
    <div class="u-centered">
        <h1 style="color: green;"
            GeeksforGeeks 
        </h1>
        <h3
            Blaze UI Timelines Alternating items
        </h3>
    </div>
  
    <ul class="o-timeline o-timeline--alternate 
               o-timeline--loading">
        <li class="c-timeline-item 
                   c-timeline-item--warning 
                   c-timeline-item--left">
            <div class="c-timeline-item__body">
                GeeksforGeeks 1
                <p>
                    A Computer Science portal for geeks.
                </p>
            </div>
        </li>
  
        <li class="c-timeline-item 
                   c-timeline-item--error">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 2
            </div>
        </li>
  
        <li class="c-timeline-item 
                   c-timeline-item--success 
                   c-timeline-item--left">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 3
            </div>
        </li>
  
        <li class="c-timeline-item 
                   c-timeline-item--info">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 4
            </div>
        </li>
  
        <li class="c-timeline-item 
                   c-timeline-item--last 
                   c-timeline-item--left">
            <div class="c-timeline-item__body">
                GeeksforGeeks item 5
                <p class="u-text--quiet">
                    Portal for geeks.
                </p>
  
            </div>
        </li>
  
        <li class="c-timeline-item 
                   c-timeline-item--loading">
            <div class="c-timeline-item__body">
                .....Loading item 6
            </div>
        </li>
    </ul>
</body>
  
</html>

Output:

Blaze UI Timelines Alternating items

Reference: https://www.blazeui.com/components/timelines/


Article Tags :