There are probably a number of ways to do this but this is a way that I found to work.
[this is from my reference and anyone that finds it useful]
See examples here: paroller.js
Load the script in the page header
Ensure you have enabled the ability to expose IDs on elements
Add the classify plugin: 🔥 Classify: A tiny plugin that brings CSS power to Bubble (to add CSS class names)
Now on the image or whatever you want to add some movement to create a class like:
and add it to the element:
you can find more parameters in the demos: paroller.js
There we have it enjoy.