Closed plong0 closed 8 years ago
Allows specifying different offsets for top and bottom.
examples:
Activate within 25 pixels of top or bottom of target: <div ui-scrollpoint ui-scrollpoint-edge="{'top': '-25', 'bottom': '+25'}"></div>
<div ui-scrollpoint ui-scrollpoint-edge="{'top': '-25', 'bottom': '+25'}"></div>
Active when scrolled between 25% from top and 25px from bottom <div ui-scrollpoint ui-scrollpoint-edge="{'top': '25%', 'bottom': '25'}"></div>
<div ui-scrollpoint ui-scrollpoint-edge="{'top': '25%', 'bottom': '25'}"></div>
Released as 2.1.0
Allows specifying different offsets for top and bottom.
examples:
Activate within 25 pixels of top or bottom of target:
<div ui-scrollpoint ui-scrollpoint-edge="{'top': '-25', 'bottom': '+25'}"></div>
Active when scrolled between 25% from top and 25px from bottom
<div ui-scrollpoint ui-scrollpoint-edge="{'top': '25%', 'bottom': '25'}"></div>