Closed ajaymathur closed 7 years ago
thanks for reviewing :) I think reverse option is not needed for border-radius, as border radius cannot be in other direction (less than 0)
Please suggest if my understanding is wrong. :)
I was thinking about going from max to min instead of min to max ;)
cool, I will make the change. :)
Hope I have go it correct :)
You code do exactly what it should ;) ! But in, a worry of having a unified code base, could you use the same trick as the shake dance ? it would be perfect ! Thanks for you work :)
if( option.reverse ) {
max = -max
min = -min
}
This technique is not applicable for border-radius, as we use (max - min) * value
to calculate border radius with pulse.
Always max will be > min. Therefore if we do max = -max
and min = -min
then (max - min) * value
will be negative and negative border-radius is not valid.
Thanks :)
refers feature https://github.com/Okazari/Rythm.js/issues/40