Hi,
I made the above changes and it’s working fine apart from a little bug.
On scrolling down, the colour of the header remains transparent and becomes white after sometime.
Ideally, on scrolling down, the colour should change to white instantaneously.
Looking forward for your response.