hl-sticky
The magical sticky directive.
The directive makes use of the hlStickyElementCollection
service to take care of stacking, so a lot of the documentation can be found there.
It also makes use of the hlStickyElement
service to become sticky and so a lot of the documentation can be found there as well.
By default a class called hl-sticky
is being added to the element the directive has been applied to.
I'll become sticky
hl-sticky
hlStickyElement
at id
media-query
hlStickyElement
at mediaQuery
sticky-class
hlStickyElement
at stickyClass
use-placeholder
hlStickyElement
at usePlaceholder
anchor
hlStickyElement
at anchor
offset-top
hlStickyElement
at offsetTop
offset-bottom
hlStickyElement
at offsetBottom
container
hlStickyElement
at container
event()
More documentation about the parameters can be found here
hlStickyElement
at event
collection
hlStickyElementCollection
at collection
collection-parent
hlStickyElementCollection
at parent
enable
hlStickyElement
at enable
alwaysSticky
hlStickyElement
at alwaysSticky