scroll_to_view
scroll_to_view($start,$smooth=false); - scroll the page using Java Script so that the element is visible (available from version 4.6.30)
The function accepts parameters as input:
$start - which side of the page the element will be visible from (boolean). 1- true will be visible at the top of the page, 0 - false at the bottom, 2 - center, 3 - closest.
$smooth - whether the scroll is smooth or not. Not smooth by default.
After the function returns the result of their work in the script (the return value type is boolean):
true – executed successfullyfalse to find this element failed (e.g. no items that meet the specified criteria or not this frame)