mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Support for relativeToWrapper and improved wrapper (#35295)
Wrapper option takes an HTMLElement as well as a string. RelativeToWrapper was a recent addition to the library.
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
fadde892e8
commit
a0efee5960
Vendored
+5
-1
@@ -67,7 +67,11 @@ declare namespace Rellax {
|
||||
/**
|
||||
* By default, the position of parallax elements is determined via the scroll position of the body. Passing in the wrapper property will tell Rellax to watch that element instead
|
||||
*/
|
||||
wrapper?: string;
|
||||
wrapper?: string | HTMLElement;
|
||||
/**
|
||||
* Do we want rellax element to be relative to the mentioned wrapper.
|
||||
*/
|
||||
relativeToWrapper?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user