我遇到了问题,如果我删除“.box-with-text”的“背景颜色”,则文本填充不起作用。
.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;
}