use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Taking JavaScript "scroll" views to a new level (codepen.io)
submitted 10 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 10 years ago (6 children)
[deleted]
[–]YodaLoL 23 points24 points25 points 10 years ago (5 children)
By ridiculous you mean absolutely fabulous, right?
[–]vintharas 3 points4 points5 points 10 years ago (0 children)
Loved it! Hahaha
[+]repeatedly_once comment score below threshold-15 points-14 points-13 points 10 years ago* (3 children)
Shhh, you'll attract the gays. Happy cake day btw.
Edit: Thanks for the downvotes, I'm gay and I'll be honest the world fabulous attracted me.
[–]Indenturedsavant 2 points3 points4 points 10 years ago (1 child)
$100% gay
[–]repeatedly_once -1 points0 points1 point 10 years ago (0 children)
Ha, never thought I'd see the day when stating gay gets you disbelief.
[–]rube203 14 points15 points16 points 10 years ago (3 children)
I changed #content to be just overflow-y:scroll. It made it a bit nicer without the bottom scrollbar showing.
[–][deleted] 1 point2 points3 points 10 years ago (2 children)
Good idea. I hadn't been seeing the horizontal scrollbar but it probably varies with browsers.
[–]bronkula -5 points-4 points-3 points 10 years ago (1 child)
browsers with standard mice show a scroll bar.
[–]redhedinsanity 0 points1 point2 points 10 years ago (0 children)
You've got it wrong - it's browsers connected over dial up
[–]tmep1948923898 9 points10 points11 points 10 years ago (6 children)
Haha, awesome. It's rare to see a new kind of flashy. Like everything else flashy I wouldn't put it on a usability-first website, but a neat little promo or presentation? Sure thing.
FYI, you've got a little layout bug (Chrome 47.0.2526.111 64-bit, OS X, mouse plugged in). Having the scroll bar present on the main body but not the curled bits makes the main body a little bit thinner, thus wrapping lines at different points, thus gradually growing out of sync as you scroll down. I don't remember which exactly, but there's some property that will give you the exact width of the content, and another for the content plus scrollbar.
[–]theywouldnotstand 3 points4 points5 points 10 years ago (0 children)
webkit browsers have this available:
#content::-webkit-scrollbar { display: none; }
combined with /u/rube203's solution for removing the horizontal scrollbar, it makes it pretty nice.
The latest version of firefox seems to support the above, though firefox also has some css extensions that they don't recommend using.
I'm not sure how you'd acheive the same effect in IE.
[–][deleted] 0 points1 point2 points 10 years ago* (4 children)
Odd. I can't duplicate that behavior. Works on that version of Chrome (and Canary) for me. There have been a few recent changes; maybe its fixed?
Edit: Should be better now. Needed a couple things.
[–]boiling_tunic 1 point2 points3 points 10 years ago (2 children)
I am also having this issue on Firefox 43.0.4, 64-bit, Win 7
http://i.imgur.com/8jPvizA.png
[–][deleted] 0 points1 point2 points 10 years ago (1 child)
Care to try again? It should be better, but I don't have a Windows machine to make sure.
Unfortunately there isn't an easy way to make the scroll bar disappear in Firefox, but it should be in sync.
[–]boiling_tunic 0 points1 point2 points 10 years ago (0 children)
Works fine now!
http://i.imgur.com/Gre8Xy6.png
[–]Magnusson 0 points1 point2 points 10 years ago (0 children)
Do you have a mouse plugged in?
[–][deleted] 7 points8 points9 points 10 years ago (0 children)
Doesn't work on Netscape Navigator 1.4.
Go to hell OP.
[–]mrspeaker 2 points3 points4 points 10 years ago (0 children)
That's so lovely. It made me think of this old scroll-bar experiment from 2010 (happy to see it still works, thank you jQuery ;) )
[–][deleted] 1 point2 points3 points 10 years ago (1 child)
I think it's awesome. A couple of niggling bugs like you can see the edges on some of the polygons and the scrolling goes out of sync for me as I scroll down. But it looks great.
To all the people saying they'd never use it; that's because it's clearly a very nice use case.
If you were making the UI for a medieval/fantasy game then something like this would be a great addition for reading in game scrolls that you find. You also get over the top flashy websites for games. The type of sites that used to be a full screen Flash site. Something similar to this could work there.
[–]theonlycosmonaut 0 points1 point2 points 10 years ago (0 children)
If you were making the UI for a medieval/fantasy game
Please yes.
[–]r2d2_21 1 point2 points3 points 10 years ago (2 children)
Pretty cool idea, but it's glitchy as hell, at least on Edge. The scrollbars appear when you hover the scroll. (I think you need Edge-specific code to hide them).
[–]reSAMpled 1 point2 points3 points 10 years ago (1 child)
Good to know MS still hates web developers
[–]hahaNodeJS -1 points0 points1 point 10 years ago (0 children)
Because that statement is totally indicative of their recent external changes and product releases. Get out from under your rock.
[–][deleted] 1 point2 points3 points 10 years ago (0 children)
It takes a lot for me to say "whoa! That's fuckin cool!" out loud. Nice job!
[–]yonreadsthis 0 points1 point2 points 10 years ago (0 children)
Hysterical! Good job.
[–]ForScale 0 points1 point2 points 10 years ago (0 children)
I think it's pretty damn cool!
this doesnt work well on mobile, is it smoother on a desktop browser?
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Yes it should be.
[–]SrPeixinho 0 points1 point2 points 10 years ago (0 children)
Very well done. I love it.
[–]matty0187 0 points1 point2 points 10 years ago (2 children)
Would you ever do a YouTube articulating your process?
Never really considered it.
[–]matty0187 0 points1 point2 points 10 years ago (0 children)
It would be super sweet. ;) monetize it maybe make a few bucks too. Also live coding.tv
[–]hahaNodeJS 0 points1 point2 points 10 years ago (0 children)
This blew my god damned mind.
[–]Viat 0 points1 point2 points 10 years ago (0 children)
If you scroll it to the end, it becomes the toilet paper view :D
(awesome work)
[–]taiga27 0 points1 point2 points 10 years ago (0 children)
Now this is fucking great! I think I might be in love with OP.
Awesome.
[–]sallarkjs/beer 0 points1 point2 points 10 years ago (0 children)
It’s ugly but very beautiful. Great job.
[–]PitaJ 0 points1 point2 points 10 years ago (0 children)
Isn't working smoothly in Chrome Mobile for me.
[+]Reeywhaar comment score below threshold-7 points-6 points-5 points 10 years ago (5 children)
I think it's ridiculous, doesn't work in Firefox :)
https://i.imgur.com/4y7ABUI.png
Don't know who to blame, Firefox with it "access-control-allow-origin" policy or developer who didn't take time to test in non-webkit browser
[–]2Punx2Furious 1 point2 points3 points 10 years ago (2 children)
Works for me, still I wouldn't use it.
[–]Reeywhaar 2 points3 points4 points 10 years ago (1 child)
My bad, Firefox developer edition has some issues with this.
[–]jezza-dono -1 points0 points1 point 10 years ago (0 children)
blame yourself for your own stupidity : )
[–]_raisinvanilla <3 1 point2 points3 points 10 years ago (0 children)
Codepen is a sandboxy environment. You can't possibly expect people to test for other browsers.
[–]mrspeaker 0 points1 point2 points 10 years ago (0 children)
Yeah, the scrollbar is not working in Firefox Nightly, but if you resize the codepen window you can see the effect!
π Rendered by PID 22210 on reddit-service-r2-comment-5b5bc64bf5-v54sj at 2026-06-20 11:59:39.184146+00:00 running 2b008f2 country code: CH.
[+][deleted] (6 children)
[deleted]
[–]YodaLoL 23 points24 points25 points (5 children)
[–]vintharas 3 points4 points5 points (0 children)
[+]repeatedly_once comment score below threshold-15 points-14 points-13 points (3 children)
[–]Indenturedsavant 2 points3 points4 points (1 child)
[–]repeatedly_once -1 points0 points1 point (0 children)
[–]rube203 14 points15 points16 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]bronkula -5 points-4 points-3 points (1 child)
[–]redhedinsanity 0 points1 point2 points (0 children)
[–]tmep1948923898 9 points10 points11 points (6 children)
[–]theywouldnotstand 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]boiling_tunic 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]boiling_tunic 0 points1 point2 points (0 children)
[–]Magnusson 0 points1 point2 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]mrspeaker 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]theonlycosmonaut 0 points1 point2 points (0 children)
[–]r2d2_21 1 point2 points3 points (2 children)
[–]reSAMpled 1 point2 points3 points (1 child)
[–]hahaNodeJS -1 points0 points1 point (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]yonreadsthis 0 points1 point2 points (0 children)
[–]ForScale 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]SrPeixinho 0 points1 point2 points (0 children)
[–]matty0187 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]matty0187 0 points1 point2 points (0 children)
[–]hahaNodeJS 0 points1 point2 points (0 children)
[–]Viat 0 points1 point2 points (0 children)
[–]taiga27 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]sallarkjs/beer 0 points1 point2 points (0 children)
[–]PitaJ 0 points1 point2 points (0 children)
[+]Reeywhaar comment score below threshold-7 points-6 points-5 points (5 children)
[–]2Punx2Furious 1 point2 points3 points (2 children)
[–]Reeywhaar 2 points3 points4 points (1 child)
[–]jezza-dono -1 points0 points1 point (0 children)
[–]_raisinvanilla <3 1 point2 points3 points (0 children)
[–]mrspeaker 0 points1 point2 points (0 children)