Home › Forums › CSS › Fading CSS sprites using Compass/SCSS › Re: Fading CSS sprites using Compass/SCSS
November 12, 2012 at 12:48 pm
#114038
Member
Here is the link from the Compass website explaining about magic selectors: http://compass-style.org/help/tutorials/spriting/magic-selectors/
I am using the latest version of Compass (v 0.12.2)
The code I am using is:
$icons-spacing:20px;
@import “icons/*.png”;
@include all-icons-sprites;
Basically, adding an image with “_hover” at the end automatically adds the :hover state to the selector.