refactor scroll effect function
change black colour