效果
源码
<!DOCTYPE html>
<html>
<head>
<title>Energy Ball Animation Effects</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="energy">
<span style="--clr:#fbad04;--i:18px;--d:2.5s;"></span>
<span style="--clr:#03a1d9;--i:13px;--d:5s;"></span>
<span style="--clr:#f7036d;--i:15px;--d:7.5s;"></span>
<span style="--clr:#93ff16;--i:20px;--d:10s;"></span>
</div>
</body>
</html>
css
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body
{
display: flex;
justify-content: center;
align-items: center;