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

Open specific slide by default #38

Closed
cywtf opened this issue Aug 15, 2015 · 1 comment
Closed

Open specific slide by default #38

cywtf opened this issue Aug 15, 2015 · 1 comment

Comments

@cywtf
Copy link

cywtf commented Aug 15, 2015

Would it be possible to set up a starting slide that is not the slide #1?
If so, how to achieve this? Let's say I want to start my presentation at a slide with a particular id or class, rather than the first slide in the dom.

Thanks in advance!

@marcolago
Copy link
Owner

If what you want to achieve is something like this: http://radiocochon.com/ (at loading it will navigate in the central page of a 3x3 flow) you can just force a navigation just after the Flowtime init.

You can find the page via document.querySelector (or any other method you prefer) you want to navigate to and use Flowtime.gotoPage(HTMLElement target) to tell Flowtime to start a navigation right after the script loads.

With this method you could also start Flowtime with the additional class no-transition applied to the Flowtime main element and remove the no-transition class just after ne first navigation so the transition from the first page to your start page will not be performed.

If you have a long loading time you could see the content of the first page for a little time but this is a easy to resolve issue hiding the Flowtime container until the first navigation has performed.

Let me know if this is the solution you need.

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

2 participants