Hover to show the full content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Hover to show the full content

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.cardCityInfo {<!--from  www. j  a  v  a2  s . c  om-->
   font-size:2.2rem;
   font-family:'Nunito', sans-serif;
   color:Chartreuse;
   text-align:center;
   z-index:6;
   margin-top:100px;
   opacity:0;
}

.card:hover {
   box-shadow:inset 0 0 0 1001px yellow;
   transition:.6s;
}

.card:hover .cardCityInfo {
   opacity:0.10 !important;
   transition:.6s;
   transform:translateY(-11px);
}

.card:hover .card_text {
   color:blue;
   transition:.6s;
}

.card {
   position:relative;
   width:316px;
   height:301px;
   background-size:contain;
   background-repeat:no-repeat;
   background-color:pink;
   border-radius:6px;
   margin:21px 11px;
   float:left;
}
</style> 
 </head> 
 <body> 
  <div class="cards_container"> 
   <div class="card" id="card_oslo"> 
    <p class="cardCityInfo">Lorem ipsum dolor sit <br>Lorem ipsum dolor s<br>Lorem ipsum dolor sit <br>Lorem ipsum dolor </p> 
    <h4 class="card_text">Lore</h4> 
    <a href="#"> <h5 id="btn_card">Lorem </h5> </a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials