teacher

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

Thumbnail
This awesome code was written by alangecodemaster, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright alangecodemaster ©
  • HTML
  • CSS
  • JavaScript
    <div class="container">
  <div class="teacher">
    <div class="head"></div>
    <div class="body"></div>
    <div class="left-arm"></div>
    <div class="right-arm">
      <div class="arm">
        <div class="pointer"></div>
      </div>
    </div>
  </div>
  <div class="board"></div>
  <div class="desk"></div>
</div>


/*Downloaded from https://www.codeseek.co/alangecodemaster/teacher-erpEZL */
    .container{
  border: 1px solid white;
  width: 500px;
  height: 500px;
  position: relative;
  margin-left: 50px;
}
.head{
  height: 125px;
  width: 125px;
  background: black;
  border-radius: 50%;
  margin-left: 10px;
}
.body{
  height: 200px;
  width: 150px;
  background: black;
  margin-top: 15px;
  border-radius: 20px 20px 0 0;
}
.left-arm{
  height: 175px;
  position: relative;
  width: 40px;
  background: black;
  right: 30px;
  bottom: 204px;
  border-radius: 50px;
  transform: rotate(20deg);
}
.teacher{
  margin-left:55px;
  margin-top: 30px;
}
.right-arm{
  height: 125px;
  position: relative;
  width: 40px;
  background: black;
  left: 130px;
  bottom: 377px;
  border-radius: 50px;
  transform: rotate(-20deg);
}
.arm{
  height: 125px;
  position: relative;
  width: 40px;
  background: black;
  transform: rotate(45deg);
  border-radius: 50px;
  left: 30px;
  top: 29px;
}
.pointer{
  width: 5px;
  height: 100px;
  background: black;
  position: relative;
  z-index: 500;
  top: -100px;
  left: 18px;
  border-radius: 50px;
}
.board{
  border: 10px solid black;
  width: 250px;
  height: 150px;
/*   background: black; */
  position: absolute;
  top: 10px;
  left: 220px;
}
.desk{
  width: 283px;
  height: 125px;
  background: black;
  position: absolute;
  top: 375px;
}


/*Downloaded from https://www.codeseek.co/alangecodemaster/teacher-erpEZL */
    

Comments