1.1.0 • Published 4 years ago

beautylinks v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

beautylinks

Transform your traditional link into beautiful button

Installation

npm i beautylinks --save

import { beautylinks } from 'beautylinks';

<a href="/go/to/somewhere" class="theLink">My Beauty Link</a>

beautylinks({
  domID: 'theLink',
  padding: '10px',
  width: '100%',
  backgroundType: 'linear',
  solidColor: 'yellow',
  degrees: 90,
  firstPortion: 0,
  secondPortion: 100,
  firstColor: '#fff',
  secondColor: '#000',
  fontColor: 'brown',
});

Options

support options :

Option NameDescriptionValue SetDefault Value
domIDElement ID you want to transform (required)string
paddingPadding valuepx, rem, %10px
widthWidth valuepx, rem, %100%
backgroundTypeColor style for backgroundsolid, linear, radialsolid
solidColorColor code for solid backgroundcolor Hexcode or color name#000
degreesColor position degrees value for linearnumber90
firstPortionFirst color portion between 0 - 100% only for linear & radial typepercent0%
secondPortionSecond color portion between 0 - 100% only for linear & radial typepercent100%
firstColorColor code for left position only for linear & radial typecolor Hexcode or color name#fff
secondColorColor code for right position only for linear & radial typecolor Hexcode or color name#000
fontColorColor for fontscolor Hexcode or color name#000

Credits

beautylinks - Created by Agung Setiawan

Next Features

beautylinks is one of my long term project call is Html Rocks, I will more and more additional project to make easy for create beautiful html style with ease implementation.

1.1.0

4 years ago

1.0.0

4 years ago