hey, seems both spins share the same counter so they conflict. using a unique degree variable for each box shud let them rotate indpendently. hope that helps!
The problem arises from sharing a single degree counter, making both elements reference the same value during their animation loop. In my experience, transferring the degree variable inside the spin function or defining a dedicated degree for each element effectively resolves the issue. This ensures that each element maintains its own rotation state independent of the other. This modification not only simplifies debugging but also allows for more flexible animation behaviors.