Skip to content

Commit 99e439d

Browse files
committed
- Documentation: fitToSection
1 parent fb4ba89 commit 99e439d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,14 @@ Sets the value for the option `fitToSection` determining whether to fit the sect
545545
$.fn.fullpage.setFitToSection(false);
546546
```
547547
---
548+
### fitToSection()
549+
[Demo](http://codepen.io/alvarotrigo/pen/JWWagj)
550+
Scrolls to the nearest active section fitting it in the viewport.
551+
552+
```javascript
553+
$.fn.fullpage.fitToSection();
554+
```
555+
---
548556
### setLockAnchors(boolean)
549557
[Demo](http://codepen.io/alvarotrigo/pen/yNxVRQ)
550558
Sets the value for the option `lockAnchors` determining whether anchors will have any effect in the URL or not.

README_SPANISH.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,20 @@ $.fn.fullpage.setAutoScrolling(false);
532532
---
533533
### setFitToSection(boolean)
534534
[demostración](http://codepen.io/alvarotrigo/pen/GJXNYm)
535-
Sets the value for the option `fitToSection` determining whether to fit the section in the screen or not.
535+
Determina el valor para la opción `fitToSection` definiendo si ajustar la sección más cercana a la pantalla o no.
536536

537537
```javascript
538538
$.fn.fullpage.setFitToSection(false);
539539
```
540540
---
541+
### fitToSection()
542+
[demostración](http://codepen.io/alvarotrigo/pen/JWWagj)
543+
Desplaza la página hacia la sección activa más cercana encajándola en la pantalla.
544+
545+
```javascript
546+
$.fn.fullpage.fitToSection();
547+
```
548+
---
541549
### setLockAnchors(boolean)
542550
[demostración](http://codepen.io/alvarotrigo/pen/yNxVRQ)
543551
Define el valor para la opción `lockAnchors` determinando si los links de anclaje tendrán algún efecto en la URL o no.

0 commit comments

Comments
 (0)