There is such a small program that dynamically changes a word inside svg. It is necessary to achieve such an effect that, regardless of the word or group of words, they are always stretched along the entire height (since they are rotated 90 degrees) by changing the font size (not changing the distance between the letters).
let text = document.getElementById("text");
let input = document.getElementById("input");
function changeWord() {
text.innerHTML = input.value;
}
* {
padding: 0;
margin: 0;
}
svg {
height: 100vh;
font-family: roboto, sans-serif;
}
input {
position: fixed;
top: 0;
right: 0;
border: 2px solid red;
}
<svg viewBox="0 0 12 75">
<text id="text" transform="rotate(90 0 0)">Skibidi</text>
</svg>
<input value="Skibidi" oninput="changeWord()" id="input" type="text">