Заполните элемент наклонным фоном при наведении
Я пытаюсь создатьCSS эффект наведения кнопки, Но мне не удалось заполнить элемент наклонной формой.
Как планировался эффект при наведении:
Скриншот 1: Как это выглядит на самом деле.
Снимок 2: Как я хочу, чтобы эффект наведения был похож со скошенной стороной.
.button_sliding_bg {
color: #31302B;
background: #FFF;
padding: 12px 17px;
margin: 25px;
font-family: 'OpenSansBold', sans-serif;
border: 3px solid #31302B;
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
text-transform: uppercase;
border-radius: 2px;
display: inline-block;
text-align: center;
cursor: pointer;
box-shadow: inset 0 0 0 0 #31302B;
-webkit-transition: all ease 0.8s;
-moz-transition: all ease 0.8s;
transition: all ease 0.8s;
}
.button_sliding_bg:hover {
box-shadow: inset 200px 0 0 0 #31302B;
color: #FFF;
}
<button class="button_sliding_bg">Buttontext</button>