jlmakes / rematrix

Matrix transformations made easy.
https://rematrix.now.sh/
MIT License
430 stars 13 forks source link

Can some common usage examples be added ? #7

Open iongion opened 5 years ago

iongion commented 5 years ago

First of all, this is so good 👍 My linear algebra is dead in the water, what do you think of adding some methods or examples on how to:

1) Pan with a pivot 2) Zoom with a pivot 3) Adding constraints such as limiting transform to parent bounding box

jlmakes commented 5 years ago

Thanks @iongion!

I assumed most developers would discover/use this library as a "lower-level" alternative to CSS Transforms, primarily for its ability to combine transforms. In other words, I expect developers to use Rematrix more or less as they would CSS Transforms.

I think it would be great to add more examples, but beyond the tutorial in the README, I'm not really sure how else to demonstrate other meaningful uses of this library. I'll need some help coming up with more tutorials/usage examples.

fijiwebdesign commented 4 years ago

I want to move an element x pixels on Y axis from absolute position. How do I do that and keep other transforms on the element?

Or how do I reset the Y axis translation to 0.