did you consider using masks in CSS?