scalacss icon indicating copy to clipboard operation
scalacss copied to clipboard

No support for linear-gradient and other css3 features

Open StefanOrzu opened this issue 8 years ago • 2 comments

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.

StefanOrzu avatar Jun 10 '16 11:06 StefanOrzu

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.

japgolly avatar Jun 15 '16 09:06 japgolly

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.

StefanOrzu avatar Aug 02 '16 11:08 StefanOrzu