Check if half way across a div
While it's easy to set up an onclick event on each link to change the background colour, what about if they scroll horizontally? Ideally, I'd like each section to appear a different colour, so if they scroll, they see half and half. But more likely, if they scroll past the half way mark between two sections, it changed to the bigger half's colour.
How can I achieve this?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)