Added possibility of specifying percentage of element viewable before event is fired