The bg-local class belongs to the background attachment group within the backgrounds category.
Here is an example of how to use bg-local:
<div class="bg-local bg-cover overflow-y-scroll h-48 w-96 bg-[url('/placeholders/mountain.jpg')]"> <div class="h-64 w-64"></div> </div>
background-attachment: local;
The absolute must-have tool for anyone using Tailwind CSS.
Scan, Edit, Export any tailwind site in browser to create the perfect UI - download the chrome extension!