Toggle switch style tab navigation only works with two tabs

Toggle Tabs
Toggle switch style tab navigation. Currently only works with two tabs.
Donec ullamcorper nulla non metus auctor fringilla. Donec ullamcorper nulla non metus auctor fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit. Nulla vitae elit libero, a pharetra augue.
Made with
HTML
CSS/SCSS
JavaScript (jquery.js)
Author
Derek Palladino
demo
See the Pen Toggle Tabs by Derek Palladino (@derekjp) on CodePen.