In this chapter, we will be covering how to use the Foundation JavaScript components. They will add a lot of advanced interactivity to your projects and make your projects shine. We will cover the following topics:
Magellan sticky navigation
Off-canvas navigation
Interchange responsive content
Orbit slider
Clearing
Forms
Form validation
Reveal
Joyride
Accordion
Tabs
Before we get into the JavaScript, make sure you copy your code folder from Chapter 4, Elements, and make a folder in Chapter 5, JavaScript. Let's delete a bunch of elements so we can start with a cleaner file, but you will likely want the work we did in Chapter 4, Elements, for reference later on in this book when we add some of those elements back in or when you use Foundation in your projects after this book.
So let's delete the code following this image tag on or around line 47:
<img src="http://placehold.it/1000x250">
Then stop before the following line of code:
<script src="js/vendor/jquery.js"></script...