feed.reconfine.com

  • Random
  • Archive
  • RSS
  • Ask me anything

Pandy, a 3D CSS demo

mrgan:

(This post uses formatting and features not visible in the Tumblr Dashboard. If anything below doesn’t make sense or looks plain ugly, consider viewing the post on my website. I love the Dashboard, I hate the Dashboard.)

Did you know you can do 3D transformations on objects in Webkit-based browsers? What I mean is, you can take an IMG or a DIV or, well, anything, and translate, rotate, or scale it in 3D space, along three axes.

I intended to make a standalone iPhone game that would demo this but other things got in the way, so I’m sharing what I have in hope that you can learn a bit about next-generation CSS and Javascript. Hit http://mrgan.com/pandy on your iPhone to try it out, then hit the same on your computer to have at the source code.

A few notes:

  • This will look fine on Safari on your desktop, but you can only interact with it on the iPhone, because I’m detecting touch events, not clicks.
  • Move your finger around to rotate the cube. (Many thanks to Andy Matuschak for help with the arcball!)
  • This whole thing was done quick and dirty, so don’t fault Webkit or the iPhone for bugs and performance; that’s all on me :)
  • This is in no way based on the awesome-sounding WebGL technology, which aims to make 3D way more powerful on the web.
  • Nothing to do with canvas either! Just some DIVs rotated in 3D space.

Source: mrgan

    • #css
    • #3d
    • #iphone
  • 2 years ago > mrgan
  • 51
  • Permalink
  • Share
    Tweet

51 Notes/ Hide

  1. twinch liked this
  2. artgillespie reblogged this from mrgan and added:
    Slick. As. Hell.
  3. omnicollective liked this
  4. pxlblg liked this
  5. chrispazen liked this
  6. brier liked this
  7. reconfine reblogged this from mrgan
  8. zachrose liked this
  9. scottmcdowell liked this
  10. joeydi liked this
  11. dalasverdugo reblogged this from mrgan
  12. kurafire reblogged this from mrgan and added:
    Sexy! Well done, sir.
  13. hsmt reblogged this from tanakahisateru
  14. matthewb liked this
  15. redcloud liked this
  16. wtfdude liked this
  17. jpunt liked this
  18. tanakahisateru reblogged this from mrgan and added:
    これ、iPhoneのSafariだけで3Dの箱を回すデモを作ったってこと?
  19. brandonevans liked this
  20. jeremyturner liked this
  21. richiety reblogged this from mrgan
  22. matsuda liked this
  23. gean liked this
  24. mrfrustrationman liked this
  25. natebishop liked this
  26. whltexbread liked this
  27. slush liked this
  28. trey liked this
  29. guillee liked this
  30. shirtoid liked this
  31. jayrobinson liked this
  32. ianbroyles liked this
  33. dwineman liked this
  34. couch liked this
  35. jimray liked this
  36. jacobd reblogged this from mrgan
  37. wordishness liked this
  38. charliepark liked this
  39. willw liked this
  40. rocketpilot liked this
  41. evanwalsh liked this
  42. lonelysandwich liked this
  43. mrgan posted this
← Previous • Next →

Logo

Pages

  • About Me
  • Studio

Meanwhile...

  • reconfine on Dribbble
  • reconfine on Forrst
  • @reconfine on Twitter
  • Facebook Profile
  • reconfine on Vimeo
  • reconfine on Youtube
  • reconfine on Flickr
  • reconfine on Last.fm
  • reconfine on Soundcloud
  • My Skype Info
  • Linkedin Profile

<3

See more →
  • Photo via randomghost
    Photo via randomghost
  • Photoset via worldwhatup
    Photoset via worldwhatup
  • Photo via robynie

    PlatonicBOMB by Surrogate Self

    Photo via robynie
  • Photo via randomghost

    darksilenceinsuburbia:

    Frank Miller. Absolute Dark Night.

    Book cover art for Absolute Dark Knight, the single-volume edition combining

    Photo via randomghost
  • Photo via aboyinmidair
    Photo via aboyinmidair
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr