demo css:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>彩虹</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box
}.,m
body{
height:100vh;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
background:#6dd6d1
}
.noselect{
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
-webkit-tap-highlight-color:transparent
}
button{
width:150px;
height:50px;
cursor:pointer;
background:#6dd6d1;
border:none;
border-radius:10px;
box-shadow:0px 10px 25px #57aba7,0px -10px 25px #a6fffa,inset 0px -5px 10px #57aba7,inset 0px 5px 10px #a6fffa;
font-family:'Damion',cursive;
color:white;
font-size:20px;
transition:500ms;
}
button:hover{
border:2px solid #6dd6d1;
animation:hueRotation 2s linear infinite;
}
@keyframes hueRotation{
to{
filter:hue-rotate(360deg);
}
}
button:focus{
outline:none;
}
</style>
</head>
<body>
<button class="noselect">Rainbow</button>
</body>
</html>