Readit News logoReadit News
psygn89 · a year ago
Nice! I had an idea that I never coded up. Basically a hamster with a parachute that would fall slowly to the bottom of the page. If you scroll down fast his parachute will deploy to catch up and land once again at the bottom of the viewport. He'll hold a "Top" sign when you hover over him and will shoot off with a jetpack when you click on him and as the screen hits the top you'll see him deploy a parachute again to gently land at the bottom of the screen.
raaron773 · a year ago
Okay now i want this. For some reason i keep imagining the hamster to look similar to the gopher in golang (obviously not blue)
dhosek · a year ago
Nah, the hamsterdance.com hamster.
andirk · a year ago
Waiting for the repo link. I will add a fork where the hamster's parachute doesn't redeploy if scrolling to fast and then the user "loses". Discourages scrolling. Might be helpful?
szszrk · a year ago
Have a look at my other comment. I just noticed it has an issue that parachute doesn't redeploy properly when you scroll down->up->down, but it works nicely aside of that.
szszrk · a year ago
https://gist.github.com/iamtomek/5d4a30c1a6765d695950c777e38...

Disclaimer: I wrote zero lines of this, it was made purely with Claude 3.7 (via Kagi assistant) with around 10 additional revisions in one conversation. I pasted the emojis in the prompt, but that's basically it.

I never coded anything meaningful in html and js.

Edit: it silly that in a place where so much discussion is about AI, when I paste a working AI generated code what I first get is downvotes. I guess you like hating AI more than hamsters.

matsemann · a year ago
> a working AI generated

The parachute will never deploy if you're higher than a previous low. So if you scroll down, a bit up, and then down again it will not have a parachute, until reaching the point where it was at the bottom last and then suddenly it gets a parachute mid fall.

If it's falling without a parachute, it will get glued to the corner the moment you start scrolling up. If it's falling with a parachute, scrolling up will break it and it will continue past the screen.

I don't want to sound overly critical - it's cool that you dished this up so quick - just commenting on your comment. The fact that the AI made so many bugs in such a short script is kinda disproving it "working", doesn't mean we like hating AI.

turblety · a year ago
Sorry you got downvoted. Uploaded it for a demo: https://65d22473-339d-4325-90bb-bef215770f60.paged.net/

Deleted Comment

Kiro · a year ago
Thanks! People downvoting you should be ashamed of themselves.
MHM5000 · a year ago
and on scroll up a hamster with jetpack/rocket
hello12343214 · a year ago
ok this sounds cool

Dead Comment

jsheard · a year ago
This kind of thing should probably be disabled if the user has prefers-reduced-motion set.

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...

It just needs one extra CSS rule to make the guy invisible when appropriate:

  @media (prefers-reduced-motion) {
    #scrollBuddy {
      visibility: hidden;
    }
  }

geor9e · a year ago
It seems the author has now implemented this. Now people like me just see a pointless page of lorem ipsum. I feel like demos can be exempted from filters like this, especially when you can only get to the demo via a clearly worded link.

The same code that disappeared the thing could add some text explaining that the page is disabled and why, in my case: Apple Menu > System Preferences > Accessibility > Display > Reduce motion (for other OS's see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...)

For me, this setting makes macOS snappier, by getting rid of the little animations in OS. If it weren't for this comment, I never would have known it affected websites. I've had the setting for years with no issues.

rendx · a year ago
If you're like me and want to keep the OS setting intact but not have it affect web sites, add the following preference in Firefox: ui.prefersReducedMotion (0 = no, 1 = yes).
sitkack · a year ago
Thank you! I just went and adjusted a bunch of these, "reduced transparency" really reduced the visual load, I didn't realize how many windows were bleeding through for no reason.
DrammBA · a year ago
Every change really does break someone's workflow https://xkcd.com/1172/

Counter-argument against exempting the demo page: https://news.ycombinator.com/item?id=43237672

Deleted Comment

LoganDark · a year ago
> For me, this setting makes macOS snappier

For me, it just replaces the slow movement animations with slow fade animations instead, which is just utterly infuriating.

DrammBA · a year ago
I just replied to call out how negative your initial comment was and was suprised to see the full edit, thank you for the change and even providing sample code.
oneeyedpigeon · a year ago
I guess this is probably the kind of exact reason that I have "reduce motion" set, but it's a shame in this case since it's a pretty harmless implementation!
yuters · a year ago
I wish the author of the site didn't see your comment. It took me a while to understand why I couldn't see it on any browser.
nashashmi · a year ago
Time for the author to add a CSS VISIBILITY note for those with this preference alerting them to a non working page because their browser has this selected option
hello12343214 · a year ago
good catch. it should be fixed now for users that have those settings turned on. much appreciated!
robocat · a year ago
Now some of us would like an override checkbox to enable your demo again!

I didn't even know I had prefers-reduced-motion turned on and I certainly didn't know it affected web pages via CSS!!!

Another 0/1 bit for fingerprinting. Doesn't appear in https://coveryourtracks.eff.org/ (panopticlick). Also see prefers-contrast, prefers-reduced-transparency, prefers-color-scheme, inverted-colors

mrjbq7 · a year ago
I hope you see this comment:

Please revert the "fix" that makes it so your demo is not seen at all.

Deleted Comment

watusername · a year ago
Would be neat if the author added some text to the demo page when prefers-reduced-motion is in effect, similar to <noscript> tags alerting you to the fact that JavaScript is disabled.

Deleted Comment

Summerbud · a year ago
Oh that is a really good point!
codelion · a year ago
that's a good point about prefers-reduced-motion... i hadn't considered that. it's an easy win for accessibility.

Dead Comment

robotsquidward · a year ago
How has nobody said that this should be called 'Stroll Bar'????
hello12343214 · a year ago
Sadly that name was taken so just bought scrollbuddy.com and will have it ready for people to implement soon
gokaygurcan · a year ago
This deserves a medal, come on!
hello12343214 · a year ago
Instead of a boring scrollbar thought it would be fun to have an animated stick figure that walks up and down the side of your page when you scroll.

This is the first prototype i made.

Going to make a skateboarder, rock climber, or squirrel next. what other kinds of scroll buddies should I make?

JKCalhoun · a year ago
Two guys pumping a rail-car.

Someone rowing the scrollbar thumb (the longer the thumb, the more rowers).

hello12343214 · a year ago
row boat would be cool
thomasfromcdnjs · a year ago
Saw this catapillar one a few weeks ago -> https://x.com/trunarla/status/1893705260142657764
block_dagger · a year ago
Very cool idea! Suggestion: add a trail of breadcrumbs that the figure tosses behind them and, when scrolling up, picks them back up again or kicks them off the screen.
hello12343214 · a year ago
this is a great idea! I am working on a few other scroll buddy animations :)
chuckwolfe · a year ago
My first two ideas to ‘innovate’ on this was; a car driving down the page, or a drag racing Christmas tree where the lights count down in ‘full tree’ style.
rexer · a year ago
Maybe a raindrop? Anyone else cheer for raindrop races as a kid on long drives?

An apple falling on to Newton's head.

Fun to think about!

davidw · a year ago
Some gears meshing together and rotating that 'make' the page go up and down?
jorisboris · a year ago
Change the persons orientation (make him turn around) when going back up?
ohwaitnvm · a year ago
Love it! Super creative :)

How about a skier with little jumps or obstacles at each header

fooker · a year ago
Monkey climbing a pole (children's arithmetic problem)

Cat, with different animations depending on how fast you scroll.

Elevator, with stops at paragraphs(/some other break)

slightwinder · a year ago
A rocket, flying saucer or bird seems obvious, for something which is going up and down. But as an improvement, it should also handle the direction of scrolling. At the moment, the buddy always looks into the same direction. Unless it's Michael Jackson doing a moonwalk (which you could add too), it's inconsistent.
inatreecrown2 · a year ago
scuba-diver.

also cave explorer on a rope.

hello12343214 · a year ago
scuba diver would be cool
mandmandam · a year ago
Stickman Michael Jackson; complete with moon walk, anti grav lean, side glide, circle slide, and a toe lean at the end. Crotch grab optional (maybe on click?).
andirk · a year ago
A guy falling that just keeps eating shiit.
Sateeshm · a year ago
I am going to do one with Homer Simpson falling down a cliff hitting everything on his way
oniony · a year ago
I like it. Coprophilia guy, they could call him.
memhole · a year ago
Penguin waddle, slinky
johng · a year ago
I like it, it's neat!
hello12343214 · a year ago
adds a bit of fun to a website :)
amelius · a year ago
Bookworm, of course.
croisillon · a year ago
could it turn around and walk up forwards?
nosioptar · a year ago
I normally react to sites touching my scrollbar with language I shouldn't repeat on someplace as innocent as the internet.

Scrollbuddy is different. I would take a bullet for scrollbuddy. I want him on all sites.

linhns · a year ago
A platypus?
brysonreece · a year ago
Surprised I seem to be the only one willing to ask; _why in the world would you wall the implementation behind a Google Form?_

Edit: Implementation details are actually readily accessible in the DOM. Here's a gist that extracts the relevant details (for those who, understandably, don't want to give out their email in exchange):

https://gist.github.com/brysonreece/b15f33cda30af06b7b70788d...

_def · a year ago
It's baffling to me. It's one thing if you don't want to do a write up and share it but to offer that in exchange to collect email adresses seems so strange.
kevlened · a year ago
As it currently stands, code without an explicit license isn't usable. There is no license for the code you posted, but contacting him could get you one. Using the code linked could constitute a copyright violation.

Deleted Comment

rpmisms · a year ago
He wants payment for his work, just in attention rather than money. Seems reasonable to me.
kmoser · a year ago
What am I missing? I don't see anything except the scroll bar itself, on both Firefox and Chrome. Do my custom scroll bar colors have something to do with it?
Mashimo · a year ago
Do you a have reduce motion set in your OS? That preference is respected and the guy is disabled.
kmoser · a year ago
Yep, that was it. It would have been nice if the page detected the reduced motion setting and displayed a message indicating why the demo wouldn't work in that case.
EA · a year ago
mrgoldenbrown · a year ago
I don't see it on Android Firefox or Android chrome. I see it on windows chrome.
AHASIC · a year ago
Same for me, nothing happens.
rcfox · a year ago
Reminds me of the late 90s when people would add effects to their websites, like snow or trails of sparks that follow the mouse.
altacc · a year ago
Yep, DHTML Zone was the go to place for trippy visuals that'd paralyze your users' browser so that you could make your website look super awesome cool!

Deleted Comment

mercacona · a year ago
Now it can remind you iOS 18’s iMessage. I just upgrade and got that 2000s feeling with the new emoji and text effects…
a12k · a year ago
This sort of project reminds me of the old internet. I love it.
davidw · a year ago
I had exactly that same reaction. Someone just doing something fun and cool for the heck of it.
kylecazar · a year ago
More marquee!
pknerd · a year ago
Old HN!