
- Tailwind CSS - Home
- Tailwind CSS - Roadmap
- Tailwind CSS - Introduction
- Tailwind CSS - Installation
- Tailwind CSS - Editor Setup
- Tailwind CSS - Utility-First Fundamentals
- Tailwind CSS - Hover, Focus, and Other States
- Tailwind CSS - Responsive Design
- Tailwind CSS - Dark Mode
- Tailwind CSS - Reusing Styles
- Tailwind CSS - Adding Custom Styles
- Tailwind CSS - Functions & Directives
- Tailwind CSS - Customization
- Tailwind CSS - Configuration
- Tailwind CSS - Content Configuration
- Tailwind CSS - Theme Configuration
- Tailwind CSS - Customizing Screens
- Tailwind CSS - Customizing Colors
- Tailwind CSS - Customizing Spacing
- Tailwind CSS - Plugins
- Tailwind CSS - Presets
- Tailwind CSS - Base Styles
- Tailwind CSS - Preflight
- Tailwind CSS - Layout
- Tailwind CSS - Aspect Ratio
- Tailwind CSS - Container
- Tailwind CSS - Columns
- Tailwind CSS - Break After
- Tailwind CSS - Break Before
- Tailwind CSS - Break Inside
- Tailwind CSS - Box Decoration Break
- Tailwind CSS - Box Sizing
- Tailwind CSS - Display
- Tailwind CSS - Floats
- Tailwind CSS - Clear
- Tailwind CSS - Isolation
- Tailwind CSS - Object Fit
- Tailwind CSS - Object Position
- Tailwind CSS - Overflow
- Tailwind CSS - Overscroll Behavior
- Tailwind CSS - Position
- Tailwind CSS - Top / Right / Bottom / Left
- Tailwind CSS - Visibility
- Tailwind CSS - Z-Index
- Tailwind CSS - Flexbox & Grid
- Tailwind CSS - Flex Basis
- Tailwind CSS - Flex Direction
- Tailwind CSS - Flex Wrap
- Tailwind CSS - Flex
- Tailwind CSS - Flex Grow
- Tailwind CSS - Flex Shrink
- Tailwind CSS - Order
- Tailwind CSS - Grid Template Columns
- Tailwind CSS - Grid Column Start / End
- Tailwind CSS - Grid Template Rows
- Tailwind CSS - Grid Row Start / End
- Tailwind CSS - Grid Auto Flow
- Tailwind CSS - Grid Auto Columns
- Tailwind CSS - Grid Auto Rows
- Tailwind CSS - Gap
- Tailwind CSS - Justify Content
- Tailwind CSS - Justify Items
- Tailwind CSS - Justify Self
- Tailwind CSS - Align Content
- Tailwind CSS - Align Items
- Tailwind CSS - Align Self
- Tailwind CSS - Place Content
- Tailwind CSS - Place Items
- Tailwind CSS - Place Self
- Tailwind CSS - Spacing
- Tailwind CSS - Padding
- Tailwind CSS - Margin
- Tailwind CSS - Space Between
- Tailwind CSS - Sizing
- Tailwind CSS - Width
- Tailwind CSS - Min-Width
- Tailwind CSS - Max-Width
- Tailwind CSS - Height
- Tailwind CSS - Min-Height
- Tailwind CSS - Max-Height
- Tailwind CSS - Size
- Tailwind CSS - Typography
- Tailwind CSS - Font Family
- Tailwind CSS - Font Size
- Tailwind CSS - Font Smoothing
- Tailwind CSS - Font Style
- Tailwind CSS - Font Weight
- Tailwind CSS - Font Variant Numeric
- Tailwind CSS - Letter Spacing
- Tailwind CSS - Line Clamp
- Tailwind CSS - Line Height
- Tailwind CSS - List Style Image
- Tailwind CSS - List Style Position
- Tailwind CSS - List Style Type
- Tailwind CSS - Text Align
- Tailwind CSS - Text Color
- Tailwind CSS - Text Decoration
- Tailwind CSS - Text Decoration Color
- Tailwind CSS - Text Decoration Style
- Tailwind CSS - Text Decoration Thickness
- Tailwind CSS - Text Underline Offset
- Tailwind CSS - Text Transform
- Tailwind CSS - Text Overflow
- Tailwind CSS - Text Wrap
- Tailwind CSS - Text Indent
- Tailwind CSS - Vertical Align
- Tailwind CSS - Whitespace
- Tailwind CSS - Word Break
- Tailwind CSS - Hyphens
- Tailwind CSS - Content
- Tailwind CSS - Backgrounds
- Tailwind CSS - Background Attachment
- Tailwind CSS - Background Clip
- Tailwind CSS - Background Color
- Tailwind CSS - Background Origin
- Tailwind CSS - Background Position
- Tailwind CSS - Background Repeat
- Tailwind CSS - Background Size
- Tailwind CSS - Background Image
- Tailwind CSS - Gradient Color Stops
- Tailwind CSS - Borders
- Tailwind CSS - Border Radius
- Tailwind CSS - Border Width
- Tailwind CSS - Border Color
- Tailwind CSS - Border Style
- Tailwind CSS - Divide Width
- Tailwind CSS - Divide Color
- Tailwind CSS - Divide Style
- Tailwind CSS - Outline Width
- Tailwind CSS - Outline Color
- Tailwind CSS - Outline Style
- Tailwind CSS - Outline Offset
- Tailwind CSS - Ring Width
- Tailwind CSS - Ring Color
- Tailwind CSS - Ring Offset Width
- Tailwind CSS - Ring Offset Color
- Tailwind CSS - Effects
- Tailwind CSS - Box Shadow
- Tailwind CSS - Box Shadow Color
- Tailwind CSS - Opacity
- Tailwind CSS - Mix Blend Mode
- Tailwind CSS - Background Blend Mode
- Tailwind CSS - Filters
- Tailwind CSS - Blur
- Tailwind CSS - Brightness
- Tailwind CSS - Contrast
- Tailwind CSS - Drop Shadow
- Tailwind CSS - Grayscale
- Tailwind CSS - Hue Rotate
- Tailwind CSS - Invert
- Tailwind CSS - Saturate
- Tailwind CSS - Sepia
- Tailwind CSS - Backdrop Blur
- Tailwind CSS - Backdrop Brightness
- Tailwind CSS - Backdrop Contrast
- Tailwind CSS - Backdrop Grayscale
- Tailwind CSS - Backdrop Hue Rotate
- Tailwind CSS - Backdrop Invert
- Tailwind CSS - Backdrop Opacity
- Tailwind CSS - Backdrop Saturate
- Tailwind CSS - Backdrop Sepia
- Tailwind CSS - Tables
- Tailwind CSS - Border Collapse
- Tailwind CSS - Border Spacing
- Tailwind CSS - Table Layout
- Tailwind CSS - Caption Side
- Tailwind CSS - Transitions & Animation
- Tailwind CSS - Transition Property
- Tailwind CSS - Transition Duration
- Tailwind CSS - Transition Timing Function
- Tailwind CSS - Transition Delay
- Tailwind CSS - Animation
- Tailwind CSS - Transform
- Tailwind CSS - Scale
- Tailwind CSS - Rotate
- Tailwind CSS - Translate
- Tailwind CSS - Skew
- Tailwind CSS - Transform Origin
- Tailwind CSS - Interactivity
- Tailwind CSS - Accent Color
- Tailwind CSS - Appearance
- Tailwind CSS - Cursor
- Tailwind CSS - Caret Color
- Tailwind CSS - Pointer Events
- Tailwind CSS - Resize
- Tailwind CSS - Scroll Behavior
- Tailwind CSS - Scroll Margin
- Tailwind CSS - Scroll Padding
- Tailwind CSS - Scroll Snap Align
- Tailwind CSS - Scroll Snap Stop
- Tailwind CSS - Scroll Snap Type
- Tailwind CSS - Touch Action
- Tailwind CSS - User Select
- Tailwind CSS - Will Change
- Tailwind CSS - SVG
- Tailwind CSS - Fill
- Tailwind CSS - Stroke
- Tailwind CSS - Stroke Width
- Tailwind CSS - Accessibility
- Tailwind CSS - Screen Readers
- Tailwind CSS - Forced Color Adjust
- Tailwind CSS - Bonus
- Tailwind CSS - Using with Preprocessors
- Tailwind CSS - Optimizing for Production
- Tailwind CSS - References
- Tailwind CSS - Core Concepts
- Tailwind CSS - Customization
- Tailwind CSS - Layout
- Tailwind CSS - Flexbox & Grid
- Tailwind CSS - Spacing
- Tailwind CSS - Sizing
- Tailwind CSS - Typography
- Tailwind CSS - Backgrounds
- Tailwind CSS - Borders
- Tailwind CSS - Effects
- Tailwind CSS - Filters
- Tailwind CSS - Tables
- Tailwind CSS - Transitions & Animation
- Tailwind CSS - Transforms
- Tailwind CSS - Interactivity
- Tailwind CSS - Resources
- Tailwind CSS - Discussion
- Tailwind CSS - Useful Resources
Tailwind CSS - Overscroll Behavior
Tailwind CSS Overscroll Behavior is a utility class that tells us how browsers behave when an element reaches the boundary of its scrolling area.
Tailwind CSS Overscroll Behavior Classes
The following is the list of Tailwind CSS Overscroll Behavior Classes that provides an effective way of handling overflowed behavior of an element.
Class | CSS Properties |
---|---|
overscroll-auto | overscroll-behavior: auto; |
overscroll-contain | overscroll-behavior: contain; |
overscroll-none | overscroll-behavior: none; |
overscroll-y-auto | overscroll-behavior-y: auto; |
overscroll-y-contain | overscroll-behavior-y: contain; |
overscroll-y-none | overscroll-behavior-y: none; |
overscroll-x-auto | overscroll-behavior-x: auto; |
overscroll-x-contain | overscroll-behavior-x: contain; |
overscroll-x-none | overscroll-behavior-x: none; |
Functionality of Tailwind CSS Overscroll Behavior Classes
- overscroll-auto: This class replaces CSS overscroll-behavior: auto; property. This class has default behavior allow page to scroll when element boundary is reached.
- overscroll-contain: This class replaces CSS overscroll-behavior: contain; property. This class allow to scroll the element only not the page.
- overscroll-none: This class replaces CSS overscroll-behavior: none; property. This class prevents scrolling of page when elements boundary reached.
- overscroll-y-auto: This class replaces CSS overscroll-behavior-y: auto; property. This class allow to scroll page on y-axis when element boundary reached.
- overscroll-y-contain: This class replaces CSS overscroll-behavior-y: contain; property. This class allow to scroll the element on y-axis not the page.
- overscroll-y-none: This class replaces CSS overscroll-behavior-y: none; property. This class prevents page scrolling on y-axis when elements boundary reached.
- overscroll-x-auto: This class replaces CSS overscroll-behavior-x: auto; property. This class allow to scroll page on x-axis when element boundary reached.
- overscroll-x-contain: This class replaces CSS overscroll-behavior-x: contain; property. This class allow to scroll the element on x-axis not the page.
- overscroll-x-none: This class replaces CSS overscroll-behavior-x: none; property. This class prevents page scrolling on x-axis when elements boundary reached.
Tailwind CSS Overscroll Behavior Class Examples
The following examples will illustrate the Tailwind CSS Overscroll Behavior class utility.
Tailwind CSS Overscroll Auto Class
The below example illustrates the use of Tailwind CSS Overscroll Auto Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll Auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: auto; property. This class has default behavior allow page to scroll when element boundary is reached. In this example when we scroll the primary div, As we used overscroll auto class which will enable parent div to be scrolled when primary div's boundary reached. </p> </div> </body> </html>
Tailwind CSS Overscroll Contain Class
The below example is illustrating the use of Tailwind CSS Overscroll Contain Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll Contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: contain; property. This class allow to scroll the element only not the page. In this example when we scroll the primary div, As we used overscroll Contain class it will not allow to scroll the parent div to be scrolled when primary div's bounder reached. </p> </div> </body> </html>
Tailwind CSS Overscroll None Class
The below example is illustrating the use of Tailwind CSS Overscroll None Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll None Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: none; property. This class prevents scrolling of page when elements boundary reached. In this example when we scroll the primary div, As we used overscroll none class it will not allow to scroll the parent div to be scrolled when primary div's bounder reached. </p> </div> </body> </html>
Tailwind CSS Overscroll-Y-Auto Class
The below example is illustrating the use of Tailwind CSS Overscroll-y-auto Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: auto; property. This class allow to scroll page on y-axis when element boundary reached. In this example when we scroll the primary div, As we used overscroll-y-auto class it will to scroll the page on y-axis </p> </div> </body> </html>
Tailwind CSS Overscroll-Y-Contain Class
The below example is illustrating the use of Tailwind CSS Overscroll-y-contain Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: contain; property. This class allow to scroll the element on y-axis not the page. In this example when we scroll the primary div , As we used overscroll-y-contain class it will not allow the page to scroll. </p> </div> </body> </html>
Tailwind CSS Overscroll-Y-none Class
The below example is illustrating the use of Tailwind CSS Overscroll-y-none Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-none Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: none; property. This class prevents page scrolling on y-axis when elements boundary reached. In this example when we scroll the primary div, As we used overscroll-y-none class it will not allow the page to scroll. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-auto Class
The below example is illustrating the use of Tailwind CSS Overscroll-x-auto Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-x-auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: auto; property. This class allow to scroll page on x-axis when element boundary reached. In this example when we scroll the primary div, As we used overscroll-x-auto class it will allow the page to scroll on x axis. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-Contain Class
The below example is illustrating the use of Tailwind CSS Overscroll-x-Contain Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-x-Contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: contain; property. This class allow to scroll the element on x-axis not the page. In this example when we scroll the primary div,As we used overscroll-x-contain class it will not allow the page to scroll on x axis. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-none Class
The below example is illustrating the use of Tailwind CSS Overscroll-x-none Class.
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-X-None Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: none; property. This class prevents page scrolling on x-axis when elements boundary reached. In this example when we scroll the primary div, As we used overscroll-x-none class it will not allow the page to scroll on x axis. </p> </div> </body> </html>