An easy way to add scrolling animations to a project using the sal.js library.
Install the sal.js library: npm install --save sal.js
Open main.js and import the Sal.js library:
import sal from 'sal.js';
sal();
Enqueue the styles:
wp_register_style('sal', get_template_directory_uri() . '/node_modules/sal.js/dist/sal.css', [], 1, 'all');
wp_enqueue_style('sal');
You can place this in the scripts() function at the top of the functions.php file
Start adding animations to your elements. See their documentation to learn how to do so.