Book Image

Learning Zurb Foundation

By : Kevin Horek
Book Image

Learning Zurb Foundation

By: Kevin Horek

Overview of this book

<p>Responsive web design is the next big thing in web design right now. It allows you to control and adapt to the user experience across a variety of devices, screens, and resolutions. Foundation is one of the most well-known responsive frameworks available, and allows you to speed up the prototyping, designing, and theming of your web project; as well as allowing you to create your own custom themes to suit your needs. It makes your life easier by giving you a grid, elements, and JavaScript functions that are responsive and easily customized to work with any web or mobile project that arises.</p> <p>This book starts off with teaching you the basics, and gradually moves on to cover the most advanced parts of this amazing framework. You will learn how to use Foundation to prototype, design, and theme your projects as well as discover how to use the framework with any programming language or content management system.</p>
Table of Contents (17 chapters)
Learning Zurb Foundation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. JavaScript

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...