tailwind css simple progress bar examples

In this tutorial we will see simple Progress Bar UI, Progress Bar With Percentage count, Progress Bar With Animation, Progress Bars Gradients! Color, examples with Tailwind CSS.


Tool Use

Tailwind CSS 2.x / 3.x


Setup Project

Using CDN

<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">

or

The Easiest way to install Tailwind CSS with Tailwind CLI

How to Install Tailwind CSS with NPM


Example 1

Simple Progress Bar

<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-1/4 h-full bg-gray-500"></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-2/4 h-full bg-green-500"></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-3/4 h-full bg-red-500"></div>
</div>
tailwind progress bar v1

tailwind progress bar v1



Example 2

Simple Progress Bar With Percentage count.

<div class="w-full bg-gray-100">
    <div class="py-0.5 text-xs text-center text-white bg-gray-500 w-1/4">25%</div>
</div>
<div class="w-full bg-gray-100">
    <div class="py-0.5 text-xs text-center text-white bg-green-500 w-2/4">50%</div>
</div>
<div class="w-full bg-gray-100">
    <div class="py-0.5 text-xs text-center text-white bg-red-500 w-3/4">75%</div>
</div>
tailwind progress bar v2

tailwind progress bar v2


Example 3

Progress Bar With Animation.

<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-1/4 h-full bg-gray-500 animate-pulse"></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-2/4 h-full bg-green-500 animate-pulse"></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-3/4 h-full bg-red-500 animate-pulse"></div>
</div>
tailwind Progress Bar With Animation

tailwind Progress Bar With Animation


Example 4

Progress Bars Gradients! Color.

<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-1/4 h-full bg-gradient-to-br from-gray-500 to-gray-800 "></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-2/4 h-full bg-gradient-to-br from-green-500 to-green-800"></div>
</div>
<div class="relative h-4">
    <div class="absolute w-full h-full bg-gray-200"></div>
    <div class="absolute w-3/4 h-full bg-gradient-to-br from-red-500 to-red-800"></div>
</div>
tailwind Progress Bars Gradients! Color

tailwind Progress Bars Gradients! Color


Read Also

Tailwind CSS 3 FAQ Accordion UI Example

Tailwind CSS 3 Alert Message Example

Tailwind CSS 3 Avatars Example

Tailwind CSS 3 Badges Example

Tailwind CSS 3 Breadcrumb Example

Tailwind CSS Gradient Button Example

Tailwind CSS 3D Button Example

Tailwind CSS Loading Button Example

Tailwind CSS v3 Cards Examples

Tailwind CSS Checkbox Form Examples

Tailwind CSS Dropdowns (Menu) on Hover Example

Tailwind CSS Multiselect Dropdown Example

How to use dark mode toggle switch in Tailwind CSS 3

How to use @apply directive in Tailwind CSS

Tailwind CSS sticky header & fixed navbar example

Tailwind CSS Navbar UI Example

Tailwind CSS 3 Login Page UI Example

Tailwind CSS Login Modal Example

Tailwind CSS Search Examples

Tailwind CSS 3 Overlay Image Example

Tailwind CSS Thank You Page Example

Tailwind CSS Timeline UI Example

Tailwind CSS Responsive Footer Section Example

Tailwind CSS Background Image Header Example