html - Let an Image glow on a black Background on an Image -
i've got following html code:
.header-container { position: relative; } .header-container img { -webkit-filter: grayscale(100%) contrast(300%); filter: grayscale(100%) contrast(300%); } .header-container .after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: white; background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/itunes_12.2_logo.png/600px-itunes_12.2_logo.png"); background-repeat: no-repeat; background-position: center; background-size: contain; } .header-container:hover .after { -webkit-filter: drop-shadow(0px 0px 10px #ff5f00); filter: drop-shadow(0px 0px 10px #ff5f00); } <div class="header-container"> <span class="image fit"><img src="http://images.wookmark.com/167422_battlefield-dinosaur-facebook-timeline-cover-facebook-banner.jpg" alt="" /></span> <div class="after">this crazy</div> </div> i have glow around logo image (works). unfortunately, cannot cover header image black background this:
background: rgba(0, 0, 0, 0.8); when this, whole header area gets black , not logo image. how can let logo image glow, when there's black background on top of header image? hope, can understand problem.
if want image glow either have add glow in photoshop. add logo text , add text-shadow:1px 1px 10px rgba(0,0,0,0.3); wished glow color.
Comments
Post a Comment