以下是 鼠标悬停css3发光效果特效代码 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠标悬停css3发光效果特效</title>
<style type="text/css">
body{background: #EF7148;}
img{cursor:pointer;-webkit-animation: scaleout 1.3s infinite ease-in-out;animation: scaleout 1.3s infinite ease-in-out;}
@-webkit-keyframes scaleout {
0% { -webkit-transform: scale(1.0) }
100% {
-webkit-transform: scale(1.1);
opacity: 0;
}
}
@keyframes scaleout {
0% {
transform: scale(1.0);
-webkit-transform: scale(1.0);
} 100% {
transform: scale(1.1);
-webkit-transform: scale(1.1);
opacity: 0;
}
}
</style>
</head>
<body>
<div style="width:185px;height:185px;background:url('html5icon.png') center center no-repeat;margin:100px auto 0 auto;">
<a href="#"><img src="html5icon.png"></a>
</div>
</body>
</html>