cannedtuna@lemmy.world to memes@lemmy.worldEnglish · 8 hours agoElder scrollslemmy.worldimagemessage-square47fedilinkarrow-up1476arrow-down14
arrow-up1472arrow-down1imageElder scrollslemmy.worldcannedtuna@lemmy.world to memes@lemmy.worldEnglish · 8 hours agomessage-square47fedilink
minus-squarechisel@piefed.sociallinkfedilinkEnglisharrow-up17arrow-down1·7 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·5 hours agoI don’t know about scrollbars specifically, but apparently a lot of windows 11 is written in react
minus-squareLeon@pawb.sociallinkfedilinkarrow-up3·5 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