What?

Add a 'ui-fixed' class to elements when the page scrolls past them

They see me scrollin...

They see me scrollin...

They see me scrollin...

They see me scrollin...

They see me scrollin...

offest: -100

offest: +100

Try scrolling past this line and see effect on above lines...

Why?

Make elements sticky, or simply appear different after scrolling past a certain point

Remember that this directive only adds a ui-scrollpoint class to the element. It is up to you to add the corresponding CSS rules, however it also gives you the ability to add other rules instead if you prefer.

How?

<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.