Learn CSS Animation by Building a Ferris Wheel - Step 9

*please help me out anybody?
i cnt figure d error

.line:ntn-of-type(2){
transform-origin: rotate(60deg);
}

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<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>
/* file: styles.css */
.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%;
}

.line:ntn-of-type(2){
transform-origin: rotate(60deg);
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn CSS Animation by Building a Ferris Wheel - Step 9

Link to the challenge:

Hey! The bug is here:

first, you’ve misspelled “nth” and second is that there is no property named “transform-origin”.

the transform property in CSS is used to transform or manipulate the way your element looks, for example you can rotate them or scale them or do all kinds o f interesting stuff with it. so the property name name is “transform”

Hope this helps! :smile:

God bless you for me

1 Like