Seems like parallax effects are everywhere! I wrote this script to add some flavor to an upcoming project. This script allows you to add a variable amount of parallax based off the mouse position in relation to the viewport for canvas items. I wanted to make the amount of parallax variable so you can stack several layers to get a cool effect!
You can download the entire project here:
https://mattf.blog/wp-content/uploads/2025/06/matt-parallax-effect.zip
Simply import this project into Godot 4.4x or later, and it should be ready to run!

I feel that in the future it might be cool to create a version of this script that utilizes a global z-index for all the affected layers.



