These are chat archives for ractivejs/ractive

20th
Jul 2017
kouts
@kouts
Jul 20 2017 15:18
just fade out some divs and then unrender but anyway these are some tests I'm doing so nothing really important
@evs-chris thanks for your help
Joseph
@fskreuz
Jul 20 2017 15:19
Isn't that something that's best done with a transition (outro)?
Chris Reeves
@evs-chris
Jul 20 2017 15:19
yep, component detachment will wait on transitions to finish
kouts
@kouts
Jul 20 2017 15:29
I'll try transitions thanks
Chris Reeves
@evs-chris
Jul 20 2017 21:35
I had occasion to make a color interpolator that works with hex, rgb, rgba, and rgba with hex + alpha (rgba(#0078e7, 0.4))
it comes up to roughly 1k of minified code, and I think it would be pretty beneficial to css fns, as the code also supports getting luminance of the color, determining whether a color is light or dark, and lightening and darkening a color
any opinions on adding it to the cssfn PR?
aside from that, interpolators aren't automatically used, so any opinions on adding any registry interpolators to the heap that get tried by default?
there's also a bug wherein the interpolator option is ignored when passed to ractive.animate
Chris Reeves
@evs-chris
Jul 20 2017 21:45
giant playground link that may break because it's pointed at my dev ractive
Juan C. Andreu
@andreujuanc
Jul 20 2017 21:48
Nice!
very nice
when changing percentage does not animate :(
Should it_
'
?
Chris Reeves
@evs-chris
Jul 20 2017 21:48
nah, but not hard to fix
I just didn't throw the animate in there
Juan C. Andreu
@andreujuanc
Jul 20 2017 21:48
Oh i sse now
didnt catch that
Juan C. Andreu
@andreujuanc
Jul 20 2017 21:51
Breaks if alpha is 1 , D:
Sorry xD
Chris Reeves
@evs-chris
Jul 20 2017 21:51
1.0 :laughing:
I missed the integer cases
just needs a bit more regex magic