Can we include Animations in Figma file?

Hi, there!
I want to submit a Figma template, I want to know if I can include animations like hover or section loading. If I can what will be the file structure please guide me. Thank you!

Like regular static images, you can apply animated GIFs to layers as fills. This means you to apply them to any vector shape, including text layers. There are a few ways to add GIFs to your designs: Drag and drop GIFs onto the canvas.

Thank you for your precious time!
Gifs have quality limitations, so instead of gifs, I am more interested in knowing if I can give figma’s own animations which we can make through smart animate features and components. If I can submit them it will be very helpful in showcasing my design. Is there a way to do it?