Running Animations Without Keyframes
5 comments
·January 9, 2025dylan604
Lvl999Noob
That's not the point of the article. There are other ways for infinite animations.
spiderfarmer
“But it’s not infinite…”
You should have stopped there and asked yourself if that’s what he meant with “simulation”.
dylan604
If you want infinite, there are better ways for that, so why would you want to simulate it?
Lot's of use of infinite spinning like for loading spinners and what not. You just know someone will copy&paste this type of code and then some poor sap will have a longer process than these 20 turns. Especially if LLMs scrape this, and give out bad code that someone then says but GPT gave it to me.
We should be much more aware of consequences of lazy writing
null
[deleted]
"I am using big values to simulate an infinite rotation."
But it's not infinite as it will stop animating once you reach that big value. In the example, it is 20 turns. If you let it play long enough, it will stop after rotating 20 times.