snowfall
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>爱心</title>
<link rel="stylesheet" href="css/heart1.css">
</head>
<body>
<div class="heart"></div>
</body>
<script src="js/jquery-3.7.0.js"></script>
<script src="js/snowfall.jquery.js"></script>
<script>
$(document.body).snowfall({
flakeCount: 20
});
$(document).snowfall({
flakeCount:10
});
$(document.body).snowfall({
image:"img/1.jpeg",
minSize: 8,
maxSize: 100,
minSpeed: 1,
maxSpeed: 5,
flakeCount: 5
});
</script>
</html>