Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-ferris-wheel/step-003.md
Nicholas Carrigan (he/him) 229fa686ca feat(curriculum): css ferris wheel (#43460)
* feat: initial infra

* feat: initial step breakdown

* feat: expand instructions

* feat: write tests!

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: more tweaks

* chore: ferris → Ferris

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: no lang

* chore: fix lint issues

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-11-09 18:03:21 +00:00

1.6 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
6140cbeec34e970dfe75e710 Step 3 0 step-3

--description--

Create a selector for your .wheel element. Start by setting the border to 2px solid black, the border-radius to 50%, and the margin-left to 50px.

--hints--

You should have a .wheel selector.

assert(new __helpers.CSSHelp(document).getStyle('.wheel'));

Your .wheel selector should have a border property set to 2px solid black.

assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.border === '2px solid black');

Your .wheel selector should have a border-radius property set to 50%.

assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.borderRadius === '50%');

Your .wheel selector should have a margin-left property set to 50px.

assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.marginLeft === '50px');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title> Learn CSS Animations by Building a 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>
--fcc-editable-region--

--fcc-editable-region--