Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

stage overflow settings for scroll to anchor

$
0
0

Hi,

 

I'm trying to do "scroll to anchor" functionality like the one here:  Edit fiddle - JSFiddle

 

My code only works if the Stage's overflow is set to hidden.

var anchorId = sym.$('#feature02');

$('html, body').animate({scrollTop: anchorId.offset().top}, 500);

 

I'm pulling in content from a json file (generated by a content management system), though, so I don't know how long the resultant page will be.  Also, it looks like the max Stage height setting is 10000, which is too short.

 

So, overflow set to auto lets me see all of my content but kills my "scroll to anchor" functionality.  Also, an overflow set to auto causes a nasty double scroll bar on the windows side.

 

Any thoughts?

 

Thanks

-Sherry


Viewing all articles
Browse latest Browse all 9897

Trending Articles