codice:
<!DOCTYPE HTML>
<html>
<head>
<title>Esempio</title>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Exo+2:800' rel='stylesheet' type='text/css'>
<style type="text/css">
body{
background: #000;
}
@keyframes blink {
from {
color: rgba(200,200,200,.4);
text-shadow: 0 2px 3px rgba(0,0,0,.8), 0 0 0 rgba(255,255,255, .7);
}
to {
color: rgba(255,200,0,.7);
text-shadow: 0 2px 2px rgba(0,0,0,.6), 0 0 2px rgba(255,255,100, 1);
}
}
@-webkit-keyframes blink {
from {
color: rgba(200,200,200,.4);
text-shadow: 0 2px 3px rgba(0,0,0,.8), 0 0 0 rgba(255,255,255, .7);
}
to {
color: rgba(255,200,0,.7);
text-shadow: 0 2px 2px rgba(0,0,0,.6), 0 0 2px rgba(255,255,100, 1);
}
}
.b1{background: url("image1.png") center 0;}
.b2{background: url("image2.png") center -263px;}
.b3{background: url("image3.png") center -263px;}
.blink {
color: #fc0;
margin: 20px auto;
background-repeat: no-repeat;
width: 80px;
height: 80px;
font-family: 'Exo 2', sans-serif;
font-size: 22px;
text-align: center;
padding-top: 23px;
animation: blink 2s infinite alternate;
-webkit-animation: blink 2s infinite alternate;
}
/* altri gingilli vari */
@-webkit-keyframes hover, @keyframes hover {
from {
color: rgba(255,255,255,.6);
text-shadow: 0 0 2px #000;
}
to {
color: rgba(255,255,255,1);
text-shadow: 0 0 2px #000;
}
}
@-webkit-keyframes hover {
from {
color: rgba(255,255,255,.6);
text-shadow: 0 0 2px #000;
}
to {
color: rgba(255,255,255,1);
text-shadow: 0 0 2px #000;
}
}
.blink:hover {
color: #fff;
cursor: pointer;
animation: .2s hover 1 normal forwards;
-webkit-animation: .2s hover 1 normal forwards;
}
</style>
</head>
<body>
<div class="blink b1">!</div>
<div class="blink b2">!</div>
<div class="blink b2">A</div>
<div class="blink b3">˖◊˖</div>
<div class="blink b1">ʚĭɞ</div>
</body>
</html>