Moving backgrounds with mouse position

Chris Coyier / filed under HTML & CSS

Let’s say you wanted to move the background-position on an element as you mouse over it to give the design a little pizzazz. You have an element like this:

Join thousands of product people and get the latest articles and resources from my curation every day or week.