Morphing Devices

An experimental morphing devices slideshow with CSS Transitions for showcasing responsive web design screenshots.

MorphingDevices

View demo Download source

Today we want to share an experimental “morphing” slideshow with you. The idea is to transition between different devices that show a screenshot of a responsive website or app by applying a “device class”. By using the same elements and pseudo-elements for all the devices, we can create an interesting morph effect. We will control the classes and the switching of the image with some JavaScript. We’ve also added an option for autoplaying the slideshow and for rotating some of the devices.

Please note that this is very experimental and only works as intended in browsers that support the respective CSS properties.

MorphingDevices_iMac

There are four devices which we will use to display different screenshots of responsive designs. Two of them, the tablet and the smartphone, can also be rotated. What we do is to interchange the classes depending on the device and since the device has transitions defined, we’ll see a morphing effect. Note that we also animate pseudo-elements here which might not be supported in all browsers (especially mobile browsers).

MorphingDevices_MacBook

The rotation on the last two devices happens by adding another class which will rotate the device 90 degrees.

MorphingDevices_iPad

The images are changed by adding the new picture and fading out the previous one. This also creates a morphing effect where the image gets stretched or squeezed to accomodate the new size.

MorphingDevices_iPhone

The better technology to choose for this kind of effect is undoubtedly SVG, but for practicality reasons we started this experiment with CSS and JS.

We hope you like and enjoy it and get inspired!

View demo Download source

Previous:
Next:

Tagged with:

Mary Lou (Manoela Ilic) is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

View all contributions by

Website: http://tympanus.net/

Related Articles

Feedback 23

Comments are closed.
  1. 2

    Hi,

    Really nice concept, well executed without relying on JQuery. One point, you mention caveats about this not being widely supported especially on mobile devices, fine, understood. But surely these devices would be where one may want to use a showcase like this, to, erm, illustrate that the site being viewed works perfectly well on desktop as well. I understand the concept and that accelerated CSS transitions would be the best choice in the absence of SVG (lack of reliable support), but without a fallback this is a concept and that only. Having said that a fallback would have to ignore some of the functionality and would still be MAHOOOOSIVE.

Comments are closed.