How can I change button color when it is clicked? I tried the :active style but it don’t work on the android device (however it does work in the browser).
For example I have a button like this
<button class="button button-full button-calm button-login" type="submit">Sign In</button>
with this styles
.login .button-login {
width:96%;
background: red;
margin: 0 auto;
border: 0;
border-radius: 4px;
moz-border-radius: 4px;
webkit-border-radius: 4px;
transition: all 0.3s ease 0s;}
.login .button-login:active {
background: yellow;}
I expect the button to become yellow when I touch it and become red back when the user lift the finger.