CSS Write-on text effect
CSS HTML JavaScript
Latest commit c6c727c Dec 11, 2016 @tylergaw https > http
Failed to load latest commit information.
images Initial commit Feb 4, 2012
README.md https > http Dec 11, 2016
general-styles.css Updating description Feb 4, 2012
index.html https > http Dec 11, 2016
play-loop.js Moving JS to external Feb 4, 2012
write-on.css Updating docs in CSS Feb 4, 2012


CSS Write-on Text Effect

I'm using -webkit-mask-image with a sprite that contains a frame for each partial path of the text. The text, "Write-on!" is in an h1 element but the mask applied to its parent element starts out at 100% transparent so nothing is shown below it. A CSS animation is applied to the containing element. Each step of the animation changes the -webkit-mask-image-position to advance to the next frame. The animation step percentages are placed close enough together that the interpolation between one frame and the next is not seen.