Quick reference

Class
Properties
scroll-m-0scroll-margin: 0px;
scroll-mx-0scroll-margin-left: 0px; scroll-margin-right: 0px;
scroll-my-0scroll-margin-top: 0px; scroll-margin-bottom: 0px;
scroll-ms-0scroll-margin-inline-start: 0px;
scroll-me-0scroll-margin-inline-end: 0px;
scroll-mt-0scroll-margin-top: 0px;
scroll-mr-0scroll-margin-right: 0px;
scroll-mb-0scroll-margin-bottom: 0px;
scroll-ml-0scroll-margin-left: 0px;
scroll-m-pxscroll-margin: 1px;
scroll-mx-pxscroll-margin-left: 1px; scroll-margin-right: 1px;
scroll-my-pxscroll-margin-top: 1px; scroll-margin-bottom: 1px;
scroll-ms-pxscroll-margin-inline-start: 1px;
scroll-me-pxscroll-margin-inline-end: 1px;
scroll-mt-pxscroll-margin-top: 1px;
scroll-mr-pxscroll-margin-right: 1px;
scroll-mb-pxscroll-margin-bottom: 1px;
scroll-ml-pxscroll-margin-left: 1px;
scroll-m-0.5scroll-margin: 0.125rem; /* 2px */
scroll-mx-0.5scroll-margin-left: 0.125rem; /* 2px */ scroll-margin-right: 0.125rem; /* 2px */
scroll-my-0.5scroll-margin-top: 0.125rem; /* 2px */ scroll-margin-bottom: 0.125rem; /* 2px */
scroll-ms-0.5scroll-margin-inline-start: 0.125rem; /* 2px */
scroll-me-0.5scroll-margin-inline-end: 0.125rem; /* 2px */
scroll-mt-0.5scroll-margin-top: 0.125rem; /* 2px */
scroll-mr-0.5scroll-margin-right: 0.125rem; /* 2px */
scroll-mb-0.5scroll-margin-bottom: 0.125rem; /* 2px */
scroll-ml-0.5scroll-margin-left: 0.125rem; /* 2px */
scroll-m-1scroll-margin: 0.25rem; /* 4px */
scroll-mx-1scroll-margin-left: 0.25rem; /* 4px */ scroll-margin-right: 0.25rem; /* 4px */
scroll-my-1scroll-margin-top: 0.25rem; /* 4px */ scroll-margin-bottom: 0.25rem; /* 4px */
scroll-ms-1scroll-margin-inline-start: 0.25rem; /* 4px */
scroll-me-1scroll-margin-inline-end: 0.25rem; /* 4px */
scroll-mt-1scroll-margin-top: 0.25rem; /* 4px */
scroll-mr-1scroll-margin-right: 0.25rem; /* 4px */
scroll-mb-1scroll-margin-bottom: 0.25rem; /* 4px */
scroll-ml-1scroll-margin-left: 0.25rem; /* 4px */
scroll-m-1.5scroll-margin: 0.375rem; /* 6px */
scroll-mx-1.5scroll-margin-left: 0.375rem; /* 6px */ scroll-margin-right: 0.375rem; /* 6px */
scroll-my-1.5scroll-margin-top: 0.375rem; /* 6px */ scroll-margin-bottom: 0.375rem; /* 6px */
scroll-ms-1.5scroll-margin-inline-start: 0.375rem; /* 6px */
scroll-me-1.5scroll-margin-inline-end: 0.375rem; /* 6px */
scroll-mt-1.5scroll-margin-top: 0.375rem; /* 6px */
scroll-mr-1.5scroll-margin-right: 0.375rem; /* 6px */
scroll-mb-1.5scroll-margin-bottom: 0.375rem; /* 6px */
scroll-ml-1.5scroll-margin-left: 0.375rem; /* 6px */
scroll-m-2scroll-margin: 0.5rem; /* 8px */
scroll-mx-2scroll-margin-left: 0.5rem; /* 8px */ scroll-margin-right: 0.5rem; /* 8px */
scroll-my-2scroll-margin-top: 0.5rem; /* 8px */ scroll-margin-bottom: 0.5rem; /* 8px */
scroll-ms-2scroll-margin-inline-start: 0.5rem; /* 8px */
scroll-me-2scroll-margin-inline-end: 0.5rem; /* 8px */
scroll-mt-2scroll-margin-top: 0.5rem; /* 8px */
scroll-mr-2scroll-margin-right: 0.5rem; /* 8px */
scroll-mb-2scroll-margin-bottom: 0.5rem; /* 8px */
scroll-ml-2scroll-margin-left: 0.5rem; /* 8px */
scroll-m-2.5scroll-margin: 0.625rem; /* 10px */
scroll-mx-2.5scroll-margin-left: 0.625rem; /* 10px */ scroll-margin-right: 0.625rem; /* 10px */
scroll-my-2.5scroll-margin-top: 0.625rem; /* 10px */ scroll-margin-bottom: 0.625rem; /* 10px */
scroll-ms-2.5scroll-margin-inline-start: 0.625rem; /* 10px */
scroll-me-2.5scroll-margin-inline-end: 0.625rem; /* 10px */
scroll-mt-2.5scroll-margin-top: 0.625rem; /* 10px */
scroll-mr-2.5scroll-margin-right: 0.625rem; /* 10px */
scroll-mb-2.5scroll-margin-bottom: 0.625rem; /* 10px */
scroll-ml-2.5scroll-margin-left: 0.625rem; /* 10px */
scroll-m-3scroll-margin: 0.75rem; /* 12px */
scroll-mx-3scroll-margin-left: 0.75rem; /* 12px */ scroll-margin-right: 0.75rem; /* 12px */
scroll-my-3scroll-margin-top: 0.75rem; /* 12px */ scroll-margin-bottom: 0.75rem; /* 12px */
scroll-ms-3scroll-margin-inline-start: 0.75rem; /* 12px */
scroll-me-3scroll-margin-inline-end: 0.75rem; /* 12px */
scroll-mt-3scroll-margin-top: 0.75rem; /* 12px */
scroll-mr-3scroll-margin-right: 0.75rem; /* 12px */
scroll-mb-3scroll-margin-bottom: 0.75rem; /* 12px */
scroll-ml-3scroll-margin-left: 0.75rem; /* 12px */
scroll-m-3.5scroll-margin: 0.875rem; /* 14px */
scroll-mx-3.5scroll-margin-left: 0.875rem; /* 14px */ scroll-margin-right: 0.875rem; /* 14px */
scroll-my-3.5scroll-margin-top: 0.875rem; /* 14px */ scroll-margin-bottom: 0.875rem; /* 14px */
scroll-ms-3.5scroll-margin-inline-start: 0.875rem; /* 14px */
scroll-me-3.5scroll-margin-inline-end: 0.875rem; /* 14px */
scroll-mt-3.5scroll-margin-top: 0.875rem; /* 14px */
scroll-mr-3.5scroll-margin-right: 0.875rem; /* 14px */
scroll-mb-3.5scroll-margin-bottom: 0.875rem; /* 14px */
scroll-ml-3.5scroll-margin-left: 0.875rem; /* 14px */
scroll-m-4scroll-margin: 1rem; /* 16px */
scroll-mx-4scroll-margin-left: 1rem; /* 16px */ scroll-margin-right: 1rem; /* 16px */
scroll-my-4scroll-margin-top: 1rem; /* 16px */ scroll-margin-bottom: 1rem; /* 16px */
scroll-ms-4scroll-margin-inline-start: 1rem; /* 16px */
scroll-me-4scroll-margin-inline-end: 1rem; /* 16px */
scroll-mt-4scroll-margin-top: 1rem; /* 16px */
scroll-mr-4scroll-margin-right: 1rem; /* 16px */
scroll-mb-4scroll-margin-bottom: 1rem; /* 16px */
scroll-ml-4scroll-margin-left: 1rem; /* 16px */
scroll-m-5scroll-margin: 1.25rem; /* 20px */
scroll-mx-5scroll-margin-left: 1.25rem; /* 20px */ scroll-margin-right: 1.25rem; /* 20px */
scroll-my-5scroll-margin-top: 1.25rem; /* 20px */ scroll-margin-bottom: 1.25rem; /* 20px */
scroll-ms-5scroll-margin-inline-start: 1.25rem; /* 20px */
scroll-me-5scroll-margin-inline-end: 1.25rem; /* 20px */
scroll-mt-5scroll-margin-top: 1.25rem; /* 20px */
scroll-mr-5scroll-margin-right: 1.25rem; /* 20px */
scroll-mb-5scroll-margin-bottom: 1.25rem; /* 20px */
scroll-ml-5scroll-margin-left: 1.25rem; /* 20px */
scroll-m-6scroll-margin: 1.5rem; /* 24px */
scroll-mx-6scroll-margin-left: 1.5rem; /* 24px */ scroll-margin-right: 1.5rem; /* 24px */
scroll-my-6scroll-margin-top: 1.5rem; /* 24px */ scroll-margin-bottom: 1.5rem; /* 24px */
scroll-ms-6scroll-margin-inline-start: 1.5rem; /* 24px */
scroll-me-6scroll-margin-inline-end: 1.5rem; /* 24px */
scroll-mt-6scroll-margin-top: 1.5rem; /* 24px */
scroll-mr-6scroll-margin-right: 1.5rem; /* 24px */
scroll-mb-6scroll-margin-bottom: 1.5rem; /* 24px */
scroll-ml-6scroll-margin-left: 1.5rem; /* 24px */
scroll-m-7scroll-margin: 1.75rem; /* 28px */
scroll-mx-7scroll-margin-left: 1.75rem; /* 28px */ scroll-margin-right: 1.75rem; /* 28px */
scroll-my-7scroll-margin-top: 1.75rem; /* 28px */ scroll-margin-bottom: 1.75rem; /* 28px */
scroll-ms-7scroll-margin-inline-start: 1.75rem; /* 28px */
scroll-me-7scroll-margin-inline-end: 1.75rem; /* 28px */
scroll-mt-7scroll-margin-top: 1.75rem; /* 28px */
scroll-mr-7scroll-margin-right: 1.75rem; /* 28px */
scroll-mb-7scroll-margin-bottom: 1.75rem; /* 28px */
scroll-ml-7scroll-margin-left: 1.75rem; /* 28px */
scroll-m-8scroll-margin: 2rem; /* 32px */
scroll-mx-8scroll-margin-left: 2rem; /* 32px */ scroll-margin-right: 2rem; /* 32px */
scroll-my-8scroll-margin-top: 2rem; /* 32px */ scroll-margin-bottom: 2rem; /* 32px */
scroll-ms-8scroll-margin-inline-start: 2rem; /* 32px */
scroll-me-8scroll-margin-inline-end: 2rem; /* 32px */
scroll-mt-8scroll-margin-top: 2rem; /* 32px */
scroll-mr-8scroll-margin-right: 2rem; /* 32px */
scroll-mb-8scroll-margin-bottom: 2rem; /* 32px */
scroll-ml-8scroll-margin-left: 2rem; /* 32px */
scroll-m-9scroll-margin: 2.25rem; /* 36px */
scroll-mx-9scroll-margin-left: 2.25rem; /* 36px */ scroll-margin-right: 2.25rem; /* 36px */
scroll-my-9scroll-margin-top: 2.25rem; /* 36px */ scroll-margin-bottom: 2.25rem; /* 36px */
scroll-ms-9scroll-margin-inline-start: 2.25rem; /* 36px */
scroll-me-9scroll-margin-inline-end: 2.25rem; /* 36px */
scroll-mt-9scroll-margin-top: 2.25rem; /* 36px */
scroll-mr-9scroll-margin-right: 2.25rem; /* 36px */
scroll-mb-9scroll-margin-bottom: 2.25rem; /* 36px */
scroll-ml-9scroll-margin-left: 2.25rem; /* 36px */
scroll-m-10scroll-margin: 2.5rem; /* 40px */
scroll-mx-10scroll-margin-left: 2.5rem; /* 40px */ scroll-margin-right: 2.5rem; /* 40px */
scroll-my-10scroll-margin-top: 2.5rem; /* 40px */ scroll-margin-bottom: 2.5rem; /* 40px */
scroll-ms-10scroll-margin-inline-start: 2.5rem; /* 40px */
scroll-me-10scroll-margin-inline-end: 2.5rem; /* 40px */
scroll-mt-10scroll-margin-top: 2.5rem; /* 40px */
scroll-mr-10scroll-margin-right: 2.5rem; /* 40px */
scroll-mb-10scroll-margin-bottom: 2.5rem; /* 40px */
scroll-ml-10scroll-margin-left: 2.5rem; /* 40px */
scroll-m-11scroll-margin: 2.75rem; /* 44px */
scroll-mx-11scroll-margin-left: 2.75rem; /* 44px */ scroll-margin-right: 2.75rem; /* 44px */
scroll-my-11scroll-margin-top: 2.75rem; /* 44px */ scroll-margin-bottom: 2.75rem; /* 44px */
scroll-ms-11scroll-margin-inline-start: 2.75rem; /* 44px */
scroll-me-11scroll-margin-inline-end: 2.75rem; /* 44px */
scroll-mt-11scroll-margin-top: 2.75rem; /* 44px */
scroll-mr-11scroll-margin-right: 2.75rem; /* 44px */
scroll-mb-11scroll-margin-bottom: 2.75rem; /* 44px */
scroll-ml-11scroll-margin-left: 2.75rem; /* 44px */
scroll-m-12scroll-margin: 3rem; /* 48px */
scroll-mx-12scroll-margin-left: 3rem; /* 48px */ scroll-margin-right: 3rem; /* 48px */
scroll-my-12scroll-margin-top: 3rem; /* 48px */ scroll-margin-bottom: 3rem; /* 48px */
scroll-ms-12scroll-margin-inline-start: 3rem; /* 48px */
scroll-me-12scroll-margin-inline-end: 3rem; /* 48px */
scroll-mt-12scroll-margin-top: 3rem; /* 48px */
scroll-mr-12scroll-margin-right: 3rem; /* 48px */
scroll-mb-12scroll-margin-bottom: 3rem; /* 48px */
scroll-ml-12scroll-margin-left: 3rem; /* 48px */
scroll-m-14scroll-margin: 3.5rem; /* 56px */
scroll-mx-14scroll-margin-left: 3.5rem; /* 56px */ scroll-margin-right: 3.5rem; /* 56px */
scroll-my-14scroll-margin-top: 3.5rem; /* 56px */ scroll-margin-bottom: 3.5rem; /* 56px */
scroll-ms-14scroll-margin-inline-start: 3.5rem; /* 56px */
scroll-me-14scroll-margin-inline-end: 3.5rem; /* 56px */
scroll-mt-14scroll-margin-top: 3.5rem; /* 56px */
scroll-mr-14scroll-margin-right: 3.5rem; /* 56px */
scroll-mb-14scroll-margin-bottom: 3.5rem; /* 56px */
scroll-ml-14scroll-margin-left: 3.5rem; /* 56px */
scroll-m-16scroll-margin: 4rem; /* 64px */
scroll-mx-16scroll-margin-left: 4rem; /* 64px */ scroll-margin-right: 4rem; /* 64px */
scroll-my-16scroll-margin-top: 4rem; /* 64px */ scroll-margin-bottom: 4rem; /* 64px */
scroll-ms-16scroll-margin-inline-start: 4rem; /* 64px */
scroll-me-16scroll-margin-inline-end: 4rem; /* 64px */
scroll-mt-16scroll-margin-top: 4rem; /* 64px */
scroll-mr-16scroll-margin-right: 4rem; /* 64px */
scroll-mb-16scroll-margin-bottom: 4rem; /* 64px */
scroll-ml-16scroll-margin-left: 4rem; /* 64px */
scroll-m-20scroll-margin: 5rem; /* 80px */
scroll-mx-20scroll-margin-left: 5rem; /* 80px */ scroll-margin-right: 5rem; /* 80px */
scroll-my-20scroll-margin-top: 5rem; /* 80px */ scroll-margin-bottom: 5rem; /* 80px */
scroll-ms-20scroll-margin-inline-start: 5rem; /* 80px */
scroll-me-20scroll-margin-inline-end: 5rem; /* 80px */
scroll-mt-20scroll-margin-top: 5rem; /* 80px */
scroll-mr-20scroll-margin-right: 5rem; /* 80px */
scroll-mb-20scroll-margin-bottom: 5rem; /* 80px */
scroll-ml-20scroll-margin-left: 5rem; /* 80px */
scroll-m-24scroll-margin: 6rem; /* 96px */
scroll-mx-24scroll-margin-left: 6rem; /* 96px */ scroll-margin-right: 6rem; /* 96px */
scroll-my-24scroll-margin-top: 6rem; /* 96px */ scroll-margin-bottom: 6rem; /* 96px */
scroll-ms-24scroll-margin-inline-start: 6rem; /* 96px */
scroll-me-24scroll-margin-inline-end: 6rem; /* 96px */
scroll-mt-24scroll-margin-top: 6rem; /* 96px */
scroll-mr-24scroll-margin-right: 6rem; /* 96px */
scroll-mb-24scroll-margin-bottom: 6rem; /* 96px */
scroll-ml-24scroll-margin-left: 6rem; /* 96px */
scroll-m-28scroll-margin: 7rem; /* 112px */
scroll-mx-28scroll-margin-left: 7rem; /* 112px */ scroll-margin-right: 7rem; /* 112px */
scroll-my-28scroll-margin-top: 7rem; /* 112px */ scroll-margin-bottom: 7rem; /* 112px */
scroll-ms-28scroll-margin-inline-start: 7rem; /* 112px */
scroll-me-28scroll-margin-inline-end: 7rem; /* 112px */
scroll-mt-28scroll-margin-top: 7rem; /* 112px */
scroll-mr-28scroll-margin-right: 7rem; /* 112px */
scroll-mb-28scroll-margin-bottom: 7rem; /* 112px */
scroll-ml-28scroll-margin-left: 7rem; /* 112px */
scroll-m-32scroll-margin: 8rem; /* 128px */
scroll-mx-32scroll-margin-left: 8rem; /* 128px */ scroll-margin-right: 8rem; /* 128px */
scroll-my-32scroll-margin-top: 8rem; /* 128px */ scroll-margin-bottom: 8rem; /* 128px */
scroll-ms-32scroll-margin-inline-start: 8rem; /* 128px */
scroll-me-32scroll-margin-inline-end: 8rem; /* 128px */
scroll-mt-32scroll-margin-top: 8rem; /* 128px */
scroll-mr-32scroll-margin-right: 8rem; /* 128px */
scroll-mb-32scroll-margin-bottom: 8rem; /* 128px */
scroll-ml-32scroll-margin-left: 8rem; /* 128px */
scroll-m-36scroll-margin: 9rem; /* 144px */
scroll-mx-36scroll-margin-left: 9rem; /* 144px */ scroll-margin-right: 9rem; /* 144px */
scroll-my-36scroll-margin-top: 9rem; /* 144px */ scroll-margin-bottom: 9rem; /* 144px */
scroll-ms-36scroll-margin-inline-start: 9rem; /* 144px */
scroll-me-36scroll-margin-inline-end: 9rem; /* 144px */
scroll-mt-36scroll-margin-top: 9rem; /* 144px */
scroll-mr-36scroll-margin-right: 9rem; /* 144px */
scroll-mb-36scroll-margin-bottom: 9rem; /* 144px */
scroll-ml-36scroll-margin-left: 9rem; /* 144px */
scroll-m-40scroll-margin: 10rem; /* 160px */
scroll-mx-40scroll-margin-left: 10rem; /* 160px */ scroll-margin-right: 10rem; /* 160px */
scroll-my-40scroll-margin-top: 10rem; /* 160px */ scroll-margin-bottom: 10rem; /* 160px */
scroll-ms-40scroll-margin-inline-start: 10rem; /* 160px */
scroll-me-40scroll-margin-inline-end: 10rem; /* 160px */
scroll-mt-40scroll-margin-top: 10rem; /* 160px */
scroll-mr-40scroll-margin-right: 10rem; /* 160px */
scroll-mb-40scroll-margin-bottom: 10rem; /* 160px */
scroll-ml-40scroll-margin-left: 10rem; /* 160px */
scroll-m-44scroll-margin: 11rem; /* 176px */
scroll-mx-44scroll-margin-left: 11rem; /* 176px */ scroll-margin-right: 11rem; /* 176px */
scroll-my-44scroll-margin-top: 11rem; /* 176px */ scroll-margin-bottom: 11rem; /* 176px */
scroll-ms-44scroll-margin-inline-start: 11rem; /* 176px */
scroll-me-44scroll-margin-inline-end: 11rem; /* 176px */
scroll-mt-44scroll-margin-top: 11rem; /* 176px */
scroll-mr-44scroll-margin-right: 11rem; /* 176px */
scroll-mb-44scroll-margin-bottom: 11rem; /* 176px */
scroll-ml-44scroll-margin-left: 11rem; /* 176px */
scroll-m-48scroll-margin: 12rem; /* 192px */
scroll-mx-48scroll-margin-left: 12rem; /* 192px */ scroll-margin-right: 12rem; /* 192px */
scroll-my-48scroll-margin-top: 12rem; /* 192px */ scroll-margin-bottom: 12rem; /* 192px */
scroll-ms-48scroll-margin-inline-start: 12rem; /* 192px */
scroll-me-48scroll-margin-inline-end: 12rem; /* 192px */
scroll-mt-48scroll-margin-top: 12rem; /* 192px */
scroll-mr-48scroll-margin-right: 12rem; /* 192px */
scroll-mb-48scroll-margin-bottom: 12rem; /* 192px */
scroll-ml-48scroll-margin-left: 12rem; /* 192px */
scroll-m-52scroll-margin: 13rem; /* 208px */
scroll-mx-52scroll-margin-left: 13rem; /* 208px */ scroll-margin-right: 13rem; /* 208px */
scroll-my-52scroll-margin-top: 13rem; /* 208px */ scroll-margin-bottom: 13rem; /* 208px */
scroll-ms-52scroll-margin-inline-start: 13rem; /* 208px */
scroll-me-52scroll-margin-inline-end: 13rem; /* 208px */
scroll-mt-52scroll-margin-top: 13rem; /* 208px */
scroll-mr-52scroll-margin-right: 13rem; /* 208px */
scroll-mb-52scroll-margin-bottom: 13rem; /* 208px */
scroll-ml-52scroll-margin-left: 13rem; /* 208px */
scroll-m-56scroll-margin: 14rem; /* 224px */
scroll-mx-56scroll-margin-left: 14rem; /* 224px */ scroll-margin-right: 14rem; /* 224px */
scroll-my-56scroll-margin-top: 14rem; /* 224px */ scroll-margin-bottom: 14rem; /* 224px */
scroll-ms-56scroll-margin-inline-start: 14rem; /* 224px */
scroll-me-56scroll-margin-inline-end: 14rem; /* 224px */
scroll-mt-56scroll-margin-top: 14rem; /* 224px */
scroll-mr-56scroll-margin-right: 14rem; /* 224px */
scroll-mb-56scroll-margin-bottom: 14rem; /* 224px */
scroll-ml-56scroll-margin-left: 14rem; /* 224px */
scroll-m-60scroll-margin: 15rem; /* 240px */
scroll-mx-60scroll-margin-left: 15rem; /* 240px */ scroll-margin-right: 15rem; /* 240px */
scroll-my-60scroll-margin-top: 15rem; /* 240px */ scroll-margin-bottom: 15rem; /* 240px */
scroll-ms-60scroll-margin-inline-start: 15rem; /* 240px */
scroll-me-60scroll-margin-inline-end: 15rem; /* 240px */
scroll-mt-60scroll-margin-top: 15rem; /* 240px */
scroll-mr-60scroll-margin-right: 15rem; /* 240px */
scroll-mb-60scroll-margin-bottom: 15rem; /* 240px */
scroll-ml-60scroll-margin-left: 15rem; /* 240px */
scroll-m-64scroll-margin: 16rem; /* 256px */
scroll-mx-64scroll-margin-left: 16rem; /* 256px */ scroll-margin-right: 16rem; /* 256px */
scroll-my-64scroll-margin-top: 16rem; /* 256px */ scroll-margin-bottom: 16rem; /* 256px */
scroll-ms-64scroll-margin-inline-start: 16rem; /* 256px */
scroll-me-64scroll-margin-inline-end: 16rem; /* 256px */
scroll-mt-64scroll-margin-top: 16rem; /* 256px */
scroll-mr-64scroll-margin-right: 16rem; /* 256px */
scroll-mb-64scroll-margin-bottom: 16rem; /* 256px */
scroll-ml-64scroll-margin-left: 16rem; /* 256px */
scroll-m-72scroll-margin: 18rem; /* 288px */
scroll-mx-72scroll-margin-left: 18rem; /* 288px */ scroll-margin-right: 18rem; /* 288px */
scroll-my-72scroll-margin-top: 18rem; /* 288px */ scroll-margin-bottom: 18rem; /* 288px */
scroll-ms-72scroll-margin-inline-start: 18rem; /* 288px */
scroll-me-72scroll-margin-inline-end: 18rem; /* 288px */
scroll-mt-72scroll-margin-top: 18rem; /* 288px */
scroll-mr-72scroll-margin-right: 18rem; /* 288px */
scroll-mb-72scroll-margin-bottom: 18rem; /* 288px */
scroll-ml-72scroll-margin-left: 18rem; /* 288px */
scroll-m-80scroll-margin: 20rem; /* 320px */
scroll-mx-80scroll-margin-left: 20rem; /* 320px */ scroll-margin-right: 20rem; /* 320px */
scroll-my-80scroll-margin-top: 20rem; /* 320px */ scroll-margin-bottom: 20rem; /* 320px */
scroll-ms-80scroll-margin-inline-start: 20rem; /* 320px */
scroll-me-80scroll-margin-inline-end: 20rem; /* 320px */
scroll-mt-80scroll-margin-top: 20rem; /* 320px */
scroll-mr-80scroll-margin-right: 20rem; /* 320px */
scroll-mb-80scroll-margin-bottom: 20rem; /* 320px */
scroll-ml-80scroll-margin-left: 20rem; /* 320px */
scroll-m-96scroll-margin: 24rem; /* 384px */
scroll-mx-96scroll-margin-left: 24rem; /* 384px */ scroll-margin-right: 24rem; /* 384px */
scroll-my-96scroll-margin-top: 24rem; /* 384px */ scroll-margin-bottom: 24rem; /* 384px */
scroll-ms-96scroll-margin-inline-start: 24rem; /* 384px */
scroll-me-96scroll-margin-inline-end: 24rem; /* 384px */
scroll-mt-96scroll-margin-top: 24rem; /* 384px */
scroll-mr-96scroll-margin-right: 24rem; /* 384px */
scroll-mb-96scroll-margin-bottom: 24rem; /* 384px */
scroll-ml-96scroll-margin-left: 24rem; /* 384px */

Basic usage

스크롤 마진 설정하기

스냅 컨테이너 내부의 아이템 주변에 스크롤 오프셋을 설정하려면 scroll-mt-*, scroll-mr-*, scroll-mb-*, scroll-ml-* 유틸리티를 사용하세요.

이미지 그리드에서 스크롤을 해보면 예상된 동작을 확인할 수 있습니다

<div class="snap-x ...">
  <div class="scroll-ml-6 snap-start ...">
    <img src="https://images.unsplash.com/photo-1604999565976-8913ad2ddb7c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
  </div>
  <div class="scroll-ml-6 snap-start ...">
    <img src="https://images.unsplash.com/photo-1540206351-d6465b3ac5c1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
  </div>
  <div class="scroll-ml-6 snap-start ...">
    <img src="https://images.unsplash.com/photo-1622890806166-111d7f6c7c97?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
  </div>
  <div class="scroll-ml-6 snap-start ...">
    <img src="https://images.unsplash.com/photo-1590523277543-a94d2e4eb00b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
  </div>
  <div class="scroll-ml-6 snap-start ...">
    <img src="https://images.unsplash.com/photo-1575424909138-46b05e5919ec?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
  </div>
</div>

음수 값 사용하기

스크롤 마진에 음수 값을 사용하려면 클래스 이름 앞에 대시(-)를 붙여 음수 값으로 변환합니다.

<div class="-scroll-ml-6 snap-start ...">
  <!-- ... -->
</div>

논리적 속성 사용하기

scroll-ms-*scroll-me-* 유틸리티를 사용하여 scroll-margin-inline-startscroll-margin-inline-end 논리적 속성을 설정할 수 있습니다. 이 속성들은 텍스트 방향에 따라 왼쪽 또는 오른쪽에 매핑됩니다.

이미지 그리드에서 스크롤을 해보면 예상된 동작을 확인할 수 있습니다

왼쪽에서 오른쪽으로

오른쪽에서 왼쪽으로

<div dir="ltr">
  <div class="snap-x ...">
    <div class="scroll-ms-6 snap-start ...">
      <img src="https://images.unsplash.com/photo-1604999565976-8913ad2ddb7c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
    </div>
    <!-- ... -->
  </div>
</div>

<div dir="rtl">
  <div class="snap-x ...">
    <div class="scroll-ms-6 snap-start ...">
      <img src="https://images.unsplash.com/photo-1604999565976-8913ad2ddb7c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" />
    </div>
    <!-- ... -->
  </div>
</div>

더 세밀한 제어를 원한다면 LTR 및 RTL 수정자를 사용하여 현재 텍스트 방향에 따라 특정 스타일을 조건부로 적용할 수 있습니다.


Applying conditionally

호버, 포커스 및 기타 상태

Tailwind는 상태에 따라 유틸리티 클래스를 조건부로 적용할 수 있게 해줍니다. 예를 들어, hover:scroll-m-0 를 사용하면 scroll-m-0 유틸리티를 hover 상태에서만 적용할 수 있습니다.

<div class="scroll-m-8 hover:scroll-m-0">
  <!-- ... -->
</div>

사용 가능한 모든 상태 수정자 목록은 호버, 포커스, & 기타 상태 문서를 참고하세요.

브레이크포인트와 미디어 쿼리

여러분은 반응형 브레이크포인트, 다크 모드, prefers-reduced-motion 등과 같은 미디어 쿼리를 타겟팅하기 위해 변형 수식어를 사용할 수 있습니다. 예를 들어, md:scroll-m-0를 사용하면 중간 화면 크기 이상에서만 scroll-m-0 유틸리티를 적용할 수 있습니다.

<div class="scroll-m-8 md:scroll-m-0">
  <!-- ... -->
</div>

더 자세히 알아보려면 반응형 디자인, 다크 모드, 그리고 다른 미디어 쿼리 수식어에 대한 문서를 확인하세요.


Using custom values

테마 커스터마이징

기본적으로 Tailwind의 스크롤 마진 스케일은 기본 간격 스케일을 사용합니다. tailwind.config.js 파일에서 theme.spacing 또는 theme.extend.spacing을 수정하여 간격 스케일을 커스터마이징할 수 있습니다.

tailwind.config.js
module.exports = {
  theme: {
    extend: {
      spacing: {
        '96': '24rem',
      }
    }
  }
}

또는 tailwind.config.js 파일에서 theme.scrollMargin 또는 theme.extend.scrollMargin을 수정하여 스크롤 마진 스케일만 커스터마이징할 수도 있습니다.

tailwind.config.js
module.exports = {
  theme: {
    extend: {
      scrollMargin: {
        '96': '24rem',
      },
    }
  }
}

기본 테마 커스터마이징에 대해 더 알아보려면 테마 커스터마이징 문서를 참고하세요.

임의 값

테마에 포함시키기 어려운 scroll-margin 값을 일회성으로 사용해야 한다면, 대괄호를 사용해 임의의 값으로 속성을 즉석에서 생성할 수 있습니다.

<div class="scroll-m-[24rem]">
  <!-- ... -->
</div>

임의 값 지원에 대해 더 알아보려면 임의 값 문서를 참고하세요.