DVD Bouncing Style Preloader

Hi there,

I am trying to create a custom preloader for my website where my logo bounces in the same style that it does on this website https://www.bouncingdvdlogo . com/ (no matter the size of the screen, this works on mobile, the logo will bounce back when it reaches the edge of the screen).
I have tried adding the code from this website https://codepen . io/stezu/pen/cmLrI , but I can’t figure out where to replace the DVD logo with my logo and how to add it to my Wix page, when I add the code from the site above it comes up with various error messages. Any help would be greatly appreciated and if you can get this to work for me I will happily compensate you for your time!

Looking forward to your reply,