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:
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
Post a Comment