this post was submitted on 05 Jun 2026
639 points (98.8% liked)

memes

22707 readers
1594 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] chisel@piefed.social 24 points 3 months ago (4 children)

It's a few lines of css, no JS required.

.my-div:hover {
  overflow-x: scroll;
}

And the look and feel of the scrollbar is generally determined by the browser/OS. Unless someone does a custom scrollbar implementation, but that is exceedingly rare. So that thin rounded gray bar is a browser/OS design, again, without any JS.

[–] 0ops@piefed.zip 6 points 3 months ago (1 children)

I don't know about scrollbars specifically, but apparently a lot of windows 11 is written in react

[–] Dojan@pawb.social 9 points 3 months ago (2 children)

It’s the start menu that’s written in react.

[–] diaphragmwp@discuss.tchncs.de 6 points 3 months ago* (last edited 3 months ago)

And Microsoft Store. And the weather. And also in that edition that literally just launches a browser into a remote machine, they decided to make the Ctrl + Alt + Del menu also a browser. For some reason.

[–] adhdsergio@lemmy.world 1 points 3 months ago

You can style the native scrollbars with css now

[–] diaphragmwp@discuss.tchncs.de 1 points 3 months ago

If these kids could read, they would be very upset!

[–] Starik@lemmy.world 0 points 3 months ago (1 children)
[–] diaphragmwp@discuss.tchncs.de 1 points 3 months ago* (last edited 3 months ago)

JS is a programming language that runs from the website on your computer. By "JS scrollbar" it was meant that the scrollbar is generated by the code, as if it was a program.

CSS is just a sheet of rules on how things should look like, it's not meant to run programs. This person is pointing out you can just tell the browser to add a scrollbar to something using CSS, without programming.