How to create a line input effect?