JSFiddle - React, Tailwind, and code Playground

by Sunny SM

HTML

<div class="circle">
  <div class="text">
    <p>hello</p>
  </div>
</div>

CSS

.body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.circle {
  position: relative;
  width: 200px;
  height: 200px;
  background: red;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#text {
  width: 100%;
  height: 100%;
  position: absolute;
  animation: anim 10s linear infinite;
}
#text span {
  position: absolute;
  left: 50%;
  font-size: 1.2em;
  transform-origin: 0 100px;
}

JavaScript

const renderCircle = () => {
	const textLine = "Susytem architecture development ----------------------- Expert budg"
  const textComp = document.getELementById("#text p");
  textComp.innerHTML = textLine.split("").map((char, i) => {
    return '<span style="transform:rotate("' + i * 8.3 +')">' + char + '</span>";
  }).join("");
}
renderCircle();