Inspired by the Mac OSX App FoldingText