Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css darken

.button {
  color: #ff0000;
}

/* note: 100% is baseline so 85% is slightly darker, 
   20% would be significantly darker */
.button:hover {
  filter: brightness(85%);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #darken
ADD COMMENT
Topic
Name
7+6 =