I am looking to create a unique scan line effect that gradually reveals text from left to right, mimicking the appearance of a cathode-ray burning text into a screen's phosphors.
The concept involves sliding across black rows with transparent tips. You can view an 80% functional demo here. Currently, I am facing an issue where the rightmost black .mask div in each row does not expand as desired. I have attempted to adjust its width using inline-block properties and setting it to full width, but this approach causes other inline-blocks to shift onto the next line.
While I understand the limitation causing the issue, I am seeking a solution to achieve the full right-hand side display without resorting to width adjustments through JavaScript hacks.
.row {
font-family:'Courier New',Courier,monospace;
font-size:16px;
display:block;
height:auto;
width:100%;
min-width:20%;
position:relative;
margin-right:0px;
}
.mask {
display:inline-block;
width:auto; /* 100% does not work */
background:black;
white-space:pre;
}