Trigger function at specified pixels scrolled.