avatar
find current position when scrolling Javascript
const getScrollPosition = (el = window) => ({
	x: el.pageXOffset !== undefined ? el.pageXOffset : el.scrollLeft,
	y: el.pageYOffset !== undefined ? el.pageYOffset : el.scrollTop,
});
getScrollPosition();
You need to login to do this manipulation!