Closed abkarim closed 12 months ago
hey @abkarim
I updated the parsing function to except shorthand values for directions (to top, to bottom, to bottom left etc). However, I am not sure what the additional string after your css gradient is i.e. ", name: "Vertical soft sandstone to white: Invalid input not EOF.
From what I can tell, your value is "linear-gradient(to bottom, #C2A990 0%, #F9F9F9 100%)", name: "Vertical soft sandstone to white"... if you remove the string from the end, resulting in "linear-gradient(to bottom, #C2A990 0%, #F9F9F9 100%)" if will work fine.
Hope this helps.
I'm building a WordPress plugin, and these gradients value is generated dynamically by the user or by the theme.
My gradient value is
linear-gradient(to bottom, #C2A990 0%, #F9F9F9 100%)", name: "Vertical soft sandstone to white
it doesn't have an angle. What can I do in this case ? I getting error for this.ERROR:
Uncaught Error: NaN%, RGBA(207,202,190,1) 0%, rgba(249,249,249,1) 100%): Missing )
It would be great if this package can handle any valid css gradients value. Can you help me with a path to achieve this target ?
My Code
All erros