.snowflake { z-index: -1; --size: 1vw; width: var(--size); height: var(--size); background: rgba(255, 255, 255, 0.5); border-radius: 50%; position: fixed; top: -5vh; } @keyframes snowfall { 0% { transform: translate3d(var(--left-ini), 0, 0); } 100% { transform: translate3d(var(--left-end), 110vh, 0); } } .snowflake:nth-child(1) { --size: 0.2vw; --left-ini: 9vw; --left-end: 10vw; left: 73vw; animation: snowfall 13s linear infinite; animation-delay: -9s; } .snowflake:nth-child(2) { --size: 0.6vw; --left-ini: 1vw; --left-end: -3vw; left: 26vw; animation: snowfall 6s linear infinite; animation-delay: -2s; } .snowflake:nth-child(3) { --size: 1vw; --left-ini: -1vw; --left-end: 2vw; left: 69vw; animation: snowfall 11s linear infinite; animation-delay: -10s; } .snowflake:nth-child(4) { --size: 0.8vw; --left-ini: -7vw; --left-end: -7vw; left: 66vw; animation: snowfall 6s linear infinite; animation-delay: -4s; } .snowflake:nth-child(5) { --size: 0.6vw; --left-ini: -5vw; --left-end: 9vw; left: 52vw; animation: snowfall 14s linear infinite; animation-delay: -7s; } .snowflake:nth-child(6) { --size: 0.2vw; --left-ini: 10vw; --left-end: -1vw; left: 46vw; animation: snowfall 6s linear infinite; animation-delay: -4s; } .snowflake:nth-child(7) { --size: 0.2vw; --left-ini: -6vw; --left-end: -1vw; left: 53vw; animation: snowfall 12s linear infinite; animation-delay: -2s; } .snowflake:nth-child(8) { --size: 0.6vw; --left-ini: -9vw; --left-end: -8vw; left: 62vw; animation: snowfall 7s linear infinite; animation-delay: -9s; } .snowflake:nth-child(9) { --size: 0.8vw; --left-ini: 9vw; --left-end: -3vw; left: 8vw; animation: snowfall 12s linear infinite; animation-delay: -4s; } .snowflake:nth-child(10) { --size: 1vw; --left-ini: -3vw; --left-end: -1vw; left: 18vw; animation: snowfall 7s linear infinite; animation-delay: -2s; } .snowflake:nth-child(11) { --size: 0.8vw; --left-ini: 2vw; --left-end: 1vw; left: 2vw; animation: snowfall 9s linear infinite; animation-delay: -2s; } .snowflake:nth-child(12) { --size: 0.8vw; --left-ini: -2vw; --left-end: -6vw; left: 5vw; animation: snowfall 10s linear infinite; animation-delay: -3s; } .snowflake:nth-child(13) { --size: 0.6vw; --left-ini: -4vw; --left-end: 5vw; left: 18vw; animation: snowfall 9s linear infinite; animation-delay: -6s; } .snowflake:nth-child(14) { --size: 1vw; --left-ini: -5vw; --left-end: -6vw; left: 31vw; animation: snowfall 15s linear infinite; animation-delay: -6s; } .snowflake:nth-child(15) { --size: 1vw; --left-ini: -9vw; --left-end: -5vw; left: 98vw; animation: snowfall 11s linear infinite; animation-delay: -6s; } .snowflake:nth-child(16) { --size: 0.4vw; --left-ini: 9vw; --left-end: -9vw; left: 42vw; animation: snowfall 7s linear infinite; animation-delay: -3s; } .snowflake:nth-child(17) { --size: 0.8vw; --left-ini: 3vw; --left-end: -2vw; left: 25vw; animation: snowfall 10s linear infinite; animation-delay: -6s; } .snowflake:nth-child(18) { --size: 1vw; --left-ini: -3vw; --left-end: -5vw; left: 11vw; animation: snowfall 10s linear infinite; animation-delay: -9s; } .snowflake:nth-child(19) { --size: 0.2vw; --left-ini: 2vw; --left-end: 3vw; left: 66vw; animation: snowfall 13s linear infinite; animation-delay: -7s; } .snowflake:nth-child(20) { --size: 0.2vw; --left-ini: 7vw; --left-end: -2vw; left: 33vw; animation: snowfall 8s linear infinite; animation-delay: -10s; } .snowflake:nth-child(21) { --size: 0.2vw; --left-ini: -2vw; --left-end: -5vw; left: 76vw; animation: snowfall 6s linear infinite; animation-delay: -8s; } .snowflake:nth-child(22) { --size: 0.8vw; --left-ini: -2vw; --left-end: -3vw; left: 57vw; animation: snowfall 13s linear infinite; animation-delay: -2s; } .snowflake:nth-child(23) { --size: 0.8vw; --left-ini: -2vw; --left-end: 0vw; left: 73vw; animation: snowfall 11s linear infinite; animation-delay: -8s; } .snowflake:nth-child(24) { --size: 0.8vw; --left-ini: -4vw; --left-end: -6vw; left: 56vw; animation: snowfall 13s linear infinite; animation-delay: -6s; } .snowflake:nth-child(25) { --size: 0.8vw; --left-ini: 0vw; --left-end: -7vw; left: 38vw; animation: snowfall 14s linear infinite; animation-delay: -3s; } .snowflake:nth-child(26) { --size: 0.4vw; --left-ini: 8vw; --left-end: 9vw; left: 63vw; animation: snowfall 6s linear infinite; animation-delay: -10s; } .snowflake:nth-child(27) { --size: 0.8vw; --left-ini: -1vw; --left-end: -5vw; left: 22vw; animation: snowfall 13s linear infinite; animation-delay: -7s; } .snowflake:nth-child(28) { --size: 0.2vw; --left-ini: -6vw; --left-end: 1vw; left: 49vw; animation: snowfall 6s linear infinite; animation-delay: -2s; } .snowflake:nth-child(29) { --size: 0.8vw; --left-ini: -9vw; --left-end: 6vw; left: 25vw; animation: snowfall 9s linear infinite; animation-delay: -10s; } .snowflake:nth-child(30) { --size: 1vw; --left-ini: 8vw; --left-end: 1vw; left: 69vw; animation: snowfall 11s linear infinite; animation-delay: -6s; } .snowflake:nth-child(31) { --size: 0.2vw; --left-ini: -5vw; --left-end: -7vw; left: 48vw; animation: snowfall 10s linear infinite; animation-delay: -2s; } .snowflake:nth-child(32) { --size: 0.8vw; --left-ini: 5vw; --left-end: 10vw; left: 84vw; animation: snowfall 8s linear infinite; animation-delay: -5s; } .snowflake:nth-child(33) { --size: 1vw; --left-ini: 6vw; --left-end: -1vw; left: 65vw; animation: snowfall 7s linear infinite; animation-delay: -5s; } .snowflake:nth-child(34) { --size: 1vw; --left-ini: -1vw; --left-end: -8vw; left: 61vw; animation: snowfall 12s linear infinite; animation-delay: -1s; } .snowflake:nth-child(35) { --size: 0.4vw; --left-ini: 9vw; --left-end: -6vw; left: 79vw; animation: snowfall 12s linear infinite; animation-delay: -2s; } .snowflake:nth-child(36) { --size: 0.6vw; --left-ini: 3vw; --left-end: -4vw; left: 32vw; animation: snowfall 13s linear infinite; animation-delay: -3s; } .snowflake:nth-child(37) { --size: 0.8vw; --left-ini: 3vw; --left-end: -1vw; left: 43vw; animation: snowfall 6s linear infinite; animation-delay: -4s; } .snowflake:nth-child(38) { --size: 0.6vw; --left-ini: 6vw; --left-end: -2vw; left: 50vw; animation: snowfall 15s linear infinite; animation-delay: -10s; } .snowflake:nth-child(39) { --size: 0.4vw; --left-ini: 5vw; --left-end: 8vw; left: 34vw; animation: snowfall 6s linear infinite; animation-delay: -9s; } .snowflake:nth-child(40) { --size: 0.8vw; --left-ini: 6vw; --left-end: -3vw; left: 2vw; animation: snowfall 8s linear infinite; animation-delay: -8s; } .snowflake:nth-child(41) { --size: 0.2vw; --left-ini: 4vw; --left-end: 0vw; left: 89vw; animation: snowfall 15s linear infinite; animation-delay: -1s; } .snowflake:nth-child(42) { --size: 0.6vw; --left-ini: 0vw; --left-end: 6vw; left: 28vw; animation: snowfall 8s linear infinite; animation-delay: -8s; } .snowflake:nth-child(43) { --size: 0.8vw; --left-ini: -3vw; --left-end: 5vw; left: 22vw; animation: snowfall 12s linear infinite; animation-delay: -8s; } .snowflake:nth-child(44) { --size: 0.2vw; --left-ini: -7vw; --left-end: 8vw; left: 11vw; animation: snowfall 10s linear infinite; animation-delay: -1s; } .snowflake:nth-child(45) { --size: 0.6vw; --left-ini: 5vw; --left-end: 9vw; left: 53vw; animation: snowfall 12s linear infinite; animation-delay: -6s; } .snowflake:nth-child(46) { --size: 0.6vw; --left-ini: 9vw; --left-end: 8vw; left: 75vw; animation: snowfall 10s linear infinite; animation-delay: -10s; } .snowflake:nth-child(47) { --size: 0.2vw; --left-ini: -2vw; --left-end: -1vw; left: 29vw; animation: snowfall 10s linear infinite; animation-delay: -2s; } .snowflake:nth-child(48) { --size: 0.6vw; --left-ini: -3vw; --left-end: -4vw; left: 72vw; animation: snowfall 14s linear infinite; animation-delay: -7s; } .snowflake:nth-child(49) { --size: 0.2vw; --left-ini: 1vw; --left-end: -5vw; left: 68vw; animation: snowfall 8s linear infinite; animation-delay: -7s; } .snowflake:nth-child(50) { --size: 0.6vw; --left-ini: -2vw; --left-end: -1vw; left: 43vw; animation: snowfall 15s linear infinite; animation-delay: -5s; } /* added small blur every 6 snowflakes*/ .snowflake:nth-child(6n) { filter: blur(1px); }