Floating Action Button


Floating Action Button is supported only in Material Theme

Floating action buttons are used for a promoted action. They are distinguished by a circled icon floating above the UI and have motion behaviors that include morphing, launching, and a transferring anchor point.

Layout

Layout of floating action button is very simple. Just put it as the direct child of page or view:

  1. <!-- Page-->
  2. <div class="page navbar-fixed">
  3.   <!-- Navbar-->
  4.   <div class="navbar">
  5.     <div class="navbar-inner">
  6.       <div class="center">Floating Action Button</div>
  7.     </div>
  8.   </div>
  9.   <!-- Floatin Action Button -->
  10.   <a href="#" class="floating-button color-pink">
  11.     <i class="icon icon-plus"></i>
  12.   </a>
  13.   <!-- Scrollable Page Content-->
  14.   <div class="page-content">
  15.     <div class="content-block">
  16.       Lorem ipsum dolor sit amet, ....
  17.     </div>
  18.   </div>
  19. </div>

实例预览