A floating round material button that has animations between states.
Currently the following icons/states are supported:
- equals
- check
- min
- cross
- close
- hamburger
- search
- stop
- play
- pause
- arrow-down
- arrow-right
- arrow-left
- arrow-up
Either download/clone this repo or install it with yarn/npm or bower:
yarn add animated-material-button
npm i animated-material-button -S
bower install animated-material-floatbutton
Simply use the following snippet:
<div class="animated-material-fab">
<div class="icon-holder equals">
<div class="icon-bar bar1"></div>
<div class="icon-bar bar2"></div>
<div class="icon-bar bar3"></div>
</div>
</div>
For a example check the example dir.
Change the class equals
to any class you want to use (see States)
This lib plays pretty nice with a ripple effect library I made. Which is available here See the example dir for a example on how to combine these.
- Play and pause button are a bit funky. Need to find a way to display them without border attributes.
- Changing the scale in Chrome first changes the icon-container (blue circle) and the icon after that.