.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; } .snowflake { position: absolute; color: lightblue; opacity: 0.7; animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite; } .snowflake::before { display: block; font-size: 20px; line-height: 1; } .snow-container .snowflake:nth-child(1)::before { content: '❆'; font-size: 24px; } .snow-container .snowflake:nth-child(2)::before { content: '❅'; font-size: 28px; } .snow-container .snowflake:nth-child(3)::before { content: '❆'; font-size: 20px; } .snow-container .snowflake:nth-child(4)::before { content: '❅'; font-size: 32px; } .snow-container .snowflake:nth-child(5)::before { content: '❆'; font-size: 24px; } .snow-container .snowflake:nth-child(6)::before { content: '❅'; font-size: 28px; } .snow-container .snowflake:nth-child(7)::before { content: '❆'; font-size: 20px; } .snow-container .snowflake:nth-child(8)::before { content: '❅'; font-size: 32px; } .snow-container .snowflake:nth-child(9)::before { content: '❆'; font-size: 24px; } .snow-container .snowflake:nth-child(10)::before { content: '❅'; font-size: 28px; } .snow-container .snowflake:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; } .snow-container .snowflake:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; } .snow-container .snowflake:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 4s; } .snow-container .snowflake:nth-child(4) { left: 35%; animation-duration: 18s; animation-delay: 1s; } .snow-container .snowflake:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; } .snow-container .snowflake:nth-child(6) { left: 55%; animation-duration: 16s; animation-delay: 5s; } .snow-container .snowflake:nth-child(7) { left: 65%; animation-duration: 11s; animation-delay: 0.5s; } .snow-container .snowflake:nth-child(8) { left: 75%; animation-duration: 19s; animation-delay: 2.5s; } .snow-container .snowflake:nth-child(9) { left: 85%; animation-duration: 14s; animation-delay: 4.5s; } .snow-container .snowflake:nth-child(10) { left: 95%; animation-duration: 17s; animation-delay: 1.5s; } @keyframes fall { 0% { transform: translateY(-100vh); opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.7; } 100% { transform: translateY(100vh); opacity: 0; } }