horizontal scroll, detecting scroll position relative to anchors

后端 未结 6 901
予麋鹿
予麋鹿 2021-01-12 19:50

Ok, I\'m building a horizontal scroll website for a photographer. We have some really nice wireframes done and I\'m looking to create a neat effect where it highlights the

6条回答
  •  孤城傲影
    2021-01-12 20:10

    I fiddled a bit around with a script for this, and came up with a script where the items opacity is dertermined, from how far from the left side they are. so the closer the item is the more visible it becomes.

    You can see the demo here: http://jsfiddle.net/XAa3Y/57/

    Hope it helps.

提交回复
热议问题