项目作者: PraveenJP

项目描述 :
fab button for ionic framework as similar fab button like Linkedin app
高级语言: JavaScript
项目地址: git://github.com/PraveenJP/ionic-fab.git
创建时间: 2016-03-27T05:17:34Z
项目社区:https://github.com/PraveenJP/ionic-fab

开源协议:

下载


ionic-fab button with ionic

fab button for ionic framework as similar animation like Linkedin fab button

alt tag

Using this project

ionic fab directory

  1. CSS file : ionic-fab/www/lib/ionic-fab/ion-fabButton.css
  2. JS file : ionic-fab/www/lib/ionic-fab/ion-fabButton.js

First step to clone the project

  1. $ git clone https://github.com/PraveenJP/ionic-fab.git

Test the app in browser

  1. $ ionic serve
  2. `

Check the app in real device

iOS:

  1. $ ionic platform add ios
  2. $ ionic run ios

Android:

  1. $ ionic platform add android
  2. $ ionic run android

Using fab button

Add css and js file into the index.html file

  1. <link href="lib/ionic-fab/ion-fabButton.css" rel="stylesheet">
  2. <script src="lib/ionic-fab/ion-fabButton.js"></script>

Then add ionic-fab-button dependency into the app.js file

  1. angular.module('starter', ['ionic','ion-fab-button'])

finally place fab button after the ion-content as you want

Right fab button

  1. <fab-button-right target-id="content">
  2. <i class="icon ion ion-plus-round"></i>
  3. </fab-button-right>

Left fab button

  1. <fab-button-left target-id="content">
  2. <i class="icon ion ion-plus-round"></i>
  3. </fab-button-left>

Thats it :)

Happy Coding.. :)