CSS Mouse Icon

HTML
<div class="mouse mouse-1"></div>

<div class="mouse mouse-2"></div>
CSS
body{
  background: #ffc7c7;
  position: absolute;
  left: 50%;
  top:50%;
  transform: translate(-50%,-50%);
}

.mouse{
  display: inline-block;
  margin: 0 20px;
}

.mouse-1{
  position: relative;
  background: #FFF;
  width: 60px;
  height: 100px; 
  border-radius: 50px;
  box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px 3px 0px rgba(56, 56, 56, 0.3);
}

.mouse-1:before{
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  height: 40px;
  width: 3px; 
  background: #ffc7c7;
}

.mouse-1:after{
  content: '';
  position: absolute; 
  top: 40px;
  height: 3px;
  width: 100%;
  background: #ffc7c7;
}


.mouse-2{ 
    position: relative;
    border: 2px solid #fff;
    border-radius: 30px;
    width: 60px;
    height: 100px;   
}

.mouse-2:after {
  content: '';
  position: absolute; 
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 15px; 
  border-radius: 5px;
  background: #FFF;
}
465 Views
73040cookie-checkCSS Mouse Icon

Leave a Reply

Your email address will not be published. Required fields are marked *