I want to reproduce an effect used here http://www.ixistore.be/. I mean changing the background color by scrolling down the page. I know how to do it on page with static IDs and specific number of elements using for example waypoints, but u have to define IDs in JS -> . I would love to use it with wordpress –> that means dynamically. I assume that each post would have some attribute “data-bgcolor” and that would be used by javascript. But I have kinda no idea how to acomplish that.
Thanks for any help.
Leave a Reply
You must be logged in to post a comment.
this is not my logic, these are the scripts they are using for changing body background and this is taken from the link you provided. This may help you.