cannedtuna@lemmy.world to memes@lemmy.worldEnglish · 9 hours agoElder scrollslemmy.worldimagemessage-square48fedilinkarrow-up1491
arrow-up1491imageElder scrollslemmy.worldcannedtuna@lemmy.world to memes@lemmy.worldEnglish · 9 hours agomessage-square48fedilink
minus-squarechisel@piefed.sociallinkfedilinkEnglisharrow-up19·8 hours agoIt’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.
minus-square0ops@piefed.ziplinkfedilinkEnglisharrow-up2·6 hours agoI don’t know about scrollbars specifically, but apparently a lot of windows 11 is written in react
minus-squareLeon@pawb.sociallinkfedilinkarrow-up4·6 hours agoIt’s the start menu that’s written in react.
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.
I don’t know about scrollbars specifically, but apparently a lot of windows 11 is written in react
It’s the start menu that’s written in react.
Ew
what