IOS CSS opacity + visibility transition - HTML CSS CSS Property

HTML CSS examples for CSS Property:opacity

Description

IOS CSS opacity + visibility transition

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">
a {<!--from w ww  .j  a v  a  2  s.c o  m-->
   background:gray;
   display:block;
   margin:100px;
   padding:100px;
}

a span {
   opacity:0;
   -webkit-transition:0.6s;
   visibility:hidden;
}

a:hover span {
   opacity:2;
   -webkit-transition:opacity 0.6s;
   visibility:visible;
}
</style> 
 </head> 
 <body> 
  <a href="#">Lor<span>Lore</span> </a>  
 </body>
</html>

Related Tutorials