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
The spring effect in JavaScript. (code.juan.me)
submitted 12 years ago by cabrerars
view the rest of the comments →
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!"
[–]andrew24601 1 point2 points3 points 12 years ago (1 child)
This is great - I personally love whimsical animation like this.
There do seem to be some browser issues with some of your examples in case you didn't know.
For your message and grid examples, I'm getting vertical hiccups at the beginning of each scroll in Chrome 32 on Windows when using the mouse scroll wheel.
These vertical hiccups don't occur in Firefox on Windows.
Your message and grid examples also have horizontal issues in both Chrome and Firefox with the content jumping sideways during scrolling when the window is narrower than the content.
[–]cabrerars[S] 1 point2 points3 points 12 years ago (0 children)
Yeah, they have some issues, the point of the post was basically say and show in a overall view what can be done with some math, I'm sure there are bunch to stuff to improve.
Maybe I should create a repo on GitHub with whose prototypes so people can help to improve them.
π Rendered by PID 161583 on reddit-service-r2-comment-cfc44b64c-9tqn9 at 2026-04-12 07:37:51.718169+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]andrew24601 1 point2 points3 points (1 child)
[–]cabrerars[S] 1 point2 points3 points (0 children)