HexaFlip: A Flexible 3D Cube Plugin

HexaFlip is a JavaScript UI plugin that let’s you use 3D cubes as interface elements. Dive into the process of creating the plugin and learn some best practices regarding flexible UI plugins.

The
New
Collective

🎨✨💻 Stay ahead of the curve with handpicked, high-quality frontend development and design news, picked freshly every single day. No fluff, no filler—just the most relevant insights, inspiring reads, and updates to keep you in the know.

Prefer a weekly digest in your inbox? No problem, we got you covered. Just subscribe here.

Feedback 51

Comments are closed.
  1. So cool! Thanks for sharing–I know exactly where I’m gonna use this plugin.

  2. Thanks again. I continued to be floored by this site’s CSS examples.

  3. Wow, it looks great!

    Let me suggest some keyboard controls (maybe a check with focus and tabindex), and it would be awesome!

  4. Ha John,

    If you don’t like it. Why are you visiting this site?

    Thijs

  5. I don’t really see the usefulness of it…ok, it’s fun, but what is the purpose? what do we learn? I prefered when there was some useful, nice and clean plugins/tuts from codrops…
    and the minimum is to propose something that works on all browsers, that’s the job of a professional designer/developer!
    I love codrops so much that I’m a little bit disappointed when I look at the last tuts which are not codrops at all…to bad…good thins never last…

    • I believe the demo’s here are to give inspiration not give you out of the box solutions for your work. For example I was thinking the password demo from this tutorial could be tweaked to create a pretty cool Captcha form element.

      There is more power in creation than there is in copying.

  6. The majority of traffic (In my products case) is Chrome/FF/Safari. The measily few IE users can bugger off.

  7. Couldn’t a decent developer create an alternate view for IE users if it was required?
    Just because IE is slow to play catch up it doesn’t mean developers should just wait to experiment.

  8. You’re obviously missing the entire point of this [and every other] article on this website.

    Lately I’ve taken to building simple experimental UI plugins that manipulate elements with a combination of JavaScript and modern CSS techniques

    Seems to me as though this is an “experiment”, and it was published so that people can learn some neat new things. Plus, how the hell are we supposed to convince the developers of your beloved IE browser to make a better and more standards-compliant product if we don’t push the envelope of what’s possible with raw code?

    Your comment is completely unfounded and childish. “Unbelievable”, as you so eloquently put it.

  9. Hey, is it just me, or does demo 4 look like it could translate to a nice captcha alternative?

  10. It is great!! And yeah, it doesn’t work in IE, like most things we see lately. We cannot wait for Microsoft to update their tremendously outdated browser, because we wouldn’t improve at all.

    Is it possible to change the cube faces color with CSS? I can’t get it to work!

    Thanks!

  11. It’s very beautiful. I can see some nice uses for this but it’s not working even on IE9 which is a huge downfall to this and many other great scripts on this site.

    • Actually, its working on IE9 and on on its compatibility modes for IE8 and IE7….

  12. Amazing!!
    Good job!
    I really regret it doesn´t work with Internet Explorer 🙁

  13. Incredible, got a magical result with this work :O

    Thanks for sharing your knowledge 😉

  14. in demo 1 once it spells out the correct word, how can you make the animation stop and not continue to reverse and randomize the letters 😉

  15. Awesome!!!! I’m just wondering if it’s possible to make the images clickable.

  16. Great Cube…!
    But, How to call another .html (my website) after “password correct”, i use Demo 4…
    help me please… 🙁

  17. Hi,
    awsome work!

    simple question:
    how can i get the value of the current front-side on touch end?
    i’am trying to change demo4 so its checks values not on click, but on touch end.

  18. I can’t quite tell…is it possible to put an iframe on each face of the cube? Should be, how could I do so?

  19. I want to insert an image in place of the backgroundColor on the cube faces.

    i tried changing the backgroundColor to backgroundImage in the code snippet below, but it didn’t work.

    “{
    value: ‘i am green’,
    style: {
    backgroundColor: ‘#00ff00’
    }
    }”

    how can i achieve the same? but all cube faces shall have different images.

    please need a reply to this query asap, as i need to show mockup to my customer. Can the developer or someone else help me?
    I know the color can be changed to image, i tried editing it using the firebug extension.

    thanks in advance.

  20. Hello, thank for this buetifull script.
    Can you help to set same leters for every side of 1 cube.
    I need only change color of cubes instead of letters to.