News for hackers. Stuff that matters.
Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by nitwit005 on Wednesday July 22, 2020 @07:07PM (#23922541)
Can't you simplify this by making each digit a separate animation, with the ones digit running at full speed, the tens digit running at 1/10th speed, and the hundreds digit running at 1/100th speed? Then you'd only need ten keyframe values.
Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by James0x57 on Wednesday July 22, 2020 @07:22PM (#23922643)
Yes, but I didn't trust them to stay synchronized and it wasn't too difficult to generate the code for 1000 keyframes so I just did that :)