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

float-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

float-button

A floating button built with vanila JS and svg

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 18 Nov 2020

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