will-change-transform/scroll/contents/auto — compositor hints. This family contains 4 generated classes in Nakshora 3.1.

Classes#

ClassGenerated CSS
will-change-autowill-change: auto;
will-change-scrollwill-change: scroll-position;
will-change-contentswill-change: contents;
will-change-transformwill-change: transform;

Example#

example
html
<div class="will-change-transform animate-spin">Heavy spinner</div>

Responsive & variants#

Every class here accepts screen prefixes (xxs:5xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • Apply just before animation, remove after — permanent hints waste memory

utilities/interactivity/cursor|Cursor · utilities/interactivity/scroll-snap|Scroll snap