效果图:

完整代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>【前端实例代码】使用 HTML CSS 和 JavaScript 实现具有彩色发光霓虹灯效果的数字时钟|前端开发 网页制作 基础入门教程</title>
<style>
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
html, body {
display: grid;
height: 100%;
place-items: center;
background: #000;
}
.wrapper {
height: 100px;
width: 760px;
position: relative;
background: linear-gradient(135deg, #14ffe9, #ffeb3b, #ff00e0);
border-radius: 10px;
cursor: default;
animation: animate 1.5s linear infinite;
}