CSS3 Photo-Info version 2

28th February 2014

For IE10+, Firefox, Opera (Developer 19.0.1326.0), Chrome
iOS, Android OS, Tablets and smartphones


Red-eyed Frog
Emperor Penguin
Pelicans


copyright © stu nicholls - CSS play

Information

It has been a few years since I produced the previous demo to slide information over a photograph, so I thought that it was about time to bring this up to date using the latest CSS techniques.

So this version uses simple code with an image link and the text is held in the link data attributes. The are placed into two panels using :before and :after pseudo elements and animated into position when the image is hovered.

So hover/tap any of the images abve to see the information heading and text slide into view.

Move the mouse off the image, or tap outside the image on touch enabled devices, to see the animation reverse.

1st march 2014 - small change in the code to give support for touch sceen devices. IE10 and IE11 a little buggy due to method of implementing :hover.


Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.



Please Support CSS play

Please note that if your donation is for a demo/menu then you will need to email me with the url of the demo/menu after making the donation

For more CSS demonstrations I recommend that you visit the Dynamic Drive CSS Library.


Free, practical CSS menus, layouts, and examples

Follow CSS play


Facebook   Twitter   Facebook Fan Page