Created a directive to change css color class on sidebar accurately reflect the content based on scroll offset of the page