As far as I know the second parameter in tokenat must be number
would you explain what is the second parameter(background) and how it would pick the dragonfly?
oops, I was in a hurry and forgot to change the variable, anyway I have updated it.
Anyway what I was trying to point out, is that you can use a variable in tokenat to set the animation that you want, if they are referenced in numerical order.
tokenat(src, index, separator)
Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.