Assignment - Create your own cat

I like dogs a lot more than cats so I made Crypto Doggies and added a blinking feature to the eyes


HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>CryptoDoggy</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="container">
            <div class="bubble">
                <div class="ear-left">
                    <div class="ear"></div>
                </div>
                <div class="ear-right">
                    <div class="ear"></div>
                </div>
                <div class="head"></div>
                <div class="dog"></div>
                <div class="eyes"></div>
                <div class="nose"></div>
                <div class="mouth left"></div>
                <div class="mouth right"></div>
                <div class="tongue"></div>
            </div>
            <div class="bubbles"></div>
        </div>
    </body>
</html>

CSS

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: transparent;
}
.container{
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: #fda47bd9;
    border: 1px solid white;
}
.bubble{
    width: 360px;
    height: 360px;
    background: #0084ffa8;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.bubble:before, .bubble:after{
    content: '';
    width: 120px;
    height: 120px;
    background: inherit;
    border-radius: inherit;			
    position: inherit;
}
.bubble:before{
    right: -40px;
    top: 20px;
}
.bubble:after{
    bottom: -30px;
    left: 40px;
    transform: scale(1.4);
}
.bubbles{
    width: 40px;
    height: 40px;
    background: #0084ffa8;
    border-radius: 50%;
    position: absolute;
    right: 170px;
    top: 80px;
}
.bubbles:before, .bubbles:after{
    content: '';
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: inherit;
    position: inherit;
}
.bubbles:before{
    left: -330px;
    bottom: -320px;
    transform: scale(1.5);
}
.bubbles:after{
    left: -85px;
    bottom: -410px;
    transform: scale(.8);
}
.dog{
    width: 220px;
    height: 90px;
    background: #fcefcd;
    border-radius: 60px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;
    margin: auto;
    z-index: 1;
    overflow: hidden;
}
.head{
    width: 170px;
    height: 120px;
    background: #fcefcd;
    border-radius: 70px 70px 0 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    margin: auto;
    overflow: hidden;
}
/*patch*/
.dog:after, .head:after{
    content: '';
    width: 110px;
    height: 130px;
    border-radius: 50%;
    background: #fcefcd;
    position: absolute;
}
.dog:after{
    left: 0;
    bottom: 55px;
}
.head:after{
    left: -25px;
    bottom: -30px;
}
.eyes{
    width: 16px;
    height: 16px;
    background: #0084ffa8;
    border-radius: 50%;
    position: absolute;
    left: 140px;
    bottom: 175px;
    z-index: 1;
    box-shadow: 65px 0 #0084ffa8;
    animation: blink 3s infinite linear;
}
@keyframes blink{
    4%{
        transform: scaleY(.1);
    }
    15%{
        transform: scaleY(1);
    }
}
.nose{
    width: 44px;
    height: 24px;
    background: #89766c;
    border-radius: 20% 20% 50% 50% / 25% 25% 70% 70%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 145px;
    margin: auto;
    z-index: 3;
}
.nose:before{
    content: '';
    width: 24px;
    height: 10px;
    background: #a58f82;
    border-radius: inherit;
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    margin: auto;
}
.mouth{
    width: 50px;
    height: 25px;
    background: #9a7b6a;
    border: 5px solid #9a7b6a;
    border-top: 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: absolute;
    bottom: 125px;			
    z-index: 2;		
}
.mouth:before{
    content: '';
    width: 5px;
    height: 5px;
    background: #9a7b6a;
    border-radius: 50%;
    position: inherit;
    top: -2.5px;
}
.mouth.left{
    left: 132.5px;
}
.mouth.right{
    right: 132.5px;
}
.left.mouth:before{
    left: -5px;
}
.right.mouth:before{
    right: -5px;
}
.tongue{
    width: 36px;
    height: 40px;
    background: #ffc7d0;
    border-radius: 0 0 50px 50px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 105px;
    margin: auto;
    z-index: 1;
}
.tongue:before{
    content: '';
    width: 5px;
    height: 36px;
    background: #fea4b0;
    border-radius: 10px;
    position: inherit;
    left: 0;
    right: 0;
    margin: auto;
}
.ear{
    position: absolute;
    background: #89766c;
    z-index: 1;
}
.ear:before,
.ear:after{
    content: '';
    position: inherit;
    background: inherit;
}
.ear,
.ear:before,
.ear:after{
    width: 50px;
    height: 50px;
    border-top-right-radius: 30%;
}
.ear{
    transform: rotate(-60deg) skewX(-30deg) scale(1, .866);
}
.ear:before{
    transform: rotate(-135deg) skewX(-45deg) scale(1.414, .707) translate(0, -50%);
}
.ear:after{
    transform: rotate(135deg) skewY(-45deg) scale(.707, 1.414) translate(50%);
}
.ear-left{
    position: absolute;
    left: 104px;
    top: 56px;
    transform: rotate(30deg);
    z-index: 1;
}
.ear-right{
    position: absolute;
    right: 150px;
    top: 80px;
    transform: rotate(-30deg);
    z-index: 1;
}
3 Likes

One way is to do a screen shot! :star_struck:

1 Like

my cat is an english cop

index.html

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="./styles.css">
    <title></title>
  </head>
  <body>



    <div id="cat">


    <div class="hat"></div>

    <div class="star_1"></div>

    <div class="star_2"></div>

    <div class="ears">
         <div class="ear left_ear"></div>
         <div class="ear right_ear"></div>
       </div>





      <div id="body">

        <div id="zebra_head_1"></div>

        <div id="zebra_head_2"></div>

        <div id="zebra_head_3"></div>


   <div class="eyes">

           <div class="eye">

              <div class="pupils"></div>
           </div>
            <div class="eye">
                  <div class="pupils"></div>
            </div>
        </div>



        <div class="nose">
           <div class="nose-reflection"></div>
        </div>


      <div class="mouth">
          <div class="teeth"></div>
          <div class="teeth"></div>
          <div class="teeth"></div>
        </div>



        <div class="tail"></div>



      <div class="body_cat"></div>

         <div id="zebra_0"></div>
         <div id="zebra_1"></div>
         <div id="zebra_2"></div>
         <div id="zebra_3"></div>
         <div id="zebra_4"></div>
         <div id="zebra_5"></div>
          <div id="zebra_6"></div>

       <div class="navel"></div>

       <div id="leg_left"></div>

       <div id="right_leg"></div>

</div>
 </div>
</html>

styles.css




#cat{
  position: relative;
  margin-left: 30%;
}


#body{
    position: relative;
  background-color: #f2bf08;
  width: 200px;
  height:223px;
  border-radius: 50%;
  z-index: 2;

}


.eyes{
    position: relative;
    top: 30px;
    display: flex;
    z-index: 4;

}

.eye{
  position: relative;
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin:25px;


}


.pupils{
  position: relative;
  background-color: black;
  width: 30px;
  height: 30px;
  border-radius: 50%;
   position: relative;
  top: 10px;
  left: 10px;
 }



 .ears{

    display:flex;
    z-index:1;
 }



 .ear{

   background-color: #cbcb22;
   height: 100px;
   width: 80px;
   position:relative;

   margin: 10px;
   border-radius: 30%;

 }


 .left_ear{
    border-radius: 90% 0 90% 0;
    transform: scale(-1, 1) rotate(7deg);
    top: 80px;
    left: -9px;
    height: 80px;
   position:relative;
 }


 .right_ear{
    border-radius: 90% 0 90% 0;
    transform: scale(1, -1) rotate(70deg);
    top: 60px;
    height: 80px;
    position:relative;
 }


 .zebra{
   position: absolute;

   background-color: #847e85;
   top:45px;
   left:6px;
 }

 #zebra1{
   width: 150px;
   height: 20px;
   margin-left:26px;

   position: relative;
 }



 .nose{
   background-color: #565659;
   width: 50px;
   height: 50px;
   border-radius: 50% 0 90% 0;
   position:relative;
   left:76px;
   top:115px;
   transform:  rotate(45deg);
   position: absolute;
 }


 .nose-reflection{
    background-color: #ebbef0;
    width: 30px;
    height: 20px;
    border-radius: 50% 0 90% 0;
    top:10px;
 }


 .zebras{
   background-color: #847e85;
   display: block;
 }

 .zebra_left{
   width: 30px;
   height: 10px;
 }


 .zebra_left_1{
     margin-top: 5px;
     width:25px;
 }

 .zebra_left_2{
     margin-top: 5px;
 }




 .mouth{
   width: 80px;
   height: 30px;
   background-color: black;
   margin-left: 60px;
   margin-top: 40px;
   border-radius: 50% 0 30% 0;
   display: flex;
  }

  .teeth{
    background-color: white;
    width: 30px;
    height: 20px;
    border-radius: 50% 0 90% 0;
    top:10px;
  }


  .body_cat{
    width: 280px;
    height:280px;
    background-color: #f2bf08;
    border-radius: 30% 30% 30% 30%;
    transform:   rotate(140deg);
    top:173px;
    margin-top:39px;
   margin-left:-50px;
   position:absolute;
   z-index: 0;
  }

  .tail{
    position:absolute;
    width: 154px;
    height:50px;
    background-color: #c89f0a;
    top:327px;
    left:200px;
    border-radius: 90% 0 90% 0;
    transform: scale(1, -1) rotate(70deg);
  }








  .navel{
      background-color: black;
      position: absolute;
      top:422px;
      left:76px;
      width:25px;
      height:25px;
      border-radius: 45% ;
  }



  #leg_left{
      background-color: #b49010;
      position: absolute;
      top:476px;
      left:6px;
      width:38px;
      height:95px;
      border-radius: 30% 15% 30% 15% ;
      transform:  rotate(90deg);
  }


  #right_leg{
      background-color: #b49010;
      position: absolute;
      top:476px;
      left:122px;
      width:38px;
      height:95px;
      border-radius: 30% 15% 30% 15% ;
      transform:  rotate(90deg);
  }



  #zebra_0{
    top:85px;
   height:25px;
   background-color: #a78b03;
   width: 25px;
   z-index: 1;
   position:relative;
   border-radius: 40% 20% 50% 10%;
   margin-left: 50px;
  }



  #zebra_1{
    top:115px;
   height:25px;
   background-color: #a78b03;
   width: 25px;
   z-index: 1;
   position:relative;
   border-radius: 40% 20% 50% 10%;
  }


  #zebra_1{
    top:115px;
   height:25px;
   background-color: #a78b03;
   width: 25px;
   z-index: 1;
   position:relative;
   border-radius: 40% 20% 50% 10%;
  }

  #zebra_6{
    top:-54px;
   height:25px;
   background-color: #a78b03;
   width: 25px;
   z-index: 1;
   position:relative;
   border-radius: 40% 20% 50% 10%;
   left:115px;
   margin-left:50px;
  }



#zebra_2{
  top:115px;
 height:25px;
 background-color: #a78b03;
 width: 25px;
 z-index: 1;
 position:relative;
 border-radius: 40% 20% 50% 10%;
 margin-left:50px;
}



#zebra_3{
  top:75px;
 height:25px;
 background-color: #a78b03;
 width: 25px;
 z-index: 1;
 position:relative;
 border-radius: 40% 20% 50% 10%;
 margin-left:105px;
}

#zebra_4{
  top:125px;
 height:25px;
 background-color: #a78b03;
 width: 25px;
 z-index: 1;
 position:relative;
 border-radius: 40% 20% 50% 10%;
 margin-left:155px;
}


#zebra_5{
  top:125px;
 height:25px;
 background-color: #a78b03;
 width: 25px;
 z-index: 1;
 position:relative;
 border-radius: 40% 20% 50% 10%;
 margin-left:5px;
}


.hat{
  background-color: #220124;
  height:95px;
  width:72px;
  z-index: 3;
  position: relative;
  top:110px;
  left:64px;
  border-radius: 40% 40% 10% 10%;

}


.star_1{
  background-color: yellow;
  height:25px;
  width:25px;
  position: absolute;
  z-index: 4;
  top:144px;
  left:88px;
  transform:rotate(128deg);
}

.star_2{
  background-color: yellow;
  height:25px;
  width:25px;
  position: absolute;
  z-index: 5;
  top:144px;
  left:88px;
  transform:rotate(84deg);
}


#zebra_head_1{
  position: relative;
background-color: grey;
width: 196px;
height:8px;
z-index: 3;
top:80px;
left:3px;
}


#zebra_head_2{
  position: relative;
background-color: grey;
width: 196px;
height:8px;
z-index: 3;
top:83px;
left:3px;
}

#zebra_head_3{
  position: relative;
background-color: grey;
width: 196px;
height:8px;
z-index: 3;
top:85px;
left:3px;
}
![my-cat|328x500](upload://viGpmTWSI3GgIMY3OGOdy1A4hUx.png) 
2 Likes

It kind of looks like a catā€¦

#body{
    background-color: rgb(255,224,122);
    width: 200px;
    height: 200px;
    border-radius: 50%;
}
.eyes{
    position: relative;
    top: 30px;
    display: flex;
}

.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin:25px;
    position: relative;
}

.pupils{
    background-color:black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    left: 15px;

}

.ears{
    position: relative;
}

.ear{
    border-radius: 90% 0 90% 0;
    background-color: rgb(255,224,122);
    height: 100px;
    width: 100px;
    position: absolute;

}

.left_ear{
    transform: scale(1,-1);
    left: 0;
}

.right_ear{
    left:100px;
}


.nose {
    position: absolute;
    top: 115px;
    left: 95px;
    width: 0;
    height: 0;
    border-right: 14px solid rgba(255, 255, 255, 0);
    border-left: 14px solid rgba(255, 255, 255, 0);
    border-top: 14px solid #e57373;
    border-radius: 40%;
    z-index: 100;
}

.mouth-contour {
    position: absolute;
    top: 125;
    left: 40;
    background: #fff3e0;
    width: 140px;
    height: 70px;
    -webkit-border-radius: 55% 55% 60% 60%;
    border-radius: 55% 55% 60% 60%;
}
.mouth-left, .mouth-right {
    position: absolute;
    top: 140px;
    width: 23px;
    height: 23px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 4px solid #373737;
    border-right: 3px solid rgba(255, 255, 255, 0);
    border-top: 3px solid rgba(255, 255, 255, 0);
    transform: rotate(-45deg);
}
.mouth-left {
    left: 80px;
}
.mouth-right {
    left: 108px;
}

.whiskers-left, .whiskers-right {
    position: relative;
}
.whiskers-left, .whiskers-right, .whiskers-left::after, .whiskers-right::after, .whiskers-left::before, .whiskers-right::before {
    width: 32px;
    height: 5px;
    background: #373737;
}
.whiskers-left::before, .whiskers-right::before, .whiskers-left::after, .whiskers-right::after {
    content: '';
    position: absolute;
    left: 0;
}
.whiskers-left {
    top: 44;
    left: 6px;
}
.whiskers-left::before {
    top: -16px;
    transform: rotate(15deg);
}
.whiskers-left::after {
    top: 16px;
    transform: rotate(-15deg);
}
.whiskers-right {
    top: 45;
    left: 167px;
}
.whiskers-right::before {
    top: -16px;
    transform: rotate(-15deg);
}
.whiskers-right::after {
    top: 16px;
    transform: rotate(15deg);
}

.chest {
    position: relative;
    /* left: 54px; */
    top: 76;
    width: 200;
    height: 200;
    background: rgb(255,224,122);
    border: 5px solid transparent;
    border-radius: 50% 50% 40% 40%;
    z-index: 3;
}
.chest_inner {
    content: '';
    position: relative;
    top: 50;
    left: 50;
    width: 100px;
    height: 150;
    border-radius: 50%;
    background: #fff3e0;
    z-index: 4;
}
.paw-left, .paw-right {
    position: absolute;
    top: 388px;
    width: 28px;
    height: 48px;
    background: rgb(255,224,122);
    border: none;
    border-bottom: 5px solid transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    z-index: 5;
}

.paw-right_inner {
    content: '';
    position: absolute;
    top: 10px;
    /* left: 148px; */
    width: 18;
    height: 30px;
    background: #ffcc80;
    border-radius: 45%;
    border: 5px solid transparent;
    z-index: 2;
}

.paw-left_inner {
    content: '';
    position: relative;
    top: 10;
    width: 18;
    height: 30;
    background: #ffcc80;
    border-radius: 45%;
    border: 5px solid transparent;
    z-index: 2;
}
.paw-left {
    left: 45px;
    border-radius: 0 0 45% 35%;
}
.paw-left::after {
    left: -32px;
}
.paw-right {
    left: 137px;
    border-radius: 0 0 35% 45%;
}
.paw-right::after {
    left: 16px;
}
.tail {
    position: absolute;
    top: 325;
    left: 177;
    width: 90px;
    height: 23px;
    background: rgb(255,224,122);
    border: 5px solid transparent;
    border-radius: 45%;
    z-index: 1;
    transform: rotate(-45deg);
}

<html>
    <head>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="cat">
          <div class="ears">
            <div class="ear left_ear"></div>
            <div class="ear right_ear"></div>
          </div>
          
        <div id = "body">
          <div class="eyes">
             <div class="eye">
              <div class="pupils"></div>
             </div>
             <div class="eye">
              <div class="pupils"></div>
             </div>
            </div>
            <div class="nose"></div>
            <div class="whiskers-right"></div>
            <div class="whiskers-left"></div>
             <div class="mouth-contour"></div>
             <div class="mouth-left"></div>
             <div class="mouth-right"></div>
             <div class="chest">
              <div class="chest_inner"></div>
             </div>
             <div class="paw-left"><div class="paw-left_inner"></div></div>
             <div class="paw-right"><div class="paw-right_inner"></div></div>
             <div class="tail"></div>

        </div>
    </body>
</html>
2 Likes

Hello HRMS2021

Iā€™m stuffed. My screenshot does not work lolā€¦Thanks tho

2 Likes

My cat:
image

HTML

<html>
    <head>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="dog">
            <div class="ears">
                <div class="ear left_ear">
                    <div class="inner-ear"></div>
                </div>
                <div class="ear right_ear">
                    <div class="inner-ear"></div>
                </div>
            </div>
            <div id="head">
                <div class="whisker_left whiskers one"></div>
                <div class="whisker_left whiskers"></div>
                <div class="whisker_left whiskers three"></div>
                <div class="whisker_right whiskers R-one"></div>
                <div class="whisker_right whiskers R-two"></div>
                <div class="whisker_right whiskers R-three"></div>
                <div class="eyes">
                    <div class="eye">
                        <div class="pupils">
                            <div class="pupil_reflect"></div>
                        </div>
                    </div>
                    <div class="eye">
                        <div class="pupils">
                            <div class="pupil_reflect"></div>
                        </div>
                    </div>
                </div>
                <div class="nose"></div>
                <div class="cat__mouth-left"></div>
                <div class="cat__mouth-right"></div>
                <div class="head_mark"></div>
                <div class="head_mark_2"></div>
                <div class="head_mark_3"></div>
            </div>
            <div class="body">
                <div class="leg leg-one"></div>
                <div class="leg leg-two"></div>
                <div class="leg leg-three"></div>
                <div class="leg leg-four"></div>
                <div class="belly"></div>
            </div>
            <div class="tail"></div>
            
            
        </div>
    </body>
</html>

CSS

#head{
    background-color: rgb(214, 203, 99);
    width: 210px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
.eyes{
    position: relative;
    top: -15px;
    left: 5px;
   
    display: flex;
}
.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 25px;
    position: relative;
    
}
.pupils{
    background-color: black;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    top: 8px;
    left: 8px;
    position: absolute;
}
.ears{
    position: relative;
    display: flex;
}
.ear{
    border-radius: 90% 0 90% 0;
    background-color: rgb(225, 0, 255);
    height: 100px;
    width: 100px;
    position: absolute;
}
.right_ear{
    left: 105px;
}
.left_ear{
    transform: scale(1,-1);
    left: 5;
}
.inner-ear{
    border-radius: 90% 0 90% 0;
    background-color: palevioletred;
    height: 75px;
    width: 75px;
    margin: 12.5px;
}
.body{
    border-radius: 50% 50% 25% 25%;
    background-color: rgb(212, 53, 218);
    top: 175px;
    height: 150px;
    width: 150px;
    left: 35px;
    position: absolute;
    z-index: 0;
}
.tail{
    border-radius: 100% 0% 100% 0%;
    background-color: rgb(214,203,99);
    top: 250px;
    left: 170px;
    height: 50px;
    width: 50px;
    position: absolute;
    z-index: -1;
}
.whiskers{
    background-color: black;
    border-radius: 40% 40% 40% 40%;
    height: 8px;
    width:74px;
    position: relative;
}
.whisker_left{
    top: 130px;
}
.whisker_right{
    left: 131px;
}
.one{
    transform: rotate(10deg);
    top: 125px;
}
.three{
    transform: rotate(-10deg);
    top: 135px;
}
.R-one{
    top: 101px;
    transform: rotate(-10deg);
}
.R-two{
    top: 106;
}
.R-three{
    top: 111;
    transform: rotate(10deg);
}
.nose{
    background-color: palevioletred;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 15%;
    border-top-right-radius: 15%;
    height: 14px;
    width: 15px;
    left: 95.5px;
    top: -32px;
    position: relative;
}
.cat__mouth-left, .cat__mouth-right {
    position: absolute;
    top: 120px;
    width: 19px;
    height: 19px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 4px solid  #373737;
    border-right: 3px solid rgba(255, 255, 255, 0);
    border-top: 3px solid rgba(255, 255, 255, 0);
    transform: rotate(-45deg);
}
.cat__mouth-left{
    left: 78px;
}
.cat__mouth-right{
    left: 102px;
}
.leg{
    background-color: aqua;
    position: relative;
    height: 35px;
    width: 35px;
    display: flex;
    border-radius: 50%;
    z-index: 5;
}
.leg-one{
    left: -10px;
    top: 120px;
}
.leg-two{
    left: 20px;
    top: 85px;
}
.leg-three{
    left: 95px;
    top: 50px;
}
.leg-four{
    left: 125px;
    top: 15px;
}
.belly{
    background-color: azure;
    height: 90px;
    width: 100px;
    position: relative;
    top: -90px;
    left: 25px;
    z-index: 1;
    border-radius: 40%;

}
.head_mark{
    background-color: blanchedalmond;
    height: 40px;
    width: 14px;
    position: relative;
    top: -150px;
    left: 98px;
    border-radius: 30%;

}
.head_mark_2, .head_mark_3{
    background-color: blanchedalmond;
    height: 20px;
    width: 10px;
    position: relative;
    border-radius: 30%;
}
.head_mark_2{
    top: -180px;
    left: 80px;
}
.head_mark_3{
    top: -200px;
    left: 120px;
}
.pupil_reflect{
    background-color: white;
    height: 9px;
    width: 9px;
    border-radius: 50%;
    position: relative;
    top: 22px;
    left: 22px;
}

2 Likes

Itā€™s an evil kitten!

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Document</title>
</head>
<body>
    <div class="cat">
        <div class="ears">
            <div class="ear left-ear">
                <div class="left-inner-ear"></div>
            </div>
            <div class="ear right-ear">
                <div class="right-inner-ear"></div>
            </div>
        </div>
        <div id="body">
            <div class="eyes">
                <div class="eye"><div class="pupils"></div></div>
                <div class="eye"><div class="pupils"></div></div>
            </div>
            <div class="cat-nose"></div>
            <div class="cat-mouth"></div>
            
            <div class="whiskers">
                <div class="whisker_left_group">
                    <div class="whisker whisker_first_pair"></div>
                    <div class="whisker whisker_second_pair"></div>
                    <div class="whisker whisker_third_pair"></div>
                </div>
                <div class="whisker_right_group">
                    <div class="whisker whisker_first_pair"></div> 
                    <div class="whisker whisker_second_pair"></div>
                    <div class="whisker whisker_third_pair"></div>
                </div>
            </div>
            <div class = "torso"></div>
             <div class = "paws">
                    <div class="paw1"></div>
                    <div class="paw2"></div>
                    <div class="paw3"></div>
                    <div class="paw4"></div>
            </div>
            <div class="tail"></div>
        </div>
        </div>
    </div>
    
</body>
</html>
#body{
    background-color: rgb(247, 223, 147);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: 2;
}

.eyes{
    position: relative;
    top: 30px;
    display: flex;
}
.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 25px;
    position: relative;
}

.pupils{
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    top: 11%;
    left: 4px;
    position: absolute;
}

.ears{
    position: relative;
    z-index: 1;
}

.ear{
    border-radius: 90% 0 90% 0;
    background-color: rgb(247, 223, 147);
    height: 100px;
    width: 100px;
    position: absolute;
}

.left-ear{
    transform: scale(1, -1) rotate(15deg);
}

.right-ear{
    left: 100px;
}

.left-inner-ear{
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgb(114, 76, 76);
    border-top-left-radius: 37px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 5px;
    transform: scale(1, -1) rotate(78deg);
    position: relative;
    top: 61px;
    left: 10px;
    /* transform: scale(1, -1) rotate(85deg);
    border-radius: 90% 0 90% 0;
    background-color: rgb(156, 215, 250);
    height: 60px;
    width: 60px;
    position: relative;
    top: 37px;
    left: 5px; */
}

.right-inner-ear{
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgb(114, 76, 76);
    border-top-left-radius: 37px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 5px;
    transform: scale(1, -1) rotate(138deg);
    position: relative;
    top: 1px;
    left: 60px;
    /* transform: scale(1, -1) rotate(85deg);
    border-radius: 90% 0 90% 0;
    background-color: rgb(156, 215, 250);
    height: 60px;
    width: 60px;
    position: relative;
    top: 5px;
    left: 32px; */
}

.cat-nose{
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 15px solid black;
    border-top-left-radius: 37px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 5px;
    transform: scale(1, -1) rotate(1deg);
    position: relative;
    top: 16px;
    left: 92px;
}

.cat-mouth{
    width: 50px;
    height: 11px;
    position: absolute;
    top: 142px;
    left: 111px;
    margin-left: -25px;
    z-index: 2;
    overflow: hidden;
}

.cat-mouth:before{
    content: "";
    display: block;
    position: absolute;
    left: 3px;
    bottom: 0;
    border: 2px solid #000;
    width: 28px;
    height: 13px;
    border-radius: 50%;
}

.cat-mouth:after{
    content: "";
    display: block;
    position: absolute;
    right: 3px;
    bottom: 0;
    border: 2px solid #000;
    width: 28px;
    height: 13px;
    border-radius: 50%;
}

.whiskers {
    position: relative;
}

.whisker {
    background-color: rgb(35, 78, 95);
    height: 1px;
    width: 40px;
    position: absolute;
}

.whisker_left_group {
    position: relative;
    left: 42px;
}

.whisker_right_group {
    position: relative;
    left: 124px;
}

.whisker_first_pair {
    transform: rotate(2deg);
    top: 3px;
}

.whisker_second_pair {
    transform: rotate(-1deg);
    top: 7px;
}

.whisker_third_pair {
    top: 12px;
}

.torso{
    border-radius: 50%;
    height: 212px;
    width: 223px;
    background-color: rgb(247, 223, 147);
    position: relative;
    top: -16px;
    left: 20px;
    z-index: -1;
}

.paw1{
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    top: -42px;
    left: 47px;
}

.paw2{
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    top: -77px;
    left: 75px;
}

.paw3{
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    top: -111px;
    left: 140px;
}

.paw4{
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    top: -146px;
    left: 169px;
}

.tail{
    border-radius: 90% 0 90% 0;
    background-color: rgb(224, 194, 94);
    height: 100px;
    width: 100px;
    position: relative;
    top: -328px;
    right: -184px;
    z-index: -2;
}
2 Likes

Kitty is being chased

html:

<html>
    <head>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="cat">
            <div class="ears">
                <div class="ear left-ear"></div>
                <div class="ear right-ear"></div>
            </div>
            <div id="head">
                <div class="eyes">
                    <div class="eye">
                        <div class="pupils"></div>
                    </div>
                    <div class="eye">
                        <div class="pupils"></div>
                    </div>
                </div>

                <div class="mouth">

                </div>

            </div>
            <div class="catbody">
                <div class="legs">
                    <div id="leg1"></div>
                    <div id="leg2"></div>
                </div>                    
            </div>
        </div>
    </body>
</html>

css


.cat{
    width: 496px;
    position: relative;
    top: 46px;
    margin: auto;
}

#head{
    background-color: #a19796;
    width: 200px;
    height: 180px;
    border-radius: 50%;
}

.catbody{
    background-color: #666160;
    border-radius: 20%;
    position: absolute;
    top: 60px;
    right: 163px;
    width: 192px;
    height: 112px;
    transform: skewX(30deg);
    z-index: -1;
    transform: rotate(-8deg);
}

.eyes{
    position: relative;
    top: 30px;
    display: flex;
}

.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 4px;
    position: relative;
}

.pupils{
    background-color: black;
    width: 20px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 24px;
}


.ears{
    position: relative;
    z-index: -1;
}

.ear{
    border-radius: 90% 0 90% 0;
    background-color: salmon;
    height: 100px;
    width: 100px;
    position: absolute;
    left: 100px;
}

.left-ear{
    transform: rotate(-10deg);
    left: 0;
    left: 57px;
    top: -10px; 
}

.right-ear{
    left: 100px;
    top: 5px;
}

.right-ear{

}

.mouth{
    background-color: salmon;
    border-radius: 50%;
    position: absolute;
    top: 136px;
    right: 346px;
    width: 35px;
    height: 22px;
    transform: skewX(18.6deg);
}


#leg1{
    background-color: a19796;
    border-radius: 50%;
    position: absolute;
    top: 87px;
    right: 23px;
    width: 23px;
    height: 52px;
    transform: rotate(-40deg);
    z-index: -1; 
}


#leg2{
    background-color: a19796;
    border-radius: 50%;
    position: absolute;
    top: 78px;
    right: -9px;
    width: 23px;
    height: 52px;
    transform: rotate(-50deg);
    z-index: -1;
  }  
}
3 Likes

It kind of ended up as a bear.

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Crypto Cats</title>

    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <div class="cat">
        <div class="ears">
            <div class="ear leftEar">
                <div class="innerEar"></div>
            </div>
            <div class="ear rightEar">
                <div class="innerEar"></div>
            </div>
        </div>
        <div id="face">
            <div class="eyes">
                <div class="eye">
                    <div class="pupils"></div>
                </div>
                <div class="eye">
                    <div class="pupils"></div>
                </div>
            </div>
            <div class="nose"></div>
            <div class="mouth"></div>
        </div>
        <div class="body">
            <div class="frontPaws">
                <div class="frontPaw leftFrontPaw"></div>
                <div class="frontPaw rightFrontPaw"></div>
            </div>
            <div class="belly"></div>
            <div class="backPaws">
                <div class="backPaw leftBackPaw"></div>
                <div class="backPaw rightBackPaw"></div>
            </div>
        </div>
    </div>   
</body>

</html>
#face {
    background-color: #804000;
    width: 200px;
    height: 200px;
    border-radius: 45%;
    margin-left: 40px;
}

.eyes {
    position: relative;
    top: 30px;
    display: flex;
}

.eye {
    background-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 25px;
    position: relative;
    
}

.pupils {
    background-color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
}

.ears {
    position: relative;
    z-index: -1;
}

.ear {
    border-radius: 50%;
    background-color: #804000;
    height: 100px;
    width: 100px;
    position: absolute;
}

.leftEar {
    transform: scale(1,-1);
    left: 15px;
}

.rightEar {
    left: 160px;
}

.innerEar {
    border-radius: 50%;
    background-color: #996600;
    height: 70px;
    width: 70px;
    position: relative;
    margin: 15px;
}

.nose {
    background-color: #997300;
    border-radius: 20% 20% 50% 50%;
    width: 40px;
    height: 40px;
    position: relative;
    left: 75px;
}

.mouth {
    background-color: #997300;
    width: 50px;
    height: 20px;
    border-radius: 130% 90% 130% 90%;
    margin-left: 75px;
    margin-top: 5px;
}

.body {
    position: absolute;
    top: 145px;
    background-color: #804000;
    width: 300px;
    height: 300px;
    border-radius: 85% 85% 25% 25%;
    z-index: -1;
}

.belly {
    background-color: #996600;
    width: 130px;
    height: 150px;
    border-radius: 85% 85% 25% 25%;
    top: 100px;
    left: 80px;
    position: relative;
}

.frontPaws {
    position: relative;
    top: 95px;
    left: 10px;
}

.frontPaw {
    background-color: #996633;
    width: 75px;
    height: 75px;
    border-radius: 25% 25% 85% 85%;
    position: absolute;
}

.rightFrontPaw {
    left: 200px;
}

.backPaws {
    position: relative;
    top: 50px;
}

.backPaw {
    background-color: #996633;
    width: 100px;
    height: 100px;
    border-radius: 85% 85% 25% 25%;
    position: absolute;
}

.rightBackPaw {
    left: 200px;
}
1 Like
index.html
<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Page Title</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <link rel='stylesheet' type='text/css' media='screen' href='style.css'>

</head>
<body>
    <div class="frame">
        <div class="cartoon">
       
                
                    <div class="ear left_ear"></div>
                    <div class="ear right_ear"></div>
                
                <div id="head">
                        <div class="eyes">
                        <div class="eye"><div class="pupil"></div></div>
                        <div class="eye"><div class="pupil"></div></div>
                        <div class="mouth"></div>
                </div>
                    
                </div>
                <div class="foots">
                    <div class="foot"></div>
                    <div class="foot"></div>
                </div>
          
        </div>
        
    </div>

</body>
</html>
style.css
#head{
    background-color: rgb(134, 130, 199);
    width: 360px;
    height: 360px;
    border-radius: 50% 50% 20% 20%;
    border: solid 3px;
    bottom: 0;
    position: absolute;
    top:100px;
}

.eyes{
    position: absolute;
    top:60px;
    display: flex;
}
.eye{
    background-color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 50px;
    border: solid 3px;
    position: relative;
}
.pupil{
    background-color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 13px;
}

.ears{
    position: relative;
    z-index: 0;
}

.ear{
    border-radius: 70% 0% 90% 0%;
    background-color: rgb(134, 130, 199);
    width: 100px;
    height: 150px;
    position: absolute;
    border: solid 3px;
    top:40px;
}

.left_ear{
    transform: scale(1,-1);
    left:100px;
}

.right_ear{
    right:100px;
}

.mouth{
    background-color: white;
    border-radius: 0% 0% 50% 50%;
    width: 120px;
    height: 80px;
    top:150px;
    left: 110px;
    border: solid 3px;
    position: absolute;
}

.foots{
    position: relative;
    top:320px;
    display: flex;
}
.foot{
    background-color: black;
    border-radius: 50% 50% 0% 0%;
    width: 60px;
    height: 50px;
    margin-left: 60px;
    margin-right: 60px;
    position: relative;
}

.hair{
    width: 45px;
    height: 35px;
    background: rgb(18, 135, 158);
    transform: skewY(40deg) rotate(5deg);
    display: block;
    position: absolute;
    box-sizing: border-box;
    left: 150px;
}

.frame{
    background-color: rgb(222, 244, 221);
    z-index: -2;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: solid 2px;
}
.cartoon{
    padding: 10%;
    position :absolute

}

Monster:

2 Likes

I just wanted to say that there is a lot of great artwork in here! Good job everyone!

I ended up making a crypto squirrel lol :rofl:

HTML
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="./style.css">

    <title>Document</title>
</head>
<body>
    <div class="squirrel">
        <div class="ears">
            <div class="leftEar" >
                <div class="innerLeftEar"></div> 
            </div>
            <div class="rightEar">
                <div class="innerRightEar"></div>
            </div>
        </div>
        
        <div id="face">
            <div class="eyes">
                <div class="eye">
                    <div class="pupils"></div>
                </div>
                <div class="eye">
                    <div class="pupils"></div>
                </div>
            </div>

            <div class="nose"></div>
            
            <div class="mouth">
                <div class="leftTooth"></div>
                <div class="rightTooth"></div>
            </div>

            <div class="cheeks">
                <div class="leftCheek"></div>
                <div class="rightCheek"></div>
            </div>
        </div>

        <div id="tail">
            <div class="innerTail">
                <div class="innerTail2">
                    <div class="innerTail3"></div>
                </div>
            </div>
        </div>

        <div id="body">
            <div class="belly"></div>
        </div>
        
        <div id="feet">
            <div class="leftFoot">
                <div class="toe3"></div>
                <div class="toe4"></div>
            </div>
            <div class="rightFoot">
                <div class="toe1"></div>
                <div class="toe2"></div>
            </div>
            <div class="rightThigh"></div>
            <div class="leftThigh"></div>
        </div>

        <div id="arms">
            <div class="leftArm"></div>
            <div id="coin">
                <div class="bitcoin">B</div>
                <div class="bitcoin1">|</div>
                <div class="bitcoin2">|</div>
            </div>
            <div class="rightArm">
                <div class="finger2"></div>
                <div class="finger1"></div>
            </div>
        </div>

        
    </div>
    
</body>
</html>
CSS
.squirrel {
    margin-left: 50px;
    margin-top: 50px;
}

#face {
    background-color: rgb(214, 124, 60);
    width: 200px;
    height: 200px;
    border-radius: 75% 75% 30% 30%;
    position: relative;
    top: 30px;
    z-index: 3;
    margin-left: 50px; 
}

.eyes {
    position: relative;
    top: 30px;
    display: flex;
}

.eye {
    background-color: whitesmoke;
    border-radius: 70%;
    width: 80px;
    height: 90px;
    margin: 10px;
    position: relative;
}

.pupils {
    background-color: black;
    width: 45px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
}

.ears {
    position: relative;
    z-index: 0;
    margin-left: 50px;
}

.leftEar {
    background-color: rgb(165, 83, 42);
    height: 100px;
    width: 100px;
    border-radius: 5% 85% 15% 95%;
    position: absolute; 
    transform: rotate(35deg);
}

.innerLeftEar {
    background-color: rgb(246, 121, 121);
    height: 50px;
    width: 50px;
    border-radius: 5% 85% 15% 95%;
    position: absolute; 
    top: 20px;
    left: 20px;
}

.rightEar {
    background-color: rgb(165, 83, 42);
    height: 100px;
    width: 100px;
    border-radius: 5% 85% 15% 95%;
    position: absolute; 
    transform: scale(-1, 1) rotate(35deg);
    left: 100px;
}

.innerRightEar {
    background-color: rgb(246, 121, 121);
    height: 50px;
    width: 50px;
    border-radius: 5% 85% 15% 95%;
    position: absolute; 
    top: 20px;
    left: 20px;
}

.nose {
    background-color: rgb(217, 74, 103);
    height: 30px;
    width: 30px;
    border-radius: 50%;
    position: absolute;
    left: 85px;
}

.mouth {
    background-color: rgb(0, 0, 0);
    height: 35px;
    width: 100px;
    border-radius: 0% 0% 50% 50%;
    position: absolute;
    left: 50px;
    top: 150px;
}

.leftTooth {
    background-color: rgb(255, 255, 255);
    height: 40px;
    width: 25px;
    position: absolute;
    left: 23px;
    border-right: 3px solid rgb(0, 0, 0);
}

.rightTooth {
    background-color: rgb(255, 255, 255);
    height: 40px;
    width: 25px;
    position: absolute;
    left: 49px;
    border-left: 3px solid rgb(0, 0, 0);
}

.cheeks {
    position: relative;
    top: 20px;
    display: flex;
}

.leftCheek {
    background-color: rgb(214, 124, 60);
    border-radius: 60%;
    width: 60px;
    height: 70px;
    left: -10px;
    top: 10px;
    position: relative;
}

.rightCheek {
    background-color: rgb(214, 124, 60);
    border-radius: 60%;
    width: 60px;
    height: 70px;
    left: 90px;
    top: 10px;
    position: relative;
}

#body {
    background-color: rgb(165, 83, 42);
    width: 200px;
    height: 250px;
    margin-left: 75px;
    border-radius: 95px 95px 90px 90px;
    transform: rotate(0deg);
    z-index: 2;
}

.belly {
    background-color: rgb(230, 181, 157);
    width: 130px;
    height: 180px;
    margin-left: 25px;
    border-radius: 95px 95px 90px 90px;
    transform: rotate(0deg);
    z-index: 2;
    top: 40px;
    position: absolute;
}

#tail {
    background-color: rgb(165, 83, 42);
    width: 100px;
    height: 200px;
    margin-left: 275px;
    border-radius: 95px 5px 95px 5px;
    transform: scale(-1, 1) rotate(-65deg);
    position: absolute;
    top: 260px;
    z-index: 0;
}

.innerTail {
    background-color: rgb(66, 27, 7);
    width: 90px;
    height: 180px;
    margin-left: 200px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 0;
}

.innerTail2 {
    background-color: rgb(224, 154, 119);
    width: 60px;
    height: 140px;
    margin-left: 200px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 0;
}

.innerTail3 {
    background-color: rgb(87, 53, 37);
    width: 40px;
    height: 110px;
    margin-left: 200px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 0;
}

.leftFoot {
    background-color: rgb(165, 83, 42);
    width: 40px;
    height: 90px;
    margin-left: 100px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 460px;
    transform: rotate(50deg);
}

.rightFoot {
    background-color: rgb(165, 83, 42);
    width: 40px;
    height: 110px;
    margin-left: 180px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 450px;
    transform: rotate(50deg);
}

.toe1 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 90px;
    transform: rotate(0deg);
}

.toe2 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 15px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 85px;
    transform: rotate(0deg);
}

.toe3 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 5px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 70px;
    transform: rotate(0deg);
}

.toe4 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 20px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 62px;
    transform: rotate(0deg);
}

.rightThigh {
    background-color: rgb(165, 83, 42);
    width: 80px;
    height: 100px;
    margin-left: 180px;
    border-radius: 80px 20px 80px 20px;
    position: absolute;
    top: 390px;
    transform: rotate(-20deg);
}

.leftThigh {
    background-color: rgb(165, 83, 42);
    width: 30px;
    height: 50px;
    margin-left: 95px;
    border-radius: 80px 20px 80px 20px;
    position: absolute;
    top: 460px;
    transform: rotate(0deg);
}

.rightArm {
    background-color: rgb(165, 83, 42);
    width: 40px;
    height: 140px;
    margin-left: 180px;
    border-radius: 80px 20px 80px 20px;
    position: absolute;
    top: 300px;
    transform: rotate(-85deg);
}

.leftArm {
    background-color: rgb(165, 83, 42);
    width: 40px;
    height: 60px;
    margin-left: 50px;
    border-radius: 80px 20px 80px 20px;
    position: absolute;
    top: 330px;
    transform: rotate(-85deg);
}

.finger1 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 10px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 5px;
    transform: rotate(0deg);
}

.finger2 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 25px;
    border-radius: 5px 95px 5px 95px;
    position: absolute;
    top: 0px;
}

.finger3 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 20px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 62px;
}

.finger4 {
    background-color: rgb(87, 53, 37);
    width: 10px;
    height: 20px;
    margin-left: 20px;
    border-radius: 95px 5px 95px 5px;
    position: absolute;
    top: 62px;
}

#coin {
    background-color: rgb(245, 213, 32);
    width: 100px;
    height: 100px;
    border-radius: 50px;
    position: absolute;
    top: 310px;
    margin-left: 50px;
    border-color: rgb(251, 202, 24);
    border-width: 5px;
    border-style: solid;
}

.bitcoin {
    color: white;
    font-size: 70px;
    font-weight: bold;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 25px;
    top: 0px;
    position: absolute;
}

.bitcoin1 {
    color: white;
    font-size: 70px;
    font-weight: bold;
    font-family:'Times New Roman', Times, serif;
    margin-left: 30px;
    top: 2px;
    position: absolute;
}

.bitcoin2 {
    color: white;
    font-size: 70px;
    font-weight: bold;
    font-family:'Times New Roman', Times, serif;
    margin-left: 48px;
    top: 2px;
    position: absolute;
}
3 Likes

Hi everyone :grinning:,

Added 4 cattributes to the code

  • eye shape
  • activity (cat can rest)
  • privacy (cat goes invisible)
  • mouth color

The code is belowā€¦
Looking forward to the rest of the course!

Matt

index.html


<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Academy kitties </title>
  <script type="text/javascript" src="assets/js/jquery-3.4.1.js"></script>
  <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
  <script src="assets/bootstrap/js/popper.js"></script>
  <script src="assets/bootstrap/js/bootstrap.min.js"></script>

  <link rel="stylesheet" href="assets/css/mystyle.css">
  <link rel="stylesheet" href="assets/css/cats.css">
  <link rel="stylesheet" href="assets/css/scared_cat.css">  
  <link rel="stylesheet" href="assets/css/colors.css">
  <link rel="stylesheet" href="assets/css/factory.css">
  <link rel="stylesheet" href="assets/css/frontend.css">
</head>
  <body>
    <div class="container p-5" style="margin-top: 12vh;margin-bottom: 10vh;">
        <div align="center">
        <h1 class="c-white">Kitty Freakout</h1>
        <p class="c-white">This kitty accidently broke an OFAC sanction</p>
    </div>
        <div class="row">
            <div class="col-lg-6 catBox m-2 light-b-shadow">
                <div class="cat">
                    <div class="ears">
                        <div class="ear left-ear"></div>
                        <div class="ear right-ear"></div>
                    </div>
                    <div id="head">
                        <div class="eyes">
                            <div class="eye">
                                <div class="pupils"></div>
                            </div>
                            <div class="eye">
                                <div class="pupils"></div>
                            </div>
                        </div>
        
                        <div class="mouth">
        
                        </div>
        
                    </div>
                    <div class="catbody">
                        <div class="legs">
                            <div class="legs" id="leg1"></div>
                            <div class="legs" id="leg2"></div>
                        </div>
                    </div>
                </div>
        
                <br>
                <div class="dnaDiv" id="catDNA">
                    <b>
                        DNA:
                        <!-- Colors -->
                        <span id="dnabody"></span>
                        <span id="dnahead"></span>
                        <span id="dnaears"></span>
                        <span id="dnalegs"></span>
        
                        <!-- Cattributes -->
                        <span id="dnashape"></span>
                        <span id="dnadecoration"></span>
                        <span id="dnadecorationMid"></span>
                        <span id="dnadecorationSides"></span>
                        <span id="dnadanimation"></span>
                        <span id="dnaspecial"></span>
                    </b>
                </div>
            </div>
            <div class="col-lg-5 cattributes m-2 light-b-shadow">
        
                <!-- Cat colors -->
                <div id="catColors">
                    <div class="form-group">
                        <label for="formControlRange"><b>Body</b><span class="badge badge-dark ml-2" id="bodycode"></span></label>
                        <input type="range" min="10" max="98" class="form-control-range" id="bodycolor">
                        <label for="formControlRange"><b>Head</b><span class="badge badge-dark ml-2" id="headcode"></span></label>
                        <input type="range" min="10" max="98" class="form-control-range" id="headcolor">
                        <label for="formControlRange"><b>Ears</b><span class="badge badge-dark ml-2" id="earscode"></span></label>
                        <input type="range" min="10" max="98" class="form-control-range" id="earscolor">
                        <label for="formControlRange"><b>Legs</b><span class="badge badge-dark ml-2" id="legscode"></span></label>
                        <input type="range" min="10" max="98" class="form-control-range" id="legscolor">
                    </div>

                    <div class="form-group">
                        <label for="formControlRange"><b>Eye Shape</b>
                            <span class="badge badge-dark ml-2" id="eyeshapecode"></span>
                        </label>
                        <input type="range" min="1" max="3" class="form-control-range" id="eyeshape">


                    </div>

                    <div class="form-group">
                        <label><b>Activity</b></label>

                        <label><input type="radio" name="decoration"  value="1">Run</label>

                        <label><input type="radio" name="decoration"  value="2">Rest</label>
                    </div>

                    <div class="form-group">
                        <label for="formControlRange"><b>Privacy</b>
                            <span class="badge badge-dark ml-2" id="incognitocode"></span>
                        </label>
                        <input type="range" min="0" max="10" class="form-control-range" id="incognito">

                        <label for="formControlRange"><b>Mouth color</b>
                            <span class="badge badge-dark ml-2" id="mouthcolorcode"></span>
                        </label>
                        <input type="range" min="1" max="12" class="form-control-range" id="mouthcolor">

                    </div>
                </div>
            </div>
        </div>
        <br>
        
        </div>
        
        
        
        </div>
    <footer align="left">
        <p>Ivan on Tech Academy Bootcamp July 2020</p>
    </footer>

  </body>
  <script src="assets/js/colors.js"></script>
  <script src="assets/js/catSettings.js"></script>
  <script src="assets/js/catFactory.js"></script>

</html>


catsettings.js


var colors = Object.values(allColors())

var defaultDNA = {
    "bodyColor" : 10,
    "headColor" : 13,
    "earsColor" : 96,
    "legsColor" : 10,
    //Cattributes
    "eyesShape" : 1,
    "decorationPattern" : 1,
    "decorationMidcolor" : 13,
    "decorationSidescolor" : 13,
    "animation" :  1,
    "lastNum" :  1
    }

// when page load
$( document ).ready(function() {
  $('#dnabody').html(defaultDNA.bodyColor);
  $('#dnahead').html(defaultDNA.headColor);
  $('#dnaears').html(defaultDNA.earsColor);
  $('#dnalegs').html(defaultDNA.legsColor);
    
  $('#dnashape').html(defaultDNA.eyesShape)
  $('#dnadecoration').html(defaultDNA.decorationPattern)
//   $('#dnadecorationMid').html(defaultDNA.decorationMidcolor)
//   $('#dnadecorationSides').html(defaultDNA.decorationSidescolor)
//   $('#dnaanimation').html(defaultDNA.animation)
//   $('#dnaspecial').html(defaultDNA.lastNum)

  renderCat(defaultDNA)
});

function getDna(){
    var dna = ''
    dna += $('#dnabody').html()
    dna += $('#dnahead').html()
    dna += $('#dnaears').html()
    dna += $('#dnalegs').html()
    dna += $('#dnashape').html()
    dna += $('#dnadecoration').html()
    dna += $('#dnadecorationMid').html()
    dna += $('#dnadecorationSides').html()
    dna += $('#dnaanimation').html()
    dna += $('#dnaspecial').html()

    return parseInt(dna)
}

function renderCat(dna){
  // bodyColor(colors[dna.bodycolor], dna.bodycolor)
  // $('#bodycolor').val(dna.bodycolor)



  // headColor(colors[dna.headcolor], dna.headcolor)
  // $('#headcolor').val(dna.headcolor)

  
  
}

// Changing cat colors
$('#bodycolor').change(() => {
  var colorVal = $('#bodycolor').val()
  bodyColor(colors[colorVal], colorVal)
})

$('#headcolor').change(() => {
  var colorVal = $('#headcolor').val()
  headColor(colors[colorVal], colorVal)
})

$('#earscolor').change(() => {
  var colorVal = $('#earscolor').val()
  earsColor(colors[colorVal], colorVal)
})

$('#legscolor').change(() => {
  var colorVal = $('#legscolor').val()
  legsColor(colors[colorVal], colorVal)
})


$('#eyeshape').change(() => {
  var shapeVal = $('#eyeshape').val()
  eyeVariation(shapeVal)
})

$('#legshape').change(() => {
  var shapeVal = $('#legshape').val()
  legVariation(shapeVal)
})

$("input[name='decoration']").change(() => {
  var legVal = $("input[name='decoration']:checked").val()
  legVariation(legVal)
})

$('#incognito').change(() => {
  var opacityVal = $('#incognito').val()
  opacityVariation(opacityVal)
})

$('#mouthcolor').change(() => {
  var colorVal = $('#mouthcolor').val()
  mouthColor(colors[colorVal], colorVal)
})

catFactory.js


//Random color
function getColor() {
    var randomColor = Math.floor(Math.random() * 16777215).toString(16);
    return randomColor
}

function genColors(){
    var colors = []
    for(var i = 10; i < 99; i ++){
      var color = getColor()
      colors[i] = color
    }
    return colors
}


function bodyColor(color,code) {
    $('.catbody').css('background-color', '#' + color)  //This changes the color of the cat
    $('#bodycode').html('code: '+code) //This updates text of the badge next to the slider
    $('#dnabody').html(code) //This updates the body color part of the DNA that is displayed below the cat
}


//This function code needs to modified so that it works with Your cat code.
function headColor(color,code) {
    $('#head').css('background-color', '#' + color)  //This changes the color of the cat head
    $('#headcode').html('code: '+code) //This updates text of the badge next to the slider
    $('#dnahead').html(code) //This updates the body color part of the DNA that is displayed below the cat
}


function earsColor(color,code) {
    $('.ear').css('background-color', '#' + color)  //This changes the color of the cat ears
    $('#earscode').html('code: '+code) //This updates text of the badge next to the slider
    $('#dnaears').html(code) //This updates the body color part of the DNA that is displayed below the cat
}


function legsColor(color,code) {
    $('.legs').css('background-color', '#' + color)  //This changes the color of the cat legs
    $('#legscode').html('code: '+code) //This updates text of the badge next to the slider
    $('#dnalegs').html(code) //This updates the body color part of the DNA that is displayed below the cat
}



//###################################################
//Functions below will be used later on in the project
//###################################################
function eyeVariation(num) {

    $('#dnashape').html(num)

    switch (num) {
        case "1":
            normalEyes()
            $('#eyeshapecode').html('Basic')
            break;
        case "2":
            startledEyes()
            $('#eyeshapecode').html('Startled')
            break;
        case "3":
            blindEyes()
            $('#eyeshapecode').html('Blind')
            break;

        default:
    }
}

function legVariation(num) {
    $('#dnadecoration').html(num)

    switch (num){
        case "1":
            runLegs()
            $('#legshapecode').html("Run")
            break;
        case "2":
            restLegs()
            $('#legshapecode').html("Rest")
            break;
        default:
    }
}




function runLegs(){
    $('#leg1').css({
        "width": "23px",
        "height": "52px",
        "top": "87px",
        "left": "148px",
        "transform": "rotate(-40deg)"        
    })

    $('#leg2').css({
        "width": "23px",
        "height": "52px",
        "top": "78px",
        "left": "179px",
        "transform": "rotate(-50deg)"       
    })

}

function restLegs(){
    $('#leg1').css({
        "width": "23px",
        "height": "52px",
        "top": "87px",
        "left": "21px",
        "transform": "rotate(15deg)"
    })

    $('#leg2').css({
        "width": "23px",
        "height": "52px",
        "top": "90px",
        "left": "62px",
        "transform": "rotate(-10deg)"
    })

}

function opacityVariation(num){
    $('#dnadecorationMid').html(num)

    opacity = num/10
 
    $('.cat').css("opacity", opacity)
    $('#incognitocode').html(opacity*100 + '%')

}

function mouthColor(color,code) {
    $('.mouth').css('background-color', '#' + color)  //This changes the color of the cat head
    $('#mouthcolorcode').html('code: '+code) //This updates text of the badge next to the slider
    $('#dnadecorationSides').html(code) //This updates the body color part of the DNA that is displayed below the cat
}


function decorationVariation(num) {
    $('#dnadecoration').html(num)
    switch (num) {
        case 1:
            $('#decorationName').html('Basic')
            normaldecoration()
            break
    }
}

async function normalEyes() {

    $('.pupils').css({
        "background-color": "black",
        "width": "20px",
        "height": "30px",
        "top": "10px",
        "left": "24px"
    })

}


function startledEyes() {
    
    $('.pupils').css({
        "background-color": "black",
        "width": "45px",
        "height": "45px",
        "top": "3px",
        "left": "3px"
    })
}

function blindEyes() {
    
    $('.pupils').css({
        "background-color": "white"
    })
}




async function normaldecoration() {
    //Remove all style from other decorations
    //In this way we can also use normalDecoration() to reset the decoration style
    $('.cat__head-dots').css({ "transform": "rotate(0deg)", "height": "48px", "width": "14px", "top": "1px", "border-radius": "0 0 50% 50%" })
    $('.cat__head-dots_first').css({ "transform": "rotate(0deg)", "height": "35px", "width": "14px", "top": "1px", "border-radius": "50% 0 50% 50%" })
    $('.cat__head-dots_second').css({ "transform": "rotate(0deg)", "height": "35px", "width": "14px", "top": "1px", "border-radius": "0 50% 50% 50%" })
}

scared_cat.css


.cat{
    /* border-style: solid; */
    width: 400px;
    position: relative; 
    top: 46px; 
    margin: auto; 
}

#head{
    background-color: #a19796;
    width: 200px;
    height: 180px;
    border-radius: 50%;
}
    
.catbody{
    background-color: #666160;
    border-radius: 20%;
    position: absolute;
    top: 60px;
    left: 145px;
    width: 192px;
    height: 112px;
    transform: skewX(30deg);
    z-index: -1;
    transform: rotate(-8deg);
}

.eyes{
    position: relative;
    top: 30px;
    display: flex;
}

.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 4px;
    position: relative;
}

.pupils{
    background-color: black;
    width: 20px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 24px;
}


.ears{
    position: relative;
    z-index: -1;
}

.ear{
    border-radius: 90% 0 90% 0;
    background-color: salmon;
    height: 100px;
    width: 100px;
    position: absolute;
    left: 100px;
}

.left-ear{
    transform: rotate(-10deg);
    left: 0;
    left: 57px;
    top: -10px; 
}

.right-ear{
    left: 100px;
    top: 5px;
}


.mouth{
    background-color: salmon;
    border-radius: 50%;
    position: absolute;
    top: 136px;
    left: 120px;
    width: 35px;
    height: 22px;
    transform: skewX(18.6deg);
}


.legs{
    background-color: a19796;
    z-index: -1; 

}


#leg1{
    border-radius: 50%;
    position: absolute;
    top: 87px;
    left: 148px;    
    width: 23px;
    height: 52px;
    transform: rotate(-40deg);
}


#leg2{
    border-radius: 50%;
    position: absolute;
    top: 78px;
    left: 179px;    
    width: 23px;
    height: 52px;
    transform: rotate(-50deg);
  }  

1 Like

Hi, why is head transparent, why I can see whole ears under head in background?
image

html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>CryptoKitties</title>
</head>
<body>
    <div id="cat">
        <div class="ears">
            <div class="ear left_ear"></div>
            <div class="ear right_ear"></div>
        </div>
        <div id="body">
            <div class="eyes">
                <div class="eye">
                    <div class="pupils"></div>
                </div>
                <div class="eye">
                    <div class="pupils"></div>
                </div>
            </div>
        </div>
    </div>
    
</body>
</html>
css
#body{
    background-color: rgba(219, 219, 25, 0.811);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
}

.eyes{
    position: relative;
    top: 30px;
    display: flex;
    
}

.eye{
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 25px;
    margin: 25px;
    position: relative;
}

.pupils{
    background-color: black;
    width: 15px;
    height: 20px;
    border-radius: 70%;
    margin-left: 17px;
    margin-top: 2px;
    position: absolute;
}

.ears{
    position: relative;
}

.ear{
    position: absolute;
    border-radius: 10px 40px;
    background-color: rgba(28, 117, 185, 0.811);
    height: 100px;
    width: 100px;
}

.right_ear{
    margin-left: 100px;
    transform: rotate(-90deg);
}

0.811 is the opacity value. If you donā€™t want the opacity replace the color with rgb(219, 219, 25)

1 Like

Ohhh I didnā€™t notice that last argument, thank you.

hello, complete beginner at this, now iā€™ve got the bug.

<html>
    <head>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="budgie">
            <div class="tail"></div>
            <div class="wings">
                <div class="wing left_wing"></div>
                <div class="wing right_wing"></div>
            </div>
            <div class="beak"></div>
            <div class="feet">
                <div class="foot left_foot"></div>
                <div class="foot right_foot"></div>
            </div>
        </div>
        <div id="body">
             <div class="eyes">
                 <div class="eye">
                    <div class="pupils"></div>
                </div>
                <div class="eye">
                     <div class="pupils"></div>
                 </div>
            </div>
        </div>
    </body>
</html>
#body{
    background-color: rgb(0, 128, 0);
    width: 100px;
    height: 200px;
    border-radius: 50%;
}
.eyes{
    position: relative;
    top: 20px;
    display: flex;
}
.eye{
    background-color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    margin: 12.5px;
    position: relative;
    
}
.pupils{
    background-color: #000000;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    top: 6.5px;
    left: 6.5px;
}
.wings{
    position: relative;
}
.wing{
    border-radius: 99px 0px 99px 0px;
    background-color: rgb(255, 255, 0);
    height: 75px;
    width: 75px;
    position:absolute;
}
.left_wing{
    transform: scale(1,-1) rotate(321deg);
    left: 47px;
    top: 78px;
}
.right_wing{
    transform: rotate(320deg);
    left: -21px;
    top: 80px;
}
.beak{
    border-radius: 50px 30px 50px 30px;
    background-color: burlywood;
    height: 40px;
    width: 10px;
    position: absolute;
    top: 49px;
    left: 53px;
}
.feet{
    position: relative;
}
.foot{
    border-radius: 50px 50px 50px 50px;
    background-color: burlywood;
    height: 40px;
    width: 10px;
    position: absolute;
}
.left_foot
{
    transform: rotate(10deg);
    top: 168px;
    left: 29px;
}
.right_foot{
    transform: rotate(-10deg);
    top: 168px;
    left: 61px;
}
.tail {
    border-radius: 90px 0px 200px 0px;
    background-color: #59ff00;
    height: 103px;
    width: 36px;
    transform: rotate(33deg);
    top: 122px;
    left: 88px;
    position: absolute;
}

Hello @skippy
For further analysis and for anyone here to help you out, can you provide more information about the bug youā€™ve encountered?

Hi. Itā€™s the coding bugšŸ˜Ž

1 Like