作业:使用所学的各种那个样式制作一个酷炫的按钮
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="陈安">
<meta name=" description" content="第一个页面">
<meta name="keywords" content="调教">
<title>第一个页面</title>
<style>
#loading-btn {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
button {
background: transparent;
border: 0;
border-radius: 0;
text-transform: uppercase;
font-weight: bold;
font-size: 20px;
padding: 15px 50px;
position: relative;
}
button:before {
transition: all 0.8s cubic-bezier(0.7, -0.5, 0.2, 2);
content: '';
width: 1%;
height: 100%;
background: #ff5964;
position: absolute;
top: 0;
left: 0;
}
button span {
mix-blend-mode: darken;
}
button:hover:before {
background: #ff5964;
width: 100%;
}
</style>
</head>
<body>
<div id ="loading-btn">
<button><span>回忆总想哭</span></button>
</div>
</body>
</html>