Most voted "rotation" questions
Rotation is the circular motion of an object around a center or point of rotation.
Learn more…14 questions
Sort by count of
-
11
votes1
answer1015
viewsCalculations used to rotate an image on canvas
I have the following code below to be able to rotate an image through the canvas. function qs(selector) { return document.querySelector(selector); } function rotacionar(canvas, image, angle) {…
javascript mathematics canvas image-processing rotationasked 7 years, 8 months ago Wallace Maxters 102,340 -
8
votes1
answer67
views -
3
votes0
answers1130
viewsRotate image while maintaining aspect ratio
I need to rotate an image and maintain the ratio relative to the parent DIV without 'escaping'. I’m just using rotate(90deg) and the original image properties, as in the example. There are some…
-
3
votes1
answer382
viewsHow to rotate a letter?
I’m trying to rotate a letter of a word to make it look like the company logo. This would be the Logo: Here’s the code I tried to use to rotate <h1 class="text-center"><span…
-
3
votes1
answer1337
viewsHow to move and rotate where the mouse click is?
I created a script in which my character moves through click of mouse but there’s a problem: it’s not spinning in position Y, this is the condition I had to create for it to Rotacione on the axis X:…
-
3
votes1
answer191
viewsRotate image around the center itself
I am developing a C# application and would like to know how to freely rotate a bitmap which is drawn in a pictureBox without rotating all _pictureBox_e so that the bitmap Rotacione around its own…
-
1
votes1
answer63
viewsProblem when trying to rotate a triangle using the javascript canvas
Guys, below, I have the following codes in a basic structure using html, css and javascript. I tried anyway, but I couldn’t rotate the triangle in the middle when the user slides the input range.…
-
0
votes2
answers59
viewsScroll effect with opacity works but with transfform does not
Good evening, I have this code that works one part and the other part does not. $(document).on('scroll', function() { /* funciona */ var max_opacity_arrow = 0.3; var min_opacity_arrow = 0.1; var…
-
0
votes2
answers226
viewsJscript and CSS - Rotate by running the div instead of an image
Good morning, I used a Javascript library to rotate an image by clicking on it, in a section of javascript I put what will rotate when clicking:$("#conteudo").rotate({ The problem is it’s spinning…
-
0
votes1
answer28
viewsAndroid capture device rotation without rotating the application
I have an application with Android Webview, my Activity is configured to portrait: <activity android:name=".activity.MainActivity" android:screenOrientation="portrait"…
android android-layout android-activity rotation orientationasked 5 years, 9 months ago Leonardo Patricio 1,656 -
0
votes1
answer620
viewsTranslation, rotation and scale of a rectangle
Imagine the following rectangle A and rhombus B: Rectangle A has dimensions 4200 by 3000. Rhombus B has the maximum dimensions of 167 by 167, its sides have 98 by 98. Rectangle A is equivalent to…
-
0
votes1
answer44
viewsProblem rotating an object continuously
I created a circle to rotate 45 degrees every time I click the arrow, either right or left. For this I am using CSS and jQuery. (FIDDLE NEXT) I did the following function spin(direction) so that it…
-
0
votes1
answer77
views -
-1
votes1
answer16
viewsLock rotation when clicking
I’m making a Puzzle but I’ve caught it in one part. It seems simple, but I can’t find a solution. Well, I’m using the mouse to click on an object so that it will rotate to a certain angle, but I…