Update Class When Sticky

Add classes to elements whan a target element is sticky in the DOM with alpinejs-sticky plugin.

This uses the community Alpine JSx-sticky plugin.

Example

Code