rotate

Very strange behavior with commitanimations after switching xibs then rotating phone...

I have a very strange problem and I am not sure what is causing it. I have some animations on my iPhone apps initial view controller. These are basic and are created using this type of code... [UIImageView beginAnimations:nil context:NULL]; [UIImageView setAnimationDuration:30.0]; [UIImageView setAnimationRepeatCount:1e100f]; [UIImage...

How to spin an android icon on its center point?

I have written the following to spin my icon on the center of the screen and instead it rotates around the upper-left corner (i.e., origin x=0, y=0 of the ImageView). It should be simple to set some attributes of the ImageView or the RotateAnimation, but I can't figure it out. public class IconPromoActivity extends Activity { priva...

Display text vertically (rotated 90 degrees) in IE and Firefox

I have a page that houses an asp GridView and I would like to display the text vertically to allow it to print better. Currently I'm using css to do that: .rotate { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); width: 25px; } Which works in FF except the 25px width is ignored and in IE the width is being set correc...

css text rotate - text only , not parent element

on this page: https://www.bcidaho.com/mammography/ if you click "find a screening center" a table of information comes up... how can i rotate the text in the last 5 cells? obviously cross browser would help... this would allow the table to fit properly... and do i have to set a height on the TDs to make it fit right? ...

Android - Animating Layers in Canvas

I'm trying to get to grips with using 'Canvas' in Android. I'm using SDK 1.5. I've been able to rotate text, but the background gets rotated as well. Ideally, I'd like to be able to put my background image on one layer and rotate text (or zoom text) on a second layer. How would I go about creating different layers on the Canvas? And ...

Rotate HTML with JS as in Photoshop's free transform

I need to rotate some html content (let it be a div) by dragging a block inside it with a mouse. The content should rotate around it's center. Look at http://www.polyvore.com/cgi/app (drag an element from right to left and drag a circle inside it) for an example. Are there any plugins or solutions in js to do it? Thanks in advance. ...

(kind of) rotating and slicing elements of a container in C++

Hi, I have a std::vector that holds a Point struct (x,y,z and some other non-pointer types). These points are control points for drawing a bspline curve. I'm not having trouble drawing the curve, but complications arise when I have to close the curve, which involves adding control points (alredy existing inside the container) in certai...

iPhone/iPad SDK: Touch-spinning an object seemingly in 3D by a series of images

Can anyone kindly put me on the right path as to how to go about animating an object as though it's being rotated by touch+drag? We took images of an object sitting on a rotating tray at 10-degree intervals. I was tinkering with Titanium and had a demo running whereby I simply changed the image to the next (or previous) image in an arr...

Rotating a single image (but not the others) on an html5 canvas?

I have a sprite I'm animating on an html canvas using normal sprite sheet blitting. On certain key events I'd like to change the direction of the sprite (ie, flip it, or rotate it 180 degrees) without changing anything (the other sprites) on the canvas. Does anyone know how to do this? ...

RESOLVED: making a paragraph animate along with rotating image in jquery

Hey all, The problem was the text failed to scroll with images. $(function() { $('#slideshow').crossSlide({ sleep: 2, fade: 1 }, [ { src: '../images/img1.png' }, { src: '../images/img2.png' }, { src: '../images/img3.png' }, { src: '../images/img4.png' } ...

Rotate a UIImage or UIView to a particular angle, NOT an amount of angle.

Objective-C for iOS. How do I rotate an image or view TO a particular angle. I have tried the two methods below, but both rotate the AMOUNT of angle, not TO the angle. Basically I would like to call a method to rotate to 90' and then say call again of 180', and the image/view to finish at 180', NOT an addition of them both (270') which ...

Cocoa Touch - Landscape View

How can I keep my app ONLY in landscape when its using the tab bar templete? ...

Image rotator using mouse drag event in Javascript

Hi, I've been searching for this script all day. does anyone know any such script that I can use to rotate an image using mouse drag event. using javascript. thanks in advance. ...

Objective C: rotate ui image view, then rotate the other way

Hello, I'm new to objective c. My code has a scrolling back ground and in the fore ground is a spinning wheel. I can scroll the back ground and rotate the wheel UIImage view just fine. I'm having an issue with making the wheel rotate in the opposite direction when my background begins to scroll in the opposite direction. Here's my ...

Adjusting div width and height after rotated

If I have these rules: width:50px; height:100px; -moz-transform: rotate(0deg) and then an event changes the transform to: -moz-transform: rotate(90deg) logically, shouldn't that automatically exchange the width and the height? I need the rotate to switch width and height for accurate position detection. Thanks, Joe ...

Vertical Text with CSS

Can I rotate text to be shown vertically using CSS in all browsers back to IE6? For example I need 'WORD' rotated 90 deg left so that 'W' is at the bottom and 'D' at the top. Thanks in advance. ...

Div ID fade code

Hi, I'm a newbie on jQuery. Can somebody help me with my 2days problem. I just in need of a sample code for a fading effect, slideshow. Here's the style. This will be 3 Divs with same class The first div, will show for 6secs then fades out for 2secs before the first fades out the second div will fade in for 2secs this again will sho...

Rotate an image on the entire screen

I can't seem to rotate properly an image on the entire screen. The problem is that when the image rotates, you can see the background in some areas. I want the image to fill the screen also when it rotates. Here is the layout. I've tried different scale types without success. <LinearLayout xmlns:android="http://schemas.android.com/a...

Android animation tween. Rotating star.

Hello everyone, I spent so much time looking into Android animation tween that I wanted to share this knowledge (and maybe others can provide feedback and improvements). I wanted to draw an animation for Android where the following sequence of animation would happen. Star would move to the center from outside of the screen. The star...

Need Help In Solving Rotation Image Problem

Hi guys , I need your help please. I have spent hours trying to solve it but not working. I have an image i am rotating when the user clicks on a button. But it is not working. I would like to see the image rotating gradually till it stops but it doesn't. This it what it does. After i click the button, i don't see it rotating. But wh...