Customize pinned element with IntersectionObserver