Skip to content

doong-jo/tailwind-scrollbar-hide

 
 

Repository files navigation

tailwind-scrollbar-hide

Tailwind plugin for hide scrollbars, although the element can still be scrolled if the element's content overflows.

npm npm npm Dependents (via libraries.io) install size semantic-release

Firefox >=64 Chrome >= 2 Safari >= 4 Internet Explorer >= 10

tailwind-scrollbar-hide animation demo

Live demo

Installation

Install the plugin from npm:

# Using npm npm install tailwind-scrollbar-hide # Using Yarn yarn add tailwind-scrollbar-hide # Using pnpm pnpm add tailwind-scrollbar-hide

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js module.exports = { theme: { // ... }, plugins: [ require('tailwind-scrollbar-hide') // ... ] }

Usage

Use in you template scrollbar-hide for visual hiding scrollbar

<div class="w-4 scrollbar-hide">...</div>

or restore default value use scrollbar-default

⚠️ webkit overriding not working reslear#19 (comment) need switch breakpoint system

<div class="w-4 scrollbar-hide md:scrollbar-default">...</div>

License

MIT

About

tailwindcss plugin for hide scrollbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vue 52.7%
  • JavaScript 29.5%
  • HTML 9.1%
  • TypeScript 7.1%
  • CSS 1.6%