Interactive online courses HTML Academy
2026-03-09 12:56 Diff
  • index.html
  • style.css

HTML

<!DOCTYPE html> <html lang="en"> <head> <title>The transition-delay property</title> <meta charset="utf-8"> <link rel="stylesheet" href="material.css"> <link rel="stylesheet" href="style.css"> </head> <body class="theory-theme"> <button class="fab fab-play" type="button">&#58884;</button> <div class="squares"> <span class="square"></span> <span class="square"></span> <span class="square"></span> <span class="square"></span> </div> </body> </html>

Thanks! We’ll fix everything at once!

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%

  1. Assign a smooth transition for the transform property of the .square squares that has a duration of transition-duration: 500ms.
  2. For the first square, assign a transition delay of transition-delay: 50ms, and assign one of 100ms for the second square.
  3. Then assign a delays of 150ms and 200ms for the third and fourth squares, respectively.

Click the .fab-play button to toggle the square-active class for the squares.