Suppose I have a structure like this:
<br><br><br>...Numerous BRs...<br><br><br>
<div id="thetarget"></div><div id="show"></div>
<br><br><br>...Numerous BRs...<br><br><br>
I aim to display the #show
when the user scrolls to the #thetarget
and potentially manipulate the CSS styles of the #thetarget
when the user scrolls to it, all without requiring any "click interaction" from the user as typically done with
<a href="#thetarget">the target</a>
Is it feasible to achieve this solely using CSS code?
If not, how would I implement this using JavaScript (non-jQuery) without significantly impacting performance (=minimal effect)?
Appreciate your guidance