How to do it...

The following are the instructions:

  1. Open a terminal window, create a new SpinningButton app using the blank template, and navigate to the SpinningButton folder:
$ ionic start SpinningButton blank
$ cd SpinningButton
  1. Install dynamics.js using npm, as follows:
npm install dynamics.js --save
  1. Open and edit the ./src/pages/home/home.html file to replace the content with the following:
<ion-content class="home">  <div class="my-card" #myCard>    <h1>QUOTE</h1>    <p class="body">Always remember that you are absolutely unique.      Just like everyone else.</p>    <p class="name">Margaret Mead</p>  </div></ion-content><ion-fab center bottom>  <button ion-fab #thisEl (click)="animateMe(thisEl)">    <ion-icon name="mic"></ion-icon>  </button></ion-fab> ...

Get Ionic Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.