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

reactjs-parallax-button

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

reactjs-parallax-button

Bring your react buttons to next level with parallax effect

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

React Parallax Button

Bring your react buttons to next level with parallax effect.

Demo: https://react-prallex-button-dev.surge.sh/

Preview

Preview

Installation

Install module:

 npm i -s react-parallax-button

Import it in your React project:

import { ParallaxButton} from 'reactjs-parallax-button'

Usage

ParallaxButton

This is the most basic components. It allows you to create simple buttons with parallax effect.

All you have to do to create button:

render() {
  return (
    <ParallaxButton text="Amazing button"/>
  )
}

Additionally you can pass few props for custom use:

<ParallaxButton
  text="Custom Button"
  parallaxScale={0.5}
  backgroundStyle={{
    background: 'linear-gradient(right, #fc4a1a, #f7b733)',
    borderRadius: '8px',
    boxShadow: '0 4px 8px rgba(0, 0, 0, .3)'
  }}
  textStyle={{
    padding: '1.5em 2.5em 1.5em 2.5em',
    color: 'white'
  }}
/>

Props Overview

  • text (string): The text displayed on the button.
  • parallaxScale (number): Controls the intensity of the parallax effect. Default is 1.
  • backgroundStyle (object): Custom styles for the button background.
  • textStyle (object): Custom styles for the button text.

Summary

I hope you will like this simple component and use it in your website, also if you have any problems or questions please let me know, I will be more than happy to help you :)

My email: bhuvaneshraja113@gmail.com

Keywords

FAQs

Package last updated on 12 Nov 2024

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