A couple of issues, the first is that is scrollTop with a lowercase “s”, the other is that the element does not bind immediately so if you are putting this statement at the top level of the component it will be undefined for some period of time. You can use onMount or similar to get this value:
onMount(() => {
console.log(AboutMeAnimation.scrollTop);
});
Otherwise a reactive statement could work also:
$: {
console.log(AboutMeAnimation && AboutMeAnimation.scrollTop);
}
Hopefully that helps!