Skip to content

v.3.0.0

Compare
Choose a tag to compare
@karolsw3 karolsw3 released this 10 Mar 09:22
· 122 commits to master since this release
2563808

The whole library has been simplified by reducing it's code and changing method to add new animated gradients.
To initialize the library you have to assign it to a variable:

var gf = Gradientify()

And then just use its methods to make new animated backgrounds:

gf.gradientifize(document.body, [
  'linear-gradient(60deg, rgb(255, 91, 91), rgb(0, 0, 255))',
  'linear-gradient(10deg, rgb(180, 132, 203), rgb(255, 0, 155))',
  'radial-gradient(at center center, rgb(75, 35, 148), rgb(0, 71, 57))',
  'linear-gradient(130deg, rgb(235, 23, 223), rgb(25, 89, 135), rgb(15, 189, 176))'
], 2600)