Skip to content

Commit eac0c52

Browse files
committed
- Documenting callback afterResponsive alvarotrigo#2296
1 parent 29290c3 commit eac0c52

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ $(document).ready(function() {
201201
afterLoad: function(anchorLink, index){},
202202
afterRender: function(){},
203203
afterResize: function(){},
204+
afterResponsive: function(isResponsive){},
204205
afterSlideLoad: function(anchorLink, index, slideAnchor, slideIndex){},
205206
onSlideLeave: function(anchorLink, index, slideIndex, direction, nextSlideIndex){}
206207
});
@@ -717,6 +718,23 @@ Example:
717718
});
718719
```
719720
---
721+
###afterResponsive(`isResponsive`)
722+
This callback is fired after fullpage.js changes from normal to responsive mode or from responsive mode to normal mode.
723+
724+
Parameters:
725+
726+
- `isResponsive`: boolean that determines if it enters into responsive mode (`true`) or goes back to normal mode (`false`).
727+
728+
Example:
729+
730+
```javascript
731+
$('#fullpage').fullpage({
732+
afterResponsive: function(isResponsive){
733+
alert("Is responsive: " + isResponsive);
734+
}
735+
});
736+
```
737+
---
720738
###afterSlideLoad (`anchorLink`, `index`, `slideAnchor`, `slideIndex`)
721739
Callback fired once the slide of a section have been loaded, after the scrolling has ended.
722740
Parameters:

0 commit comments

Comments
 (0)