Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
scrollbars

19 Articles
{
,

}
Direct link to the article Classy and Cool Custom CSS Scrollbars: A Showcase
scrollbars

Classy and Cool Custom CSS Scrollbars: A Showcase

In this article we will be diving into the world of scrollbars. I know, it doesn’t sound too glamorous, but trust me, a well-designed page goes hand-in-hand with a matching scrollbar. The old-fashioned chrome scrollbar just doesn’t fit in as …

Avatar of Saleh Mubashar
Saleh Mubashar on Nov 14, 2022
Direct link to the article Strut Your Stuff With a Custom Scrollbar
scrollbars

Strut Your Stuff With a Custom Scrollbar

The first time I had my breath taken away by a humble scrollbar was on this very site. When CSS-Tricks v17 rolled out with its FAT CHONKY BOI, my jaw dropped.…

Avatar of Shawn Wang
Shawn Wang on Dec 24, 2021
Direct link to the article Scrollbars on Hover
hover scrollbars

Scrollbars on Hover

First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a big place and I like tricks, so I’m going to cover the …

Avatar of Chris Coyier
Chris Coyier on Jan 20, 2021 (Updated on Jan 26, 2021)
Direct link to the article That’s Just How I Scroll
scrollbars scrolling ux

That’s Just How I Scroll

How do you know a page (or any element on that page) scrolls? Well, if it has a scrollbar, that’s a pretty good indication. You might still have to scrapple with your client about “the fold” or whatever, but I …

Avatar of Chris Coyier
Chris Coyier on Aug 14, 2020
Direct link to the article Hide Scrollbars During an Animation
animation scrollbars specificity

Hide Scrollbars During an Animation

CSS still can’t animate to auto dimensions.

.dropdown {
  transition: 0.2s;
  height: 0;
}
.dropdown.open {
  /* the height will change, but it won't animate. */
  height: auto;
}

There is JavaScript trickery you can try. Brandon Smith outlined several …

Avatar of Chris Coyier
Chris Coyier on Jun 24, 2020 (Updated on Sep 15, 2021)
Direct link to the article Two Browsers Walked Into a Scrollbar
scrollbars

Two Browsers Walked Into a Scrollbar

Surprise: scrollbars are complicated, especially cross-browser and cross-platform.

Sometimes they take up space and sometimes they don’t. Sometimes that is affected by a setting and sometimes it isn’t. Sometimes you can see them and sometimes you can’t unless you’re actually …

Avatar of Chris Coyier
Chris Coyier on Sep 18, 2019
Direct link to the article The Current State of Styling Scrollbars in CSS (2022 Update)
scrollbars

The Current State of Styling Scrollbars in CSS (2022 Update)

Looking at Styling Scrollbars in CSS? Look no further, we've got you covered here. This covers how it's best done right now.
Avatar of Chris Coyier
Chris Coyier on Nov 23, 2018 (Updated on Feb 21, 2022)
Direct link to the article scrollbar-gutter
scrollbars

scrollbar-gutter

The scrollbar-gutter property in CSS provides flexibility to determine how the space the browser uses to display a scrollbar that interacts with the content on the screen. The spec describes it as “reserving space for the scrollbar”. The beauty of …

Avatar of Geoff Graham
Geoff Graham on Nov 9, 2018 (Updated on Sep 11, 2021)
Direct link to the article What’s New In CSS?
:matches aspect ratio CSS logical properties scrollbars

What’s New In CSS?

Rachel hooks us up with what the CSS Working Group is talking about:

  • Styling scrollbars. This would come with properties like scrollbar-width and scrollbar-color. The best we have right now is proprietary WebKit stuff.
  • Aspect ratios. I imagine
…
Avatar of Chris Coyier
Chris Coyier on Nov 2, 2018
Direct link to the article Scroll to the Future
scroll-behavior scroll-snap scrollbars

Scroll to the Future

This is an interesting read on the current state of scrollbars and how to control their behavior across operating systems and browsers. The post also highlights a bunch of stuff I didn’t know about, like Element.scrollIntoView() and the scroll-behavior CSS …

Avatar of Robin Rendle
Robin Rendle on Apr 19, 2018 (Updated on Aug 7, 2018)
Direct link to the article `matrix3d()` for a Frame-Perfect Custom Scrollbar
scrollbars

`matrix3d()` for a Frame-Perfect Custom Scrollbar

Das Surma:

In this article we will leverage some unconventional CSS matrices to build a custom scroller that doesn’t require any JavaScript while scrolling, just some setup code.

If turning a scrollbar into a Nyan cat with near-perfect functionality isn’t …

Avatar of Chris Coyier
Chris Coyier on Apr 1, 2017
  • 1
  • 2
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top