好的,这是一个带有动画效果的元旦快乐的 HTML 代码:
<html>
<head>
<style>
.happy-new-year {
animation: newyear 2s linear infinite;
}
@keyframes newyear {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0);
}
}
</style>
</head>
<body>
<d