phlsa / gmynd-old

A toolkit that makes creating graphics easy
2 stars 0 forks source link

Better CSS abstractions for transforms #3

Open phlsa opened 11 years ago

phlsa commented 11 years ago

Usually, CSS only allows for one transform-attribute. Maybe we can find a way to abstract this away and use as many rotate, translate and scale transforms as we want. Also, if I currently apply a partial transformation (say, just a rotate), all other transformations will be lost.

bohnacker commented 11 years ago

Plus, the transformations seem to be lost when another property like 'left' is set. See examples_real_world/Example_02.html

phlsa commented 11 years ago

Just fixed that bug in 8d5205cb6e3be14a8b85e1ba759a0b8b8e16db96 This issue remains unresolved though. I guess we need to manually deconstruct the transform matrix to fix this: http://css-tricks.com/get-value-of-css-rotation-through-javascript/