0.1.1 • Published 4 years ago

tinyskeletonjs v0.1.1

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

Installation

npm install tinyskeletonjs
yarn add tinyskeletonjs

Usage example

CodePen to play with

Documentation

  • Override skelton color with :
:root {
  --skeleton: green; /* green background */
  --skeleton-wave: red; /* wave become red */
}
  • Available attributes :
attributetypedefault valueusage
circlebooleanfalsegive skeleton a circle shape (need a width)
placeholderstringnullskeleton take text width (work only on one line)
widthintautogive skeleton a width
heightintautogive skeleton a height
borderRadiuspx or % value0pxchange skeleton borders radius
roundedbooleanfalsegive a border-radius of 10px
linesint0numbers of skeleton lines you want to display

Meta

Create a pull issue if you experience any troubles

Contributing

  • Fork it (https://github.com/Pixidream/nerdfox/fork)
  • Create your feature branch (git checkout -b feature/fooBar)
  • Commit your changes (gitmoji -c')
  • Push to the branch (git push origin feature/fooBar)
  • Create a new Pull Request