特效
文章来源地址https://uudwc.com/A/3waWp
源码
index.html
<!DOCTYPE html>
<html>
<head>
<title>CSS Text Animation</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h2 data-text=" ♠ CSS Only ♣ "> ♠ CSS Only ♣ </h2>
</body>
</html>
css
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #111;
}
文章来源:https://uudwc.com/A/3waWp