Open this example in the interactive library
Source code
<style>
.demo {
width: fit-content;
translate: 1.25rem 0;
}
</style>
<div class="demo">Translate along the X axis</div>
Translate along the X axis with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
width: fit-content;
translate: 1.25rem 0;
}
</style>
<div class="demo">Translate along the X axis</div>