From a0efee59600d5a16b3ce56758234acd1f3e91c7b Mon Sep 17 00:00:00 2001 From: Arsen Date: Mon, 13 May 2019 19:05:52 -0400 Subject: [PATCH] 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. --- types/rellax/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/rellax/index.d.ts b/types/rellax/index.d.ts index ce6921b9d5..41ffbaa631 100644 --- a/types/rellax/index.d.ts +++ b/types/rellax/index.d.ts @@ -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; } }