rotate

jquery simple animate/rotate of a css background-image inside a div?

Hi all, I was wondering if anyone could help me out, or point me in the right direction. I'm looking for a snippet of jquery that will automatically change the background image of a div every say 5 seconds or so. My initial bg image is set in css, but i'm not sure how to create the function to make it swap between an array of images? I...

iPhone Autorotate: Replace rotation animation with fade-in/fade-out?

Someone else asked a similar question previously, but I am interested in knowing whether the autorotate feature of the iPhone SDK will allow us to replace the rotation animation with another transition, such as a fade-in/fade-out. For a modal view, we can set the modalTransitionStyle but there is no such property for autorotate. If I c...

Rotate UIView based on UITouch

I'm working on a drawing app. I want the user to be able to "drop" a shape on the screen and then move, resize or rotate it as desired. The problem is with the rotation. I have the moving and resizing working fine. I did this before with a rather complex and memory/processor-intensive process, which I am now trying to improve. I've ...

UIImage resize, crop and rotate with frame

I'm searching for library or just code snippet to provide function like resize, crop with frame and rotate image after user pick image from image picker. Something like on this video: http://www.youtube.com/watch?v=Gb6xncXg1PY (0:55). Maybe someone has the same issue? ...

Maintain frame of UIView after UIGestures

I'm working on an iPad app that will use UIGestureRecognizers to allow the user to pan, scale and rotate objects (subclass of UIView) on the screen. I understand that the [UIView frame] property isn't valid after a transform is done, so I'm trying to take the values of my UIGestureRecognizers and keep the "frame" myself. Here's the cod...

Rotate an image using Javascript

First off, I am currently using JQuery so JQuery solutions viable. I want to rotate an image by a dynamic X degrees which is calculated every sec. Now I had this working perfectly using this JqueryRotate plugin The image is rotated perfectly every sec. But I am trying something a little more complicated now. I want to rotate 4 tra...

Why is the title bar appearing behind the status bar after a rotation?

I have a UIViewController whose view is a UIWebView with an embedded movie. When the movie is playing full screen, and the device is rotated, the title bar ends up behind the status bar after the movie is dismissed. Why might this happen? ...

ipad dev, close keyboard upon rotation

I have an issue where I want the keyboard to resign upon the ipad rotating. If the keyboard is open in portrait, and I rotate to landscape, the keyboard pops up in landscape. I want it to not appear! HOW DO I RESIGN the keyboard when I rotate! I've tried putting: [self.textField1 resignFirstResponder]; in the: -(void)willAnimateFirstH...

Rotating/moving objects on a UIView

I need to rotate and move objects on a UIView when the orientation changes. To that end I have the following in willRotateToInterfaceOrientation if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) { [self repositionObjectAfterRotation:scrollView x:0 y:100 width:480 height:150]; [self repositionObjectAfterRotation:page...

Image rotation with JQuery and rails

Hi, I'm searching for a plugin or a simple way to make an image rotatable by dragging (with the mouse) a button on this image. I want to be able to save the angle rotation too. Does anyone know how to do it easily please? thanks ...

Box2D rotate an object, how?

How i can rotate an object in box2d? private static final double DEGREES_TO_RADIANS = (double)(Math.PI/180); float angle = (float) (45*DEGREES_TO_RADIANS); object.body.setTransform(object.body.getPosition(), angle); but not working.. ...