To rotate a piece of text, you can use the transform property.
Rotations move clockwise, so to rotate text counter‑clockwise you use a negative degree value.
The transform-origin sets the pivot point, and translate helps reposition the text.
HTML Code
<h2 class="rotate-left">Text Transformation</h2>
CSS Code
.rotate-left {
font-size: 2.5rem;
writing-mode: vertical-rl;
transform-origin: top left;
transform: rotateZ(180deg) translate(-3rem, -100%);
border-left: solid 4px var(--accent-color-600);
}