From our sponsor: Ready to show your plugin skills? Enter the Penpot Plugins Contest (Nov 15-Dec 15) to win cash prizes!
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.
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).
The rotation on the last two devices happens by adding another class which will rotate the device 90 degrees.
Tiny break: 📬 Want to stay up to date with frontend and trends in web design? Subscribe and get our Collective newsletter twice a tweek.
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.
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!
Oh man, I swear I had a similar demo in mind 😀 I’m too slow, it’s awesome you did it, Manoela, excellent work I love it! 🙂
Great.
Hi, I’ve always been fascinated,about your designs and concepts. And this is no exception.
Yeah ! Thanks MaryLou #Goodwork … Very helpfull to present responsive webdesign
its really nice… do u have any tutorials like soundcloud com or andy hintss….. plz…..
I love it! ingenious border CSS on the iMac foot!
Manoela, spectacular as always!
Great demo 😉
I’m biggest fan of this blog. Again i’ve download one more tutorial.Thank you.
oh god :’) that’s beautifull
Awesome ))
Great!!
I did something very similar 7 months ago
Great ! Cong
Very cool
Very slick!
I’d recommended saving those screenshot jpgs as 8bit pngs.. they’ll likely turn out much smaller AND look much better
Mary Lou, you are …………. !!!!!! {I dont know what to say 🙁 }
Another great effect. Thanks a lot for such a nice tutorials. 🙂
Hello Mary,
A Small Question, Can i use URL’s for images? I want show responsive designs with URL its possible ?
Your articles never cease to amaze. Thanks very much
Excellent work (as always). Loving the stuff you are all doing here at Codrops. Just waiting for the right opportunity to use this is a project.
insanely brilliant !!!
one of the best implementations I’ve seen so far !
Thanks a lot for such a beautiful tut. Amazing work Keep it up.
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.
This is really awesome.