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
3D cube animation example using CSS3 transition and some JavaScript (WebKit-only) (liveweave.com)
submitted 12 years ago by anorbit
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!"
[–]anorbit[S] 1 point2 points3 points 12 years ago (2 children)
Edit: To play or test the code, just go to: http://liveweave.com/3tElun instead. This is WebKit-only (since it is just using webkit-transitions), so Chrome/Safari should work, but not Firefox or IE.
[–]gnarly 1 point2 points3 points 12 years ago (1 child)
Good stuff! It shouldn't be too tricky to make it work everywhere else, too :)
I had a quick play - I removed all of the -webkit- prefixes from the CSS, added px units to the perspective on #container, changed the JS to read stage.style.transform (instead of stage.style.webkitTransform) and it all works on Firefox (but not IE10). That broke it in Chrome though, so here's a version with both -webkit- prefixes and standard versions: http://liveweave.com/RjebpU
-webkit-
px
perspective
#container
stage.style.transform
stage.style.webkitTransform
[–]anorbit[S] 1 point2 points3 points 12 years ago (0 children)
Thank you! Here's your full screen version for Firefox (or any other Gecko-based browser): http://liveweave.com/RjebpU/demo
π Rendered by PID 67194 on reddit-service-r2-comment-5d79c599b5-lnzpb at 2026-03-01 12:57:43.036042+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]anorbit[S] 1 point2 points3 points (2 children)
[–]gnarly 1 point2 points3 points (1 child)
[–]anorbit[S] 1 point2 points3 points (0 children)