我需要使用CSS反射文本并为其添加渐变效果。这里是一个我想要的示例。但是,我不想使用带有alpha透明度的淡出png图像,因为背景已经设置好了。
https://jsfiddle.net/9318Ltkp/
![enter image description here](https://istack.dev59.com/gWMy4.webp)
.slogan {
font-size: 30px;
line-height: 121px;
position: relative;
float: right;
margin-right: 115px;
text-transform: uppercase;
color: #f00;
}
.slogan::after {
position: absolute;
z-index: 1;
right: 0;
bottom: -26px;
left: 0;
display: block;
content: 'comming soon';
transform: scaleY(-1);
opacity: .5;
}
<div class="slogan">comming soon</div>