premasagar / pablo

Pablo is a lightweight, expressive JavaScript SVG library. Pablo creates interactive drawings with SVG (Scalable Vector Graphics), giving access to all of SVG's granularity and power.
https://pablojs.com
MIT License
413 stars 16 forks source link

Support multiple CSS properties being passed to Pablo.cssPrefix #81

Open premasagar opened 11 years ago

premasagar commented 11 years ago

E.g. Pablo.cssPrefix('transform, transform-origin') or Pablo.cssPrefix(['transform', 'transform-origin']) should return a comma-separated string for all properties:

transform, -moz-transform..., transform-origin, -moz-transform-origin...

This is useful in specifying transitions:

rectangle.cssPrefix(
    'transition',
    Pablo.cssPrefix('transform, transform-origin')
);

would be equivalent to:

rectangle.cssPrefix(
    'transition',
    Pablo.cssPrefix('transform') + ',' + Pablo.cssPrefix('transform-origin')
);