scalacss
scalacss copied to clipboard
No support for linear-gradient and other css3 features
I'm trying to add gradient backgrounds to some elements but I'm unable to find a solution. I presume there's no support for those yet or they're undocumented.
The thing I'm trying to translate into scalacss is this:
background: linear-gradient(to right, rgba(248,205,4,0) 25%,rgba(248,205,4,1) 50%,rgba(248,205,4,0.96) 51%,rgba(248,205,4,0) 75%);
Other features I haven't managed to get working are the shorthand notation for transitions and transformation rules.
Could you shed some light on this please? Thank you.
Hi. There isn't a type-safe API for it as yet, so you must create it using a plain string.
It does have a bit of support in terms of auto-prefixing tho. See: this gets translated into this.
Thanks, that can get the job done for now. I will be great to see this feature (and others) supported as type-safe, but I'm sure it's just a matter of time.