How to use animated icons in an HTML website?

i wiuld like to add some animated icons in my HTML website… but whenver i add them they become static… what should i do to make them animated or is it not possible?

Which icon format do you use? Could you briefly describe the process of how you embed the icons? Thank you!
Also, maybe this documentation would help.