elastic tab animation in html and css