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: .github/ISSUE_TEMPLATE.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
### Description
2
2
3
3
### Link to isolated reproduction with no external CSS / JS
4
-
[in jsfiddle.net or codepen.io if possible, link to personal websites won't be reviewed unless isolated reproductions are provided]
4
+
[in jsfiddle.net or codepen.io if possible, link to personal websites won't be reviewed unless isolated reproductions are provided. Reported issues without a reproduction might be closed.]
@@ -238,8 +234,8 @@ Note that section anchors can also be defined in the same way, by using the `dat
238
234
239
235
**Be careful!**`data-anchor` tags can not have the same value as any ID element on the site (or NAME element for IE).
240
236
241
-
### Creating smaller sections
242
-
[Demo](http://codepen.io/alvarotrigo/pen/BKjRYm)It is possible to use sections or slides which don't take the whole viewport height resulting in smaller sections. This is ideal for footers.
237
+
### Creating smaller or bigger sections
238
+
[Demo](http://codepen.io/alvarotrigo/pen/BKjRYm)fullPage.js provides a way to remove the full height restriction from its sections and slides. It is possible to create sections which height is smaller or bigger thant the viewport. This is ideal for footers.
243
239
It is important to realise that it doesn't make sense to have all of your sections using this feature. If there is more than one section in the initial load of the site, the plugin won't scroll at all to see the next one as it will be already in the viewport.
244
240
245
241
To create smaller sections just use the class `fp-auto-height` in the section you want to apply it. It will then take the height defined by your section/slide content.
@@ -249,15 +245,19 @@ To create smaller sections just use the class `fp-auto-height` in the section yo
A responsive auto height can be applied by using the class `fp-auto-height-responsive`. This way sections will be full height until the responsive mode gets fired.
250
+
252
251
### State classes added by fullpage.js
253
252
Fullpage.js adds multiple classes in different elements to keep a record of the status of the site:
254
253
255
-
-The class `active` is added the current visible section and slide.
256
-
-The class `active` is added to the current menu element (if using the `menu` option).
254
+
-`active` is added the current visible section and slide.
255
+
-`active` is added to the current menu element (if using the `menu` option).
257
256
- A class of the form `fp-viewing-SECTION-SLIDE` is added to the `body` element of the site. (eg: [`fp-viewing-secondPage-0`](http://alvarotrigo.com/fullPage/#secondPage)) The `SECTION` and `SLIDE` parts will be the anchors (or indexes if no anchor is provided) of the current section and slide.
258
-
- The class `fp-responsive` is added to the `body` element when the entering in the responsive mode
259
-
- The class `fp-enabled` is added to the `html` element when fullpage.js is enabled. (and removed when destroyed).
260
-
- The class `fp-destroyed` is added to the fullpage.js container when the plugin is destroyed.
257
+
-`fp-responsive` is added to the `body` element when the entering in the responsive mode
258
+
-`fp-enabled` is added to the `html` element when fullpage.js is enabled. (and removed when destroyed).
259
+
-`fp-destroyed` is added to the fullpage.js container when the plugin is destroyed.
260
+
-`fp-enabled` is added to the `html` element once the libary is initalized.
261
261
262
262
###Lazy Loading
263
263
[Demo](http://codepen.io/alvarotrigo/pen/eNLBXo) fullPage.js provides a way to lazy load images, videos and audio elements so they won't slow down the loading of your site or unnecessarily waste data transfer.
@@ -348,6 +348,8 @@ the fitting by the configured milliseconds.
348
348
349
349
-`normalScrollElementTouchThreshold` : (default `5`) Defines the threshold for the number of hops up the html node tree Fullpage will test to see if `normalScrollElements` is a match to allow scrolling functionality on divs on a touch device. (For example: `normalScrollElementTouchThreshold: 3`)
350
350
351
+
-`bigSectionsDestination`: (default `null`) Defines how to scroll to a section which size is bigger than the viewport. By default fullPage.js scrolls to the top if you come from a section above the destination one and to the bottom if you come from a section below the destination one. Possible values are `top`, `bottom`, `null`.
352
+
351
353
-`keyboardScrolling`: (default `true`) Defines if the content can be navigated using the keyboard
352
354
353
355
-`touchSensitivity`: (default `5`) Defines a percentage of the browsers window width/height, and how far a swipe must measure for navigating to the next section / slide
@@ -391,7 +393,7 @@ $('#fullpage').fullpage({
391
393
-`slidesNavPosition`: (default `bottom`) Defines the position for the landscape navigation bar for sliders. Admits `top` and `bottom` as values. You may want to modify the CSS styles to determine the distance from the top or bottom as well as any other style such as color.
392
394
393
395
-`scrollOverflow`: (default `false`) defines whether or not to create a scroll for the section/slide in case its content is bigger than the height of it. When set to `true`, your content will be wrapped by the plugin. Consider using delegation or load your other scripts in the `afterRender` callback.
394
-
In case of setting it to `true`, it requires the vendor library [`scrolloverflow.min.js`](https://github.com/alvarotrigo/fullPage.js/vendors) and it should be loaded before the fullPage.js plugin. For example:
396
+
In case of setting it to `true`, it requires the vendor library [`scrolloverflow.min.js`](https://github.com/alvarotrigo/fullPage.js/blob/master/vendors/scrolloverflow.min.js) and it should be loaded before the fullPage.js plugin. For example:
Updates the DOM structure to fit the new window size or its contents.
552
-
Ideal to use in combination with AJAX calls or external changes in the DOM structure of the site.
554
+
Ideal to use in combination with AJAX calls or external changes in the DOM structure of the site, specially when using `scrollOverflow:true`.
553
555
554
556
```javascript
555
557
$.fn.fullpage.reBuild();
556
558
```
559
+
---
560
+
### setResponsive(boolean)
561
+
[Demo](http://codepen.io/alvarotrigo/pen/WxOyLA) Sets the responsive mode of the page. When set to `true` the autoScrolling will be turned off and the result will be exactly the same one as when the `responsiveWidth` or `responsiveHeight` options get fired.
562
+
557
563
558
564
## Callbacks
559
565
[Demo](http://codepen.io/alvarotrigo/pen/XbPNQv) You can see them in action [here](http://alvarotrigo.com/fullPage/examples/callbacks.html).
@@ -770,14 +776,16 @@ If you want your page to be listed here. Please <a href="mailto:alvaro@alvarotri
0 commit comments