There are some web page elements. Let's call them "sprites". There are also two kinds of animations (two pieces of code). For each mentioned above web page element, I use one kind of animations. Can I use the phrase: "set an animation for each sprite"? Is the animation an abstract noun?
I would use:
Then you need to set an animation type for each sprite.
type referring to code. Even if you leave out "type", it is still implied and makes "animation" a regular noun.