Ok, I'm building a horizontal scroll website for the photographer. We have some really good frames, and I'm looking to create a neat effect when it selects a specific photo that is to the left of the screen, or, more specifically, sets the transparency to 40% on all other photos.
So, I know that I can add anchors to each photo, so I can use this to have the next click, but what if the user manually uses the scroll bar, is there a way to detect the position relative to each Photo. It is much more important to make this even more inconvenient, although each photograph has the same height that they may have different widths.
I think if there was a way to get the position of each anchor tag, then I could determine the current position against it and use some mathematical calculations to figure out which one is in focus.
So can someone tell me if this is possible, and if so, how? Any other ideas to make it work are of course welcome.

source
share