1.8 KiB
1.8 KiB
id | title | challengeType | dashedName |
---|---|---|---|
6140d10d50636e14695013b2 | Passo 9 | 0 | step-9 |
--description--
Crie um seletor para o segundo elemento .line
. Defina a propriedade transform
para rotate(60deg)
.
Lembre-se que a propriedade transform
permite que você manipule a forma de um elemento. Neste caso, usar o valor de rotate(60deg)
girará o elemento em torno de seu ponto transform-origin
em 60 graus no sentido horário.
--hints--
Você deve criar um seletor .line:nth-of-type(2)
.
assert(new __helpers.CSSHelp(document).getStyle('.line:nth-of-type(2)'));
O seletor .line:nth-of-type(2)
deve ter a propriedade transform
definida para rotate(60deg)
.
assert(new __helpers.CSSHelp(document).getStyle('.line:nth-of-type(2)')?.transform === 'rotate(60deg)');
--seed--
--seed-contents--
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Ferris Wheel</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="wheel">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
</div>
</body>
</html>
.wheel {
border: 2px solid black;
border-radius: 50%;
margin-left: 50px;
position: absolute;
height: 55vw;
width: 55vw;
max-width: 500px;
max-height: 500px;
}
.line {
background-color: black;
width: 50%;
height: 2px;
position: absolute;
top: 50%;
left: 50%;
transform-origin: 0% 0%;
}
--fcc-editable-region--
--fcc-editable-region--