How could I make a background of a button two solid colors? Please see examples below.
The overall aim is for the button to transition from the two shades of blue to the two shades of grey upon hover.
Colors:
- blue:
#4098D3
(light),#2B8DCF
(dark) - grey:
#515758
(light),#2B8DCF
(dark)
HTML button syntax: <button class="submit"></submit>
CSS:
button.submit {
[background CSS from this question] }
button.submit:hover {
[background CSS from this question with alternate colors]
cursor: pointer;
-webkit-transition: background 0.5s linear;
-moz-transition: background 0.5s linear;
-ms-transition: background 0.5s linear;
-o-transition: background 0.5s linear;
transition: background 0.5s linear;
}
Feel free to use this JSFiddle I have setup for this query: https://jsfiddle.net/DMc9N/
Your help is hugely appreciated