".box-with-text"의 "background-color"를 제거하면 텍스트 채우기가 작동하지 않는 문제가 있습니다.텍스트가 혼합 채우기 모드로 채우기
.box-with-text {
text-transform: uppercase;
font: bold 6rem Open Sans, Impact;
background: black;
color: white;
mix-blend-mode: multiply;
}
@keyframes stripes {
to {
background-size:100% 100%;
}
}
.wrapper {
max-width: 300px;
margin: 0 auto;
}
.container {
display: flex;
background: linear-gradient(crimson , crimson) white no-repeat 0 0;
background-size: 0 100%;
animation: stripes 5s;
animation-fill-mode: forwards;
text-align: center;
}
"작동하지 않는다"는 것은 무엇을 의미합니까? 배경색을 제거하면 효과가있는 것처럼 보이지만 전경색과 배경색이 같기 때문에 텍스트가 표시되지 않습니다. – Godwin
@ Godwin 나는 무엇을 해야할지 모르겠다. 투명 배경을 가진 텍스트를 볼 수있다. – Rubocop
[CSS 또는 Javascript를 사용하여 애니메이션 채우기] 가능한 복제본 (http://stackoverflow.com/questions/17745983/fill-animation -using-css-or-javascript) – Godwin