I solved the problem and am posting it here in case anyone needs help with this in the future.
To put it simply, if you use the Canvas mode of Screen Space Camera, the screen coordinates need to be recalculated to have the correct effect.
To make it easier for everyone to understand, here is how I made it without using Custom Actions. I will show it to you through screenshots.