Skip to content

Drop in React component for creating a neat outline hover effect

License

Notifications You must be signed in to change notification settings

AntCas/dynamic-outlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamic-outlines

React Dynamic Outlines

Demo of dynamic outlines in action

npm package download

Live Example

Quickstart

  1. Install the package

  2. Create a parent component with height, width, and relative positioning

  3. Make DynamicOutlines a child of the component and pass it the parent id as a prop

Options

borderColor color of the border lines

borderGap distance between parent and the border lines

borderWidth width of the border lines

transitionTime how long it takes the border lines to grow

Running the demo

  1. Clone the repo

git clone https://github.com/AntCas/dynamic-outlines.git

  1. Install dependencies

cd dynamic-outlines && npm install && cd demo && npm install

  1. Run the demo

npm run start

About

Drop in React component for creating a neat outline hover effect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published