CSS Background Image Fade -
hi i'm trying fade background image when part of page hovered on. square div on section of page. possible? background image size of window , square on not full sized.
does have tutorial shows this?
thanks
using css3 transitions should work:
#div{ background: url("yourimage"); } #div:hover{ @include transition-property(background); @include transition-duration(0.5s); background: none; } above example sass. if not using sass, need use more lines of code cross-browser compatibility.
reference: css3 transitions
Comments
Post a Comment