Questions tagged [direction]

The movement or orientation of UI elements in a specific direction. This is limited to the user interface. Some example uses are player movements in games or principal element rotation/animation in UI. Use [directions] for maps navigation.

The movement or orientation of UI elements in a specific direction. This is limited to the user interface.

Some example uses are

  • player movements in games
  • principal direction of element elongation
  • directed animations
  • direction of written characters (ltr, rtl, etc.)
706 questions
15
votes
3 answers

css: dir="rtl" VS style="direction:rtl"

I know how to style when the direction is inline
foo
div[dir="rtl"] { ....; } But how to style
foo
? Both behaves as expected (right "alignment" of text) but I need finer tweaking for some…
frenchone
  • 1,547
  • 4
  • 19
  • 34
14
votes
4 answers

Can I invert the height direction from top-down to bottom-up?

I want to change the height growth path from top-down to bottom-up. Is it possible in CSS? .button { margin-top:200px; margin-right:34px; width:150px; height:45px; background:black; float:right; transition-duration:2s; …
Yashar Shahmiri
  • 141
  • 1
  • 1
  • 5
14
votes
5 answers

HTML Direction rtl issue

I am working on a Multilanguage website , where in a table one of the td needs to be arabic stuff - which we know need to start from right. I tried it in many ways but couldnt crack it . Would be really appreciated if some one could help me :( .…
user3030932
  • 161
  • 1
  • 1
  • 5
13
votes
3 answers

Ionic 4: How to set navigation direction (backward/forward) using routerLink?

Ionic 4 now uses Angular router. Altough it still has its own NavControler, which helps to simulate push / pop navigation style though the navigateBackward and navigateForward methods. So that ion-back-button is shown it is necessary to use…
Natanael
  • 1,326
  • 5
  • 17
  • 34
13
votes
1 answer

iOS Advanced Gestures: Getting Swipe Direction Vector

Looking through the documentation, it seems that the new advanced gestures API doesn't determine the direction of a swipe beyond the basic { left, right, up, down }. I need the start point of the swipe and the direction. Is there anyway to retrieve…
P i
  • 29,020
  • 36
  • 159
  • 267
13
votes
1 answer

Rotate marker based on driving direction

I have a marker in my Google Maps map that looks like this: When the user is driving, I want to rotate it based on his driving direction. How can I achieve this? I should probably use previous location and current location coords for calculation,…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
12
votes
4 answers

Detecting and acting on keyboard direction keys in Java

G'day all, I have a console project where it is intended the user presses the keyboard direction keys (non-numeric keypad) to move an avatar. I am having difficulty coding to check for the press of these keys. In Pascal it was easy enough to use…
elwynn
  • 237
  • 2
  • 5
  • 14
12
votes
2 answers

Image Orientation (python+openCV)

Using Python and OpenCV, I try to read an image which size is (3264*2448), but the resulting size is always (2448*3264). That means the direction of the image is changed by 90 degrees. The code is following: img1 = cv2.imread("C:\\Users\\test.jpg",…
yuanyesjtu
  • 121
  • 1
  • 1
  • 5
12
votes
2 answers

MKMapView Route/Directions

I found that the Google Maps API supports Directions through: var map; var directionsPanel; var directions; function initialize() { map = new GMap2(document.getElementById("map_canvas")); directionsPanel =…
Mark
  • 16,906
  • 20
  • 84
  • 117
11
votes
4 answers

Finding Direction in iPhone like in Compass?

Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS. Does iPhone 3G…
10
votes
1 answer

How to implement basic arrow-key movement in the console window with java?

I'm struggling with trying to find a way to implement basic arrow-key movement in a console window. I have come across a C# script which simply uses a switch statement and some variable's, but my teacher insists on using Java. From some other…
Thomas Linssen
  • 129
  • 3
  • 9
9
votes
1 answer

How do I change the direction of a gradient in tailwind css?

. . . . I have tried the above code. But it's a linear gradient, I want a vertical gradient.
Mohammed Hafiz
  • 91
  • 1
  • 3
  • 7
9
votes
1 answer

Getting the angle from a direction vector?

I have this simple function to set an angle for a vector. It effectively gets the vector's current magnitude (length), calulates the angle and converts the angle from radians to degrees. Then I apply the angle to X and Y, lastly multiplying the…
Matthew Spence
  • 986
  • 2
  • 9
  • 27
9
votes
4 answers

How to change the expand direction on .toggle()?

I am using .toggle() jquery for expand/collapse. Do you know how to change the expand/collapse direction from bottom to top instead of top-left to bottom-right? I am no jquery expert, I found the demo and use these codes... Here is my working file:…
user1717475
  • 239
  • 2
  • 5
  • 10
8
votes
1 answer

WPF: how does FlowDirection.RightToLeft change a string?

I have a FormattedText item. I have the flowdirection set to RightToLeft, and I am not sure how it works. It changes my strings really inconsistantly. I imagined that it would just take a string, and display it backwards (either by characters, or by…
Toadums
  • 2,772
  • 8
  • 44
  • 67
1
2
3
47 48