You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -43,10 +43,12 @@ As you can see in the example files, you will need to include the JavaScript fil
43
43
Each section will be defined with a `div` containing the `section` class.
44
44
The active section by default will be the first section, which is taken as the home page.
45
45
```html
46
-
<divclass="section">Some section</div>
47
-
<divclass="section">Some section</div>
48
-
<divclass="section">Some section</div>
49
-
<divclass="section">Some section</div>
46
+
<divid="fullpage">
47
+
<divclass="section">Some section</div>
48
+
<divclass="section">Some section</div>
49
+
<divclass="section">Some section</div>
50
+
<divclass="section">Some section</div>
51
+
</div>
50
52
```
51
53
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.
52
54
```html
@@ -70,14 +72,14 @@ All you need to do is call the plugin inside a `$(document).ready` function:
70
72
71
73
```javascript
72
74
$(document).ready(function() {
73
-
$.fn.fullpage();
75
+
$('#fullpage').fullpage();
74
76
});
75
77
```
76
78
77
79
A more complex initialization with all options set could look like this:
78
80
```javascript
79
81
$(document).ready(function() {
80
-
$.fn.fullpage({
82
+
$('#fullpage').fullpage({
81
83
verticalCentered:true,
82
84
resize :true,
83
85
slidesColor : ['#ccc', '#fff'],
@@ -155,7 +157,7 @@ To create links between sections, you could use the `menu` option and make use o
155
157
-`slidesColor`:(default `none`) Define the CSS `background-color` property for each section:
0 commit comments