CSS3 Photo-Info version 2
28th February 2014
For IE10+, Firefox, Opera (Developer 19.0.1326.0), Chrome
iOS, Android OS, Tablets and smartphones
copyright © stu nicholls - CSS play
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.
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.