In this example below you will see how to do a dafna with some HTML / CSS and Javascript

This awesome code was written by nogaanaby, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright nogaanaby ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

  <meta charset="UTF-8">
      <link rel="stylesheet" href="css/style.css">



  <div id="elements"> 
   <h2 id="box"> box </h2>
   <h2 id="dog"> dog </h2>
   <h2 id="cup"> cup </h2>
   <h2 id="shuger"> shuger </h2>



/*Downloaded from https://www.codeseek.co/nogaanaby/dafna-wPYOxr */
  background-color: yellow;
  background-color: #ff764d;
  background-color: #ff7688;
  background-color: #ff47d6;
  width: 50%;
  background-color: #f2d2f0;