【发布时间】:2015-12-25 22:26:08
【问题描述】:
经过研究,我发现了一个codepen,它适用于不透明度,但不幸的是,它不适用于这种对比度。
这是codepen的一部分:
<div class="loading wave">
This is text
</div>
<style>
.loading{
font-size:100pt;
height:120px;
line-height:110px;
vertical-align:bottom;
display:block;
}
.wave {
background-image: url("http://i.imgur.com/uFpLbYt.png");
background-clip: text;
color: transparent;
text-shadow: 0px 0px rgba(255, 255, 255, 0.06);
animation: wave-animation 1s infinite linear, loading-animation 10s infinite linear alternate;
background-size: 200px 100px;
background-repeat: repeat-x;
opacity: 1;
}
</style>
我想在蓝/白颜色对比上使用 codepen 的动画。有谁知道解决办法吗?
【问题讨论】:
-
最好的解决方案可能是使用动画 gif。
-
我已经考虑过了,但不幸的是,文本需要根据其他页面元素进行更改。