D
D
Dmitry2017-10-04 21:48:22
css
Dmitry, 2017-10-04 21:48:22

Is it possible to make this effect on text using CSS?

Good day.
Please tell me if it is possible to partially change the color of text or SVG images when overlaying them on another object (for example, a picture).
top-recruiting-cases.psd%2B%2540%2B100%2

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anna_BS, 2017-10-04
@Odinokun

https://codepen.io/Anna_Batura/pen/LzOqPY

A
Ankhena, 2017-10-05
@Ankhena

Just put a background gradient under the text. All.
https://jsfiddle.net/5av1sxcw/

<div class="wrap">
<img src="http://putevoditel-altai.ru/uploads/photos/previews/834_enshhs-bcb.jpg" alt="">
<div class="text">text</div>
</div>

.wrap {
  position: relative;
}
img {
  margin: 50px;
}
.text {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 75px;
  height: 75px;
  background: #999 linear-gradient(to right, #999 0, #999 50px, #fff 51px, #fff 100%) no-repeat left bottom / 100% 25px;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  color: transparent;
}

F
Froggyweb, 2017-10-04
@Froggyweb

maybe there is something in the filters, but this is akin to experiments. Capital K is buggy even on pictures :)

A
Alex Glebov, 2017-10-04
@SkiperX

only 1 transition is possible
https://jsfiddle.net/egsq6j59/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question