So I’ve figured out how to have my header’s background change from transparent to a default colour using 2 containers, and conditions that toggle which is visible based on page scroll location.
However, the transition between these 2 settings ( transparent and default colour) is instant, and doesn’t look very good. For example, this website fades the change perfectly: https://bitetoothpastebits.com/
Any idea how I could implement such a fade myself?