File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
documentation/docs/api/parallax-controller Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,7 @@ See the options for creating a new controller tied to a view: [`ParallaxControll
22
22
- [ ` removeElementById() ` ] ( ./methods#removeelementbyid )
23
23
- [ ` resetElementStyles() ` ] ( ./methods#resetelementstyles )
24
24
- [ ` updateScrollContainer() ` ] ( ./methods#updatescrollcontainer )
25
+ - [ ` disableAllElements() ` ] ( ./methods#disableallelements )
26
+ - [ ` enableAllElements() ` ] ( ./methods#enableallelements )
25
27
- [ ` update() ` ] ( ./methods#update )
26
28
- [ ` destroy() ` ] ( ./methods#destroy )
Original file line number Diff line number Diff line change @@ -56,6 +56,22 @@ const el = document.getElementById('your-scroll-container');
56
56
parallaxController .updateScrollContainer (el );
57
57
```
58
58
59
+ ## disableAllElements()
60
+
61
+ Disables all parallax elements in the controller.
62
+
63
+ ``` ts
64
+ parallaxController .disableAllElements ();
65
+ ```
66
+
67
+ ## enableAllElements()
68
+
69
+ Enables all parallax elements in the controller.
70
+
71
+ ``` ts
72
+ parallaxController .enableAllElements ();
73
+ ```
74
+
59
75
## update()
60
76
61
77
Updates all cached attributes on parallax elements.
You can’t perform that action at this time.
0 commit comments