html - how to blur background image and display text over it on hover -
this question has answer here:
- how apply css 3 blur filter background image 10 answers
the effect trying create when hover on image blur image , display text on it. far able blur image , display text on it, problem text blurred. how prevent text being blurred out? suggestions appreciated
html
<div class="row3"> <div class="six left"> <p class = "imgdescription">description yo</p> </div><!--closing column 6--> <div class="three middle"> </div><!--closing column 3--> <div class="three right"> </div><!--closing column 3--> </div>
css
.row3 .left{ background: url('zombiegame.jpg') no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; -webkit-transition: 1s ease; -moz-webkit-transition: 1s ease; -ms-webkit-transition: 1s ease; -o-webkit-transition: 1s ease; transition: 1s ease; } .imgdescription{ color: white; visibility: hidden; opacity: 0; } .row3 .left:hover{ background: url('zombiegame.jpg') no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; -webkit-filter: blur(1px); } .row3 .left:hover .imgdescription{ visibility: visible; opacity: 1; }
i find way can try, not use css , define blur event while cancel bubble on p element, parent blur event not affect child element.
Comments
Post a Comment