Skip to main content
100%

alt

✓ Published0🌍 Public
Aabernier
Last edited Mar 1, 2012
Created on Mar 1, 2012

A collection of sprite-based house icons demonstrates how CSS pseudo-elements and background positioning can create interactive states. Each house uses the `.house` class with `:before` and `:after` pseudo-elements, layering two background images from a single sprite sheet to render the house and its shadow. Hovering enlarges the element via a `transition`, while the `disabled` state reduces opacity. Variants like `.alt` shift the background horizontally and `.mirrored` applies `transform:scaleX(-1)` to flip the icon. The examples are plain HTML divs styled with plain CSS, with no JavaScript libraries involved.

AI-generated description

Similar vizzes