Foundation CSS Magellan
Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework is based on bootstrap, which is similar to SaaS. It’s more complex, versatile, and configurable. It also comes with a command-line interface, making it simple to use with module bundlers. Email framework provides you with responsive HTML emails, which can be read on any device. Foundation for Apps allows you to build fully responsive web applications.
Foundation CSS Magellan is used to jump to the given target when the link is clicked. It is used when we want to jump to some specific section directly without scrolling down the webpage.
In this article, we will discuss Foundation CSS Magellan.
Foundation CSS Magellan Topics:
- Setup: We will create the basic Magellan.
- Sticky Navigation: We will create Magellan with sticky navigation.
Foundation CSS Magellan classes:
- data-magellan: This class is used to create the link of the section.
- data-magellan-target: This class is used to create the targeted section when we click the link.
- data-magellan-arrival: This class is used to create the fixed navigating Magellan.
- data-magellan-destination: This class is used to create the destination section when we click the element.
<ul class="menu" data-magellan> .... </ul> <div class="sections"> .... </div>
Example 1: The following code demonstrates the Foundation CSS Magellan Setup.
Example 2: The following code demonstrates the Foundation CSS Magellan Sticky Navigation.