(CSS) Possible to easily animate changes to 'background-size' on hover/focus?
I'm using the following code to enlarge a background image (without exceeding the limits of the containing object).
a.item {
display: inline-block;
width: 300px;
height: 200px;
background-size: cover;
-webkit-transition: all .5s;
transition: all .5s;
}
a.item:hover {
-webkit-transition: all .5s;
transition: all .5s;
background-size: 110%;
}
I opted to do it this way because the transform:scale method (which auto-animates) apparently cannot be applied solely to a background image; as it will affect the whole container.
The downside of the background-size method is that it just jumps from one state to another in a single step (despite the addition of 'transition: all.5s' which I'd hoped would animate the tween, but seemingly has no effect whatsoever on latest FF/IE).
So the real question here is... is it even POSSIBLE to animate a change in 'background-size' or am I wasting my time trying?
