Socket
Socket
Sign inDemoInstall

float-button

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    float-button

A floating button built with vanila JS and svg


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Liquid Button

A Liquid effect button built uisng svg and vanila JS, NPM Repository

Tweet



To use the LIquid button in your project -

    • npm install float-button
    • Then Import float-button in your react project

    import FloatingButton from 'FloatingButton/src/FloatingButton' if generate error then copy the LiquidButton.js file from the node_moudle folder and paste inside your src folder and import as import FloatingButton from './FloatingButton'

    • use <FloatingButton class="your-class-name-here" name="FirstButton" background="black" firstcolor="#1e88e5" secondcolor="yellow" /> -------- put your desired colors -----
    You should have different class name each time you are using the component like -

    ReactDOM.render(<div> <FloatingButton class="floating-button" name="Floating Buton 1" background="black" firstcolor="#480048" secondcolor="#C04848" /> <FloatingButtonMain class="floating-button2" name="Floating Button 2" background="black" firstcolor="#12D8FA" secondcolor="#1FA2FF" /> </div>, document.getElementById('root'));

    see the above example it will show 2 buttons if you want to use more than your class name should be different each time.

    Now you can use more than one liquid-buttons on same page.

    Feel free to contribute on github - ( https://github.com/karan-singh-2607/float-like-button )

This project was bootstrapped with Create React App.

License: MIT

Keywords

FAQs

Last updated on 18 Nov 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc