CSS – Blurring image with un-blurred text -


i have div elements 200px tall , 200px wide, , filling each div element image of person.

upon hovering on image, want image blurred, simultaneously want text appear on image (unblurred) gives description of are. know how this?

so far, getting: enter image description here

here css code:

.mem1 {   height: 200px;   width: 200px;   margin: 0px 31px;   display: inline-block;   border-radius: 10px;   border: solid;   border-width: thin;   border-color: #d6d6d6;   background-image: url(members/giles.png); }  .mem1 p {   text-align: center;   position: absolute;   margin: 70px 30px;   visibility: hidden; }  .mem1:hover {   -webkit-filter: blur(2px); }  .mem1:hover p {   text-align: center;   position: absolute;   margin: 70px 30px;   color: #ffffff;   text-shadow: 1px 1px #000000;   -webkit-filter: blur(0px);   visibility: visible; } 

it sounds text child of element blurring. can't that. need this:

<div class="container">     <div class="blurredphoto"></div>     <div class="text">your text</div> </div>  .container {     width: 200px;     height: 200px;     position: relative; }   .blurredphoto {     position: absolute;     width: 200px;     height: 200px; }  .text {     position: absolute;     width: 200px;     height: 200px; } 

then apply blurring logic .blurredphoto object.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -