Implement timer as CSS class