Skip to main content
100%

Image popup

✓ Published0🌍 Public
DDylanFM
Last edited Aug 18, 2010
Created on Aug 18, 2010

The example demonstrates a hover-triggered image popup using only HTML and CSS, showing a thumbnail of a lamb cupcake photograph that expands to reveal a title and description. The page displays a small image at 160 by 240 pixels, and upon hovering, the container widens to 250 pixels, adds a border and padding, and reveals the hidden heading and paragraph text. The code relies on the CSS `:hover` pseudo-class and the `display` property to toggle visibility, with no JavaScript libraries involved. The image is sourced from Flickr, and the effect is achieved entirely through static styling rules in the embedded `<style>` block.

AI-generated description

Similar vizzes