Lapple / react-transitive-number

React component to apply transition effect to numeric strings, a la old Groupon timers
213 stars 21 forks source link

ClassName for each tag containing number? #9

Closed NeXTs closed 8 years ago

NeXTs commented 8 years ago

Hey there, Aziz!

Would you consider adding optional prop alike numberClassName that will be added to each span tag containing number?

It's needed for applying css rules with text-gradient using this technique as for now I have to specify it like > span > span > span which is non-optimal considering how browsers parse css rules

It's easy to implement and shouldn't increase the file size significantly

Thanks! Great lib BTW

NeXTs commented 8 years ago

oops just realised that it won't work in proper way because each number gets full gradient :(

when idea was to apply one gradient for all numbers (2311)

NeXTs commented 8 years ago

not relevant anymore