Interactive online courses HTML Academy
2026-03-09 10:54 Diff

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Landing, step 2

The landing was successful, none of our astronauts was hurt. Shut down the engine, we have arrived!

Comments

  • index.html
  • style.css

HTML

<!DOCTYPE html> <html lang="en"> <head> <title>Landing, step 2</title> <meta charset="utf-8"> <link rel="stylesheet" href="epoch5.css"> <link rel="stylesheet" href="style.css"> </head> <body class="cosmic"> <div class="moon"></div> <div class="rocket arrival"> <span class="fuel"></span> </div> </body> </html>

CSS

.rocket { animation-name: fly; animation-duration: 1.5s; animation-timing-function: ease-out; animation-fill-mode: forwards; } @keyframes fly { to { transform: translate(240px, 260px) rotate(-30deg); } }

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

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

100%

  1. Create an animation fire, containing a frame to with a property opacity: 0,
  2. Then assign this animation to our fuel .fuel: duration 1s, start delay 1s, keep the state after animation.