html - Effect image on hover with css -


i trying animated image on hover. result want have similar 1 : see here ( scroll see image "our team" )

so, want have background display information ( name, links) in theme can't achieve it.

here code :

<div class="row">   <div class="col-md-6">             <div class="picture">       <div class="photoapropos center-block">         <div class="info">           <img class="img-responsive img-circle" alt="name" src="<?= $url; ?>"/>           <p>name</p>         </div>       </div>         </div>     </div> </div> 

and css :

.picture {   display: block;   opacity: 1; } .photoapropos{   display: block;   position: relative;   width: 425px;   height: 425px;   -webkit-transition: 0.4s ease-in-out;   -moz-transition: 0.4s ease-in-out;   -o-transition: 0.4s ease-in-out;   -ms-transition: 0.4s ease-in-out;   transition: 0.4s ease-in-out; } .photoapropos:hover .info {   -webkit-transform: scale(1);   -moz-transform: scale(1);   -o-transform: scale(1);   -ms-transform: scale(1);   transform: scale(1);   opacity: 1; } .photoapropos .info {   position: absolute;   background: #ff8c00;   width: inherit;   height: inherit;   border-radius: 50%;   opacity: 0;   -webkit-transition: 0.4s ease-in-out;   -moz-transition: 0.4s ease-in-out;   -o-transition: 0.4s ease-in-out;   -ms-transition: 0.4s ease-in-out;   transition: 0.4s ease-in-out;   -webkit-transform: scale(0);   -moz-transform: scale(0);   -o-transform: scale(0);   -ms-transform: scale(0);   transform: scale(0);   -webkit-backface-visibility: hidden; } 

can me because feature seemed easy realise don't see missing ?

thanks.

    .picture {            display: block;          opacity: 1;          background:url('http://themes.startbootstrap.com/spectrum-v1.2.0/assets/img/demo-portraits/portrait-4.jpg');          border-radius: 50%;          height: 425px;          width: 425px;      }        .photoapropos{          display: block;          position: relative;          width: 425px;          height: 425px;          -webkit-transition: 0.4s ease-in-out;          -moz-transition: 0.4s ease-in-out;          -o-transition: 0.4s ease-in-out;          -ms-transition: 0.4s ease-in-out;          transition: 0.4s ease-in-out;        }        .photoapropos:hover .info{              -webkit-transform: scale(1);          -moz-transform: scale(1);          -o-transform: scale(1);          -ms-transform: scale(1);          transform: scale(1);          opacity: 1;      }        .photoapropos .info {          position: absolute;          /*background: #ff8c00;*/          width: inherit;          height: inherit;          border-radius: 50%;          opacity: 0;          -webkit-transition: 0.4s ease-in-out;          -moz-transition: 0.4s ease-in-out;          -o-transition: 0.4s ease-in-out;          -ms-transition: 0.4s ease-in-out;          transition: 0.4s ease-in-out;          -webkit-transform: scale(0);          -moz-transform: scale(0);          -o-transform: scale(0);          -ms-transform: scale(0);          transform: scale(0);          -webkit-backface-visibility: hidden;          text-align: center;            background: rgba(82, 219, 235, 0.8);          color: #fff;      }        .photoapropos .info p {          margin-top: 50px;      }
<div class="row">      <div class="col-md-6">          <a class="picture" href="<?= $url; ?>">              <div class="photoapropos center-block">                  <div class="info">                      <p>name</p>                  </div>              </div>          </a>      </div>  </div>


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -