css3 - Transition on background-size doesn't work -
i'm trying put transition on background-image on hover. code far:
html
<div class="item-one"></div>
css
.item-one { height: 345px; width: 256px; background: url('http://placehold.it/256x345') scroll no-repeat center center; background-size: cover; -webkit-transition: background-size 1500ms linear; -moz-transition: background-size 1500 linear; -o-transition: background-size 1500 linear -ms-transition: background-size 1500ms linear; transition: background-size 1500ms linear; } .item-one:hover { background-size: 150%; }
but doesn't work me, tested in different browsers. other transitions background-color work expected. there restriction transitions on property?
i think problem background-size: cover
, when change
background-size: 100%;
it work
there other question background-size: cover
alternative, can is there alternative background-size:cover?
or different solution problems this: css3 crossfade bg image when cover used
Comments
Post a Comment