Socket
Socket
Sign inDemoInstall

gradient-text

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gradient-text

Easily gradientify your text


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.24 MB
Created
Weekly downloads
 

Readme

Source

Gradient Text

Easily output gradient text

Quickstart

  • require jquery.gradient.text.min.js
  • add a class "gradient-text" to the element
  • set data attributes:
    • data-gradient-text-range - comma separated hex values of colors
    • data-gradient-text-position - tilt range (optional, defaults to "to top right", if you want to do a degree set with deg suffex, e.g. "300deg" )
    • data-gradient-text-percentages - comma separated percentage ranges, they may 1:1 to text-range, so should include the same number. (optional, defaults to linearly distribution)
<h2>Check out this text it is <span class="gradient-text" data-gradient-text-range="#e05252,#99e052,#52e0e0,#9952e0,e05252"> even cooler</span>

History

  • 0.0.1 initial release
  • 0.0.2 documentation added

License

MIT License © Zeno Rocha

Keywords

FAQs

Last updated on 26 Aug 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc