📄️ observe() Method
The observe() method is the most important method provided by the ScrollObserver() class. It's use to observe elements position on the page and add an animation when the element being observed enter or leave the viewport.
📄️ unobserve() Method
The unobserve() method is useful when you want to stop observing a specific element — even if it's part of a group being observed (e.g., elements with the same class name).
📄️ disconnect() Method
The disconnect() method is your master switch 🔌 — it stops observing all elements that were previously passed to the observe() method.