Is it possible to apply a CSS(3) effect when the browser has scrolled? I have a sticky header / footer and wanted to apply a drop shadow only if the window is not at the top. I know this can be done with JS but wanted to see if it was possible through CSS alone. Thanks.
Share
Added in JS to add a class to the header on scroll. Couldn’t find a way to do it strictly with CSS.