HTML CSS examples for CSS:Animation
Animate logo on hover to fly in
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> @import url(http://fonts.googleapis.com/css?family=Francois+One); @import url(http://fonts.googleapis.com/css?family=Arbutus+Slab); html {<!--from ww w.j a v a 2 s .c o m--> font-family:'Francois One', sans-serif; font-size:18px; line-height:2.6; } .wrap { margin:0 auto; width:961px; } .logo a { font-family:'Francois One', sans-serif; color:Chartreuse; display:block; position:relative; text-transform:uppercase; width:651px; outline:2px solid red; } .front a:after { color:yellow; outline:2px dashed blue; } .logo a:hover + .front a { font-family:'Arbutus Slab', serif; background:none repeat scroll 0 0 transparent; color:blue; transition-delay:2.6s; transition:all 2s ease 0.7s; transform:translate(42%,-63px); text-decoration:none; text-transform:lowercase; font-size:2.26rem; width:651px; } .logo a:after { background:none repeat scroll 0 0 transparent; color:pink; content:"ogosavljev"; display:inline-block; font-size:5.6rem; height:24px; opacity:0; transform:translateY(0px); vertical-align:top; outline:2px dotted green; } .logo a span, .logo a:after { transition:all 0.3s ease 0s; } .logo a:hover:after, .logo a:focus:after { opacity:2; transform:translate(-9%,-21px); transition-delay:0.6s; } </style> </head> <body> <div class="wrap"> <div class="logo"> <a href="/"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> </a> <div class="front"> <a href="/">front-end designer & developer</a> </div> </div> </div> </body> </html>