galvin Posted April 17, 2015 Share Posted April 17, 2015 On this dev url , the blue down "auto scroll" arrow under the headline text uses a simple anchor to jump to a spot on the page (and some javascript to slow down the scroll, but I don't think that matters as far as my question goes). As you can see, I'm also using Skrollr to animate objects and when you scroll down manually, the page kind of 'sticks' when the iMac reaches the top of the page. THAT is where I'd like the "auto scroll" arrow button to jump to and STOP. Right now, it scrolls to that spot, but then keeps going a little further. I've tried putting the anchor element in all different spots, but none get the desired resting place. That got me wondering if you can specify that an anchor scrolls down to a certain scroll position (for example, 300 pixels) rather than to an actual anchor element. In other words, my skrollr code fixes the monitor to the top of the page when the user scrolls 300 pixels. So that is where I need the "auto scroll" down arrow to jump to. Anyone know if this is possible, or have another idea? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/295620-can-an-anchor-jump-to-a-scroll-position-rather-than-anchor-element/ Share on other sites More sharing options...
jeffreyappel Posted April 17, 2015 Share Posted April 17, 2015 Javascript preprocessing tool allows you to create a label and then goto it using this syntax: [lbl] <label-name>goto <label-name> Quote Link to comment https://forums.phpfreaks.com/topic/295620-can-an-anchor-jump-to-a-scroll-position-rather-than-anchor-element/#findComment-1509225 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.