html - CSS - Blend edges of image with background image -


so have developing basic website , used images cool light effects change in color hits edge of page, image: enter image description here

so can see light in image reaches edge wanting know, there way blend edges in css or html , not that? i've looked on web , can't find relating problem...

thanks in advance!

there many ways accomplish that, way take care of edges when producing image. clear , simple. if page has black background, make sure have image background of same color. fade "light effect" same color before hitting edge using favorite image manipulation program.

i advice against producing image transparent background - image large , performance smacked.

if want experiment fading post-production, use css gradients make image seem fade off @ edges. or use (vendor specific) css3 toys box-shadow (see box shadow on mdn) produce inset, black shadow.

keep in mind though these tricks, specially on such huge images presented, have cost in browser performance (and user experience) , not supported (specially older browsers). also, many mobile devices not thank effects show.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -