Is it possible to make inward and outward scroll zoom?

is it possible to make inward and outward scroll zoom? like in scale of the universe
check this website for reference:
https://htwins.net/scale2/