<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>css3悬停按钮变形发光特效 - 更多源码【www.96flw.com】</title>
<style>
body {
margin:0;
padding:0;
height:100vh;
display:flex;
align-items:center;
justify-content:center;
background-color:#262626;
}
.container {
perspective:320px;
}
.btn {
display:block;
margin:40px 0;
width:240px;
height:80px;
border:none;
background-color:#00a8ff;
color:#fff;
font-size:18px;
border-radius:6px;
outline:none;
cursor:pointer;
transition:.3s linear;
}
.btn1:hover {
transform:rotateX(15deg);
box-shadow:0 15px 15px rgba(89,195,255,0.58);
}
.btn2:hover {
transform:rotateX(-15deg);
box-shadow:0 -15px 15px rgba(89,195,255,0.58);
}
.btn3:hover {
transform:rotateY(15deg);
box-shadow:-15px 0 15px rgba(89,195,255,0.58);
}
.btn4:hover {
transform:rotateY(-15deg);
box-shadow:15px 0 15px rgba(89,195,255,0.58);
}
</style>
</head>
<body>
<div class="container">
<button class="btn btn1">Hover Me</button>
<button class="btn btn2">Hover Me</button>
<button class="btn btn3">Hover Me</button>
<button class="btn btn4">Hover Me</button>
</div>
</body>
</html>