hlStickyElement

Makes an element sticky programmatically. The service is a function and you need to make an instance to use it.

This service is heavily used by the hlSticky directive. So if you simple want to use a directive, that might be easier for you. One reason is because you'll need to manually draw the sticky object as can be seen from this demo. In most cases you'll not need that.

Summary

	var stickyElementInstance = hlStickyElement(element:DOMElement, options:object);
	stickyElementInstance.draw(drawOptions:object);
	stickyElementInstance.destroy();

Demos

API

	hlStickyElement(element:DOMElement, options:object)

Public methods

Once you have an instance a few methods are made available to you.