.btn_swtich_box { position:relative; width:100px; background-size:100% 100%; margin-top:30px; border-radius:50px; } .btn_swtich_1bg { background-color:#ed4646; } .btn_swtich_2bg { background-color:#f4f4f4; } .btn_swtich_3bg { background-color:#4dd865; } .btn_swtich_anim { position:absolute; top:0px; background-color:#fff; box-shadow:0px 0px 4px 0px #999; } .btnHide_swtich { float:left; background-color:transparent; opacity:0; }