How to run an animation on Load in the Web

I’m trying to add rive animations to my ember app, I’ve handled stuff like hover in and out but I also need the animation to play on load, but if I use multiple state machines, the automatic hover things stop working. So how do I go about implementing an animation that plays on page load using the same state machine?