![]() |
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on SaaS-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so it’s easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices. The Off-canvas panels are located outside of the viewport and slide in when activated. There are various positions to open the Off-canvas menus ie., it can open from left, right, top or bottom, overlap our content, push our content, and can work with sticky elements. These are responsive mobile patterns, mainly used for mobile screens. This can also be used as a sidebar on medium and desktop screens. Combining with Title Bar means that we use off-canvas along with the title bar as a dropdown menu or a slider to see the menu contents. It is a simple bar that contains the hamburger icon to toggle the off-canvas, along with supporting the left- and right alignments. Foundation CSS Off-canvas Combining with Title Bar Class:
Foundation CSS Off-canvas Combining with Title Bar Attributes:
Syntax: <div class="title-bar"> <div class="title-bar-left"> <button class="menu-icon" type="button" data-open="offCanvasLeft"> </button> </div> <div class="title-bar-right"> <button class="icon-class" type="button" data-open="offCanvasRight"> </button> </div> </div> Example 1: This is a basic example illustrating Left and Right Off-canvas Combining with Title Bar made using Foundation CSS. HTML
Output: Example 2: This is a basic example illustrating Top and Bottom Off-canvas Off-canvas Combining with Title Bar made using Foundation CSS. HTML
Output: Reference: https://get.foundation/sites/docs/off-canvas.html#combining-with-title-bar |
Reffered: https://www.geeksforgeeks.org
CSS |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |