效果 (源码网盘地址在最后)
源码
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>使用SVG实现一个2020的动画</title>
<link href="./style.css" rel="stylesheet" />
</head>
<body>
<div class="digits">
<svg
class="digit"
viewBox="-20 -20 140 240"
width="100"
height="200"
stroke-width="20"
fill="none"
style=&#