Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position of path #24

Open
D2Designs opened this issue Feb 25, 2013 · 2 comments
Open

Position of path #24

D2Designs opened this issue Feb 25, 2013 · 2 comments

Comments

@D2Designs
Copy link

Is there a way to change the position of the path so that it is not relative to the center of the browser window? I would like to incorporate this into a DIV on a page with other elements, and only want the content within the DIV to scroll along the path, but with the path positioning being relative to the center of the DIV not the browser window. Is this possible?

@pankajthakur007
Copy link

yes it is possible... set your div according to you change in style.css and demo.js . in demo.js set MoveTo() like .moveTo(680, 340, {name: "start"}) try it,,,

@magus824
Copy link

magus824 commented Apr 1, 2013

I was wondering if you could elaborate more on how to center this within a div? For example, I currently have a div that is a width of 600, a height of 600, and is position:relative. When I put the scrollpath area inside of this div, it still arranges itself so that it's center is the center of the browser window, and not at the middle of the div surrounding it (which would be 300, 300). Can you help me understand how to set up Scrollpath so that it centers itself within a div, and not to the center of the browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants