视频来源👉👉👉: B站地址
<!DOCTYPE html>
<html lang="en" dir="ltr" style="width: 100%; height: 100%;">
<head>
<meta charset="utf-8">
<title></title>
<style>
body {
margin: 0;
padding: 0;
font-family: "montserrat";
background-image: linear-gradient(125deg, #2c3e50, #27ae60, #2980b9, #e74c3c, #8e44ad);
background-size: 400%;
animation: bganimation 15s infinite;
}
.text {
color: white;
text-align: center;
text-transform: uppercase;
margin: 300px 0;
font-size: 22px;
}
@keyframes bganimation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
</style>
</head>
<body>
<div class="text">
Hello World
</div>
</body>
</html>
关注公众号:大明贵妇,无套路获取前端学习资料,期待各位客官来临