diff --git a/demo/index.html b/demo/index.html index 32e3347..6a55d5e 100644 --- a/demo/index.html +++ b/demo/index.html @@ -61,6 +61,11 @@
<p ui-scrollpoint>They see me scrollin...</p>+
You can optionally pass a number to
+ ui-scrollpoint which would override the detected y-offset of the element. Values can be either absolute
+ 600 or offset from the calculated value -50 or +100.
They see me scrollin...
+They see me scrollin...
+They see me scrollin...
+They see me scrollin...
+They see me scrollin...
+Scrollpoint * 2
+Scrollpoint + 50
+Scrollpoint * -1
+<p ui-scrollpoint>They see me scrollin...</p>-
You can optionally pass a number to
- ui-scrollpoint which would override the detected y-offset of the element. Values can be either absolute
- 600 or offset from the calculated value -50 or +100.
+ You can pass a variable to change de detected y-offset of the element.
+ The element will be updated accordingly if the value is valid.
+ Example: <div ui-scrollpoint={{ scrollpoint }}"></div>
+
+ + +
+