File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
documentation/docs/api/parallax-controller Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ const instance = ParallaxController.init();
14
14
15
15
See the options for creating a new controller tied to a view: [ ` ParallaxController.init ` ] ( ./init )
16
16
17
- ## InstanceMethods
17
+ ## Instance Methods
18
18
19
19
- [ ` createElement() ` ] ( ./methods#createelement )
20
20
- [ ` getElements() ` ] ( ./methods#getelements )
21
21
- [ ` updateElementPropsById() ` ] ( ./methods#updateelementpropsbyid )
22
22
- [ ` removeElementById() ` ] ( ./methods#removeelementbyid )
23
+ - [ ` resetElementStyles() ` ] ( ./methods#resetelementstyles )
23
24
- [ ` updateScrollContainer() ` ] ( ./methods#updatescrollcontainer )
24
25
- [ ` update() ` ] ( ./methods#update )
25
26
- [ ` destroy() ` ] ( ./methods#destroy )
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ Removes and element by a given ID
40
40
parallaxController .removeElementById (element .id );
41
41
```
42
42
43
+ ## resetElementStyles()
44
+
45
+ Remove a target elements parallax styles
46
+
47
+ ``` ts
48
+ parallaxController .resetElementStyles (element );
49
+ ```
50
+
43
51
## updateScrollContainer()
44
52
45
53
Updates the scroll container of the parallax controller.
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export class ParallaxController {
93
93
'getElements' ,
94
94
'createElement' ,
95
95
'removeElementById' ,
96
+ 'resetElementStyles' ,
96
97
'updateElementPropsById' ,
97
98
'update' ,
98
99
'updateScrollContainer' ,
@@ -255,6 +256,13 @@ export class ParallaxController {
255
256
this . update ( ) ;
256
257
}
257
258
259
+ /**
260
+ * Remove a target elements parallax styles
261
+ */
262
+ resetElementStyles ( element : Element ) {
263
+ resetStyles ( element ) ;
264
+ }
265
+
258
266
/**
259
267
* Updates all cached attributes on parallax elements.
260
268
*/
You can’t perform that action at this time.
0 commit comments