Beautiful-Custom-Scrollbars

Beautiful Custom Scrollbars 🎨

A collection of stunning, ready-to-use custom scrollbar styles for modern web projects.

Features

Installation

By cloning Github repo

  1. Clone the repository:
    git clone https://github.com/Clementabcd/Beautiful-Custom-Scrollbars.git
    
  2. Link the desired CSS file in your HTML: ```html

### Via CDN (jsDelivr)
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Clementabcd/Beautiful-Custom-Scrollbars@main/styles/liquid-glass.css">

Available Styles

Style Preview Description
Liquid Glass ![Preview] Translucent, frosted glass effect
Aurora Borealis ![Preview] Color-shifting gradient animation
Marble Vein ![Preview] Elegant marble texture effect
Cyberpunk Neon ![Preview] Retro-futuristic neon style
Nature Moss ![Preview] Organic green tones
Galaxy Swirl ![Preview] Deep space cosmic effect
Golden Luxury ![Preview] Luxurious gold accents
Minimal Glass ![Preview] Ultra-clean subtle design

Browser Compatibility

Feature Chrome Firefox Safari Edge
Basic Styles βœ… βœ… βœ… βœ…
Blur Effects βœ… ❌ βœ… βœ…
Animations βœ… ❌ βœ… βœ…
SVG Backgrounds βœ… βœ… βœ… βœ…

Customization Guide

All scrollbar styles can be easily customized by editing these common properties:

Basic Customization

::-webkit-scrollbar {
  width: 10px; /* Change thickness */
  height: 10px; /* For horizontal scrollbars */
}

Color Customization

::-webkit-scrollbar-thumb {
  background: #yourcolor; /* Solid color */
  background: linear-gradient(...); /* Gradient */
}

Advanced Effects

Firefox Support

For each style, modify these Firefox-specific properties:

html {
  scrollbar-width: thin | auto | none;
  scrollbar-color: thumb-color track-color;
}

Framework Integration

React Component

import React, { useEffect } from 'react';
import './styles/liquid-glass.css';

const ScrollableComponent = () => {
  useEffect(() => {
    document.documentElement.style.setProperty('--scrollbar-width', '12px');
  }, []);

  return (
    <div className="overflow-y-auto">
      {/* Your content */}
    </div>
  );
};

Vue Directive

import './styles/liquid-glass.css';

export default {
  directives: {
    scrollbar: {
      mounted(el) {
        el.classList.add('custom-scrollbar');
      }
    }
  }
}
  1. Pick a base style from the collection
  2. Copy it to your project’s CSS
  3. Adjust colors to match your brand
  4. Test on different backgrounds
  5. Fine-tune animation speeds if needed

Contributing

Found a bug or want to add another beautiful style?

  1. Fork the repository
  2. Create a new branch (git checkout -b new-scrollbar-style)
  3. Add your style in the styles/ directory
  4. Include Firefox support if possible
  5. Submit a pull request

License

MIT License - Free for personal and commercial use