Open In App

Blaze UI Timelines Attributes

Blaze UI is a CSS open-source lightweight UI toolkit that provides great tools for building customized and scalable applications. It can work with any framework that exists. It can adapt to any ecosystem. All designs or CSS are mobile-first and hence responsive.

Blaze UI Timelines are used to illustrate the events that occurred according to their terminology or what should be planned to happen. It provides an easy setup to create a timeline without any extra CSS. We can also apply different colors to the timeline.



Blaze UI Timelines Attributes:

Syntax: Create a timeline in Blaze UI as follows:



<blaze-timeline>
  <blaze-timeline-item type="brand"> 
    <!-- Content -->
  </blaze-timeline-item>
  <!-- More Items -->
</blaze-timeline>

Example 1: In the following example, we have some items in a timeline.




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" 
        content="width=device-width, initial-scale=1.0"/>
    <title>GeeksforGeeks | BlazeUI</title>
    <link rel="stylesheet" href=
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <script src=
    </script>
</head>
<body>
    <div class="o-container" style="padding: 1em;">
        <center>
            <div>
                <h1 style="color: green;">GeeksforGeeks</h1>
            </div>
            <strong>Blaze UI Timelines Attributes</strong>
            <br/>
            <br/>
            <p>Welcome to GeeksforGeeks</p>
        </center>
        <blaze-timeline loading>
            <blaze-timeline-item type="brand">
                Learn basic HTML, CSS
            </blaze-timeline-item>
            <blaze-timeline-item type="info">
                Learn Javascript
            </blaze-timeline-item>
            <blaze-timeline-item type="success">
                Create a portfolio website with 
                HTML,CSS and Javascript
            </blaze-timeline-item>
            <blaze-timeline-item type="warning">
                Learn a frontend framework like 
                ReactJs, Vue.js, etc.
            </blaze-timeline-item>
            <blaze-timeline-item type="error">
                Learn a backend language like 
                Node.Js, PHP, etc.
            </blaze-timeline-item>
            <blaze-timeline-item last>
                Project: Create a full stack 
                application like Shopping Website 
                or Schedule Manager, etc.
            </blaze-timeline-item>
            <blaze-timeline-item loading>
                Continue Practicing
            </blaze-timeline-item>
        </blaze-timeline>
    </div>
    <script></script>
</body>
</html>

Output:

 

Example 2: In the following example, we will have a timeline with alternative items.




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" 
        content="width=device-width, initial-scale=1.0"/>
    <title>GeeksforGeeks | BlazeUI</title>
    <link rel="stylesheet" href=
    <script type="module" src=
    </script>
    <script nomodule="" src=
    </script>
    <script src=
    </script>
</head>
<body>
    <div class="o-container" style="padding: 1em;">
        <center>
            <div>
                <h1 style="color: green;">GeeksforGeeks</h1>
            </div>
            <strong>Blaze UI Timelines Attributes</strong>
            <br />
            <br />
            <p>Welcome to GeeksforGeeks</p>
        </center>
        <blaze-timeline alternate>
            <blaze-timeline-item type="success" left>
                Item 1
            </blaze-timeline-item>
            <blaze-timeline-item type="success">
                Item 2
            </blaze-timeline-item>
            <blaze-timeline-item type="success" left>
                Item 3
            </blaze-timeline-item>
            <blaze-timeline-item type="success">
                Item 4
            </blaze-timeline-item>
            <blaze-timeline-item type="success" left>
                Item 5
            </blaze-timeline-item>
            <blaze-timeline-item type="success">
                Item 6
            </blaze-timeline-item>
            <blaze-timeline-item type="success" left>
                Item 7
            </blaze-timeline-item>
            <blaze-timeline-item type="success">
                Item 8
            </blaze-timeline-item>
            <blaze-timeline-item type="success" left>
                Item 9
            </blaze-timeline-item>
            <blaze-timeline-item type="success" last>
                Item 10
            </blaze-timeline-item>
        </blaze-timeline>
    </div>
    <script></script>
</body>
</html>

Output:

 

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


Article Tags :