How to realize this tabs?

image
as the picture is , when i click on one this tab the active effect can look like a blue stripe of bottom ,so any solution for me?
btw i‘ve found http://codepen.io/anon/pen/embrNM this example which is very similiar but i dont know how to change
thank u very much!