I have following code
html
<div class="checker">
</div>
<div class="red boxes">
</div>
<div class="green boxes">
</div>
<div class="blue boxes">
</div>
css
.checker {
width: 100px;
height: 100px;
border: 1px solid black;
position: fixed;
top: 0;
}
.boxes {
margin-top: 300px;
width: 600px;
height: 600px;
}
.red {
background: red;
}
.green {
background: green;
}
.blue {
background: blue;
}
How do i change the background color of class ".checker" to the background color of ".boxes" when them touches the bottom border of ".checker" with scrolling, using jquery
eg: when the .class red reach to the bottom border of the class=".red .checker" the background color of the class ".checker" should change to red. etc. I dont understand how to do this. please help me.