I need to make a fill from left transition in the background of a button. Something very similar as it is in link (look for the "fill from left" button).
I want it when I hover over it, it fills the background from left to right. My syntax looks like this:
.BT{
font-size: 12px;
height: 30px;
left: 330px;
line-height: 30px;
top: 350px;
width: 110px;
}
And the Hover of this button, which is wrong, looks like this:
.BT:hover{background-color:red;
transform:translate(-10%, 0px);
transition:transform 500ms ease 0s;
}
What happens, is that he is moving the button, wanted to do a test to move internally.