Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

material-ui-animated-fab

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-ui-animated-fab

Animation for FloatingActionButton for Material-UI

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

material-ui-animated-fab

Animated FloatingActionButton for material-ui ^0.18.1

This package provide appearing and disappearing animation of Material-UI FloatingActionButton with onDidLeave() event.

import ReactTransitionGroup from 'react-addons-transition-group'
import AnimatedFAB from 'material-ui-animated-fab'
import ContentAdd from 'material-ui/svg-icons/content/add'

let fab = ''
if (smth) {
    fab = (
        <AnimatedFAB
            key={1}
            style={style}
            onClick={handleFabClicked}
            onDidLeave={handleDidLeave}
        >
            <ContentAdd />
        </AnimatedFAB>
    )
} else if (smth2) {
    fab = (
        <AnimatedFAB
            key={2}
            style={style2}
            onClick={handleFabClicked}
            onDidLeave={handleDidLeave}
        >
            <ContentAdd />
        </AnimatedFAB>
    )
}

<ReactTransitionGroup>
    {fab}
</ReactTransitionGroup>

More extended versin of example located in example.js file in Github repo.

License

MIT license

© Alexey Shildyakov

Keywords

FAQs

Package last updated on 17 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc