Custom portfolio section, should I use custom block or pattern

I'm building a sort of portfolio site with wordpress. I am doing it to learn the basics of block theme development so I am not using any heavy plugins. I want to know the best approach to take. I want my home page to have a customized gallery with some animations using GSAP playing when each image loads. I can do this easily with html and js, I would like to know a good approach to take using WP. Should I build out a custom pattern and hardcode everything in there? or should i try to build out a customized block to make it dynamic? what are the recommended ways to get some custom functionality into a wordpress page? I'm looking for general answers and opinions on how to get something like this done. My goal is to develop custom block themes so any advice should be geared toward that. Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer