JSFiddle - React, Tailwind, and code Playground
by Artem Shelengovskiy
HTML
<div class="wheel col-lg-6 col-md-6 col-xs-6">
<div class="wheel-text" id="wtext">
<h1>АНИМИРОВАННЫЙ РЕЖИМ</h1>
<br>
<h2>Наглядная демострация доступных прокату игр </h2>
</div>
<div class="wheel-ball-2 col-lg-2" tag data-word="Слово"></div>
CSS
.wheel-text > h1 {
font-size: 29px;
color: white;
text-align: center;
font-family:"Pancetta Pro";
font-weight: 700;
}
.wheel-text > h2 {
font-size: 25px;
color: white;
text-align: center;
font-family:"Pancetta Pro";
margin-top: -3%;
}
.wheel-text {
width: 350px;
height: 150px;
margin: auto;
margin-top: 26%;
font-weight: 700;
font-family:
}
.wheel {
border: 4px solid #ff7e00;
width: 640px;
height: 450px;
border-radius: 32em/22em;
margin: auto;
margin-top: 10%;
background: #131313;
}
.wheel-ball-1 {
border: 5px solid #ff7e00;
width: 110px;
height: 110px;
border-radius: 16em/16em;
margin-top: -51%;
margin-left: 8%;
background: #131313;
text-align: center;
padding-top: 3.2%;
}
.wheel-ball-2 {
border: 5px solid #ff7e00;
width: 110px;
height: 110px;
border-radius: 16em/16em;
margin-top: 10%;
margin-left: 40%;
background: #131313;
text-align: center;
padding-top: 3.9%;
}
JavaScript
$(document).on("click",".wheel-ball-2", function () {
$('.wheel-text h2').text(this.dataset.word);
});