Skip to content

Instantly share code, notes, and snippets.

@creyn

creyn/index.css Secret

Last active August 11, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creyn/88589ee45e593d3e0c43c6fd0862e63c to your computer and use it in GitHub Desktop.
Save creyn/88589ee45e593d3e0c43c6fd0862e63c to your computer and use it in GitHub Desktop.
Droga Programisty : Szybkie Palce : CSS image button
img {
/* dodatkowy filtr dla elementu, tutaj chcemy zeby byl prawie czarnobialy (usuwamy kolory) */
filter: grayscale(50%);
...
}
img.active:hover {
/* dodatkowy filtr elementu, teraz chcemy zeby byl kolorowy */
filter: grayscale(0%);
}
img.inactive {
/* dodatkowy filtr elementu, teraz chcemy zeby byl czarnobialy */
filter: grayscale(100%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment