Progress bar with Tailwind CSS and Javascript

How to a create a scroll progress bar with Tailwind CSS and Javascript

This tailwind example is contributed by Michael Andreuzza, on 10-May-2024. Component is made with Tailwind v3.4. It is responsive.

Tailwind v3.4 Responsive 3.2k 6

Related Examples

  • Weather Widget with 5-Day Forecast

    A clean, modern weather widget built with HTML, Tailwind CSS, and vanilla JavaScript. Perfect for integrating weather information into any web project. Features: - Current weather display with temperature, conditions, and "feels like" temperature - 5-day forecast with daily highs and lows - Temperature unit toggle (Celsius/Fahrenheit) - Weather statistics including wind speed, humidity, and visibility - Fully responsive design that works on all screen sizes - Smooth hover animations and transitions - Semantic HTML5 structure for better accessibility and SEO - Schema.org structured data (JSON-LD) for rich snippets - No dependencies except Tailwind CSS CDN - Easy to customize with Tailwind utility classes Technical Details: - Markup: Semantic HTML5 with proper document structure - Styling: Tailwind CSS v3.x via CDN (utility-first approach) - JavaScript: Vanilla ES6+ (no frameworks or libraries required) - Accessibility: WCAG 2.1 compliant with ARIA labels, semantic elements, and keyboard navigation support - SEO Optimization: - Structured data using JSON-LD (Schema.org WeatherForecast type) - Open Graph and Twitter Card meta tags for social sharing - Semantic heading hierarchy (h1, h2) - Descriptive meta descriptions and keywords - Performance: Lightweight (~8KB HTML), minimal JavaScript, CSS loaded from CDN - Browser Support: All modern browsers (Chrome, Firefox, Safari, Edge) - Mobile-First: Responsive grid layout with breakpoints for mobile, tablet, and desktop - **Customization:** Easily modify colors, layout, and data structure via Tailwind classes - State Management: Simple boolean toggle for temperature units with dynamic DOM updates - SVG Icons: Inline SVG graphics for weather conditions (scalable and customizable) API Integration Ready: The component uses mock data but is structured to easily integrate with weather APIs such as: - OpenWeatherMap - WeatherAPI - Visual Crossing - AccuWeather Simply replace the data object with your API response and map the fields accordingly.

    879
  • Code card with copy Button

    this example uses clipboard.js to copy the code

  • Exapnd and collapse button for large content

    Truncate and expand on click large content with javascript. uses line clamp.

    3k
  • Card-Product

    Product card for vertical windows, if you need a more complete version to show more information, you have other options in my profile

    3.3k
  • Exapnd and collapse button for large content without javascript

    Truncate and expand on click large content without using JavaScript.

    2.7k
  • Speedometer Example

    Internet speed meter, gauge meter

    15.3k
  • Working back to top button

    The "Scroll to top" button becomes visible when the user starts to scroll the page Clicking on that button takes you back to the top of the page. This is a great feature to have on any website especially if your content is long.

    15.6k
  • LEADING PAGEarkitect® Building the future, today. CODE BY OMERLINKS

    LEADING PAGEarkitect® Building the future, today. CODE BY OMERLINKS

    12
  • Code card with copy Button

    this example uses clipboard.js to copy the code

    1.5k

Can't find it?

Didn't find the component you were looking for?

Search across 3,000+ community-built components and grab the code in seconds.