Origins options to allow the developer to change where the threshold point is. Support px and %.
Added support for elements.