sarcadass / granim.js

Create fluid and interactive gradient animations with this small javascript library.
https://sarcadass.github.io/granim.js/
MIT License
5.29k stars 234 forks source link

Add Color-Stop-Position #31

Closed SebaGnich closed 6 years ago

SebaGnich commented 7 years ago

Hello,

is it possible to add the feature with adding a color stop position to each color?

default: ['#fff', '#000', '#f0f'] optional: [{color: '#fff', pos: 0}, {color: '#000', pos: .3}, {color: '#f0f', pos: 1}]

Thanks!

sarcadass commented 7 years ago

This is a good idea, I keep this in the features to add.

17090573124 commented 7 years ago

中文

SebaGnich commented 7 years ago

How is your plan in adding this? If you share your idea/solution, I could try to send you a PR then. If it's like I suggested, I could start right away :)

sarcadass commented 7 years ago

Oh great if you plan to add this ! :smile:.

I added you on the contributors channel on Gitter (https://gitter.im/Granim-js/Contributors). We can talk more in details of the way to implement it.

sarcadass commented 6 years ago

Color-Stop-Position is now supported in V2.0.0 (#46)