Open this example in the interactive library
Source code
<style>
.demo {
width: fit-content;
transform-origin: left center;
rotate: 8deg;
}
</style>
<div class="demo">Change the origin of rotation</div>
Change the origin of rotation with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
width: fit-content;
transform-origin: left center;
rotate: 8deg;
}
</style>
<div class="demo">Change the origin of rotation</div>