Fullpage.js: How do I set the section to be displayed when I open a website?

Created on 18 Nov 2019  ·  1Comment  ·  Source: alvarotrigo/fullPage.js

Let's say I have multiple sections, section1, section2, section3, and I want section2 to be displayed by default when I open the website, how do I do that?

question

Most helpful comment

Easy!
Just add the class active to that slide as detailed in the docs:

If you want to define a different starting point rather than the first section or the first slide of a section, just add the class active to the section and slide you want to load first.
```html

Some section

```

>All comments

Easy!
Just add the class active to that slide as detailed in the docs:

If you want to define a different starting point rather than the first section or the first slide of a section, just add the class active to the section and slide you want to load first.
```html

Some section

```

Was this page helpful?
0 / 5 - 0 ratings