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

HTML

<!DOCTYPE html> <html lang="en"> <head> <title>Color Transitions in px</title> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <div class="flower"> <div class="leaf leaf-top-left"></div> <div class="leaf leaf-top-right"></div> <div class="leaf leaf-bottom-left"></div> <div class="leaf leaf-bottom-right"></div> </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%

Finish painting the flower using sharp gradients:

  1. Assign a gradient at an angle of 45° to the top right leaf.
  2. Assign a gradient at an angle of 135° to the lower right leaf.
  3. Assign a gradient at an angle of 225° to the lower left leaf.

The colors for the leaves are indicated in the comments in the CSS. The dimensions of the transitions are the same as the ones used for the first leaf.