Can you change the axis of rotation

24 views
Skip to first unread message

Valsgalore

unread,
Sep 21, 2011, 10:38:37 PM9/21/11
to jQueryRotate
Hi! I've been looking at this plugin because I think I might be able
to use it in a project I'm working on.

But I haven't been able to tell whether you can only rotate images
around their center, or if you can change the axis of rotation (e.g.
keep the bottom right corner in one place and rotate the rest of the
image around it).

If this is built in, great! If not, can anyone think of a modification
to the code that might make this possible?

Thanks!

keith73

unread,
Oct 24, 2011, 11:47:32 AM10/24/11
to jQueryRotate
I found a way around that by using a container. I have an image
positioned absolute to top right inside container. this puts the lower
left corner of the image in center of container so that when container
is rotated with centerpoint as the axis, it looks like the image is
rotating from it's lower left corner.

I don't have practical examples to show, but that's something I tried
that worked in one instance. It's not perfect, but it's an idea that
could help someone else.

- keith
Reply all
Reply to author
Forward
0 new messages