Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

html css text color invert on image

#text {
  width: 150px;
  height: 150px;
  z-index: 1;
}

#text {
  text-align: center;
  background: linear-gradient(to top right, black 50%, orange 51%);
}

#text h1 {
  margin: 0;
  line-height: 150px;
  mix-blend-mode: difference;
  color: #fff;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #css #text #color #invert #image
ADD COMMENT
Topic
Name
1+5 =