Use CSS to do fade text from Black to White at tail.

I found out that using this way to white fade out the text.

[code lang=”html”]
<div style="font-size: 6pt;
overflow: hidden;
text-decoration: none;
position: relative;
white-space: nowrap;
-webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 99%);">
Fade away my text</div>
[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.