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

Last updated on August 23rd, 2014 at 07:54 am

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]

Tags:

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading