SOURCE

console 命令行工具 X clear

                    
>
console
(function () {
    $(document).ready(function () {
        return $('.container').on('click', function () {
            return $('.redBlock').toggleClass('rent');
        });
    });
}.call(this));
<div class="container">
  <div class="redBlock"></div>
</div>
* {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
body {
  background: #fff;
  width: 100vw;
  height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
body .container {
  width: 432px;
  height: 40px;
  background: #2c2f3b;
  -webkit-mask: url("http://frolovoleg.ru/images/mask.svg") no-repeat;
          mask: url("http://frolovoleg.ru/images/mask.svg") no-repeat;
  overflow: hidden;
}
body .container:hover {
  cursor: pointer;
}
body .container .redBlock {
  background: #ff5050;
  width: 182px;
  height: 182px;
  margin-top: -71px;
  margin-left: -14px;
  border-radius: 50%;
}
.rent {
  margin-left: 264px !important;
}