Questions tagged [translate-animation]

To translate means to change the position of an object so that it gets moved from one place to another in the world (e.g. a person walking on a sidewalk). Translation is not to be confused with rotation, which is about changing the direction an object is "facing" in the world.

407 questions
5
votes
1 answer

Translating and Rotating an Image in 3D using OpenCV

Given a 3 x 3 rotation matrix,R, and a 3 x 1 translation matrix,T, I am wondering how to multiply the T and R matrices to an image? Lets say the Iplimage img is 640 x 480. What I want to do is R*(T*img). I was thinking of using cvGemm, but that…
SeriousTyro
  • 934
  • 3
  • 10
  • 16
5
votes
5 answers

Fullscreen infinite scrolling background

I'm trying to implement a full-screen infinite scrolling background effect, which must extend on the entire height and width of the viewport. Here's the demo. The solution I've tried was to take a wrapper element that has 100vh and 100vw of the…
andreivictor
  • 7,628
  • 3
  • 48
  • 75
5
votes
1 answer

How to use CSS3 transition to enable diagonal movement of inline-block elements?

I have a particular problem that I want to solve with CSS3 transitioning. So I have a container with inline-block elements, and once I select one of the elements, everything else will be hidden and that selected element should move smoothly to the…
Xavier_Ex
  • 8,432
  • 11
  • 39
  • 55
5
votes
2 answers

Top to bottom - translate animation

Need to make next animation (on android 2.2 and above): 1.Moving button from top to bottom (after clicking on him), 2.Moving back from bottom to top (After clicking on him again). First animation works fine, but the second not, the btn "jumps" from…
David
  • 37,109
  • 32
  • 120
  • 141
5
votes
3 answers

Android: Is there any way to get the latest position of View after TranslateAnimation?

I know multiple ways to get location values of a View. getLocationOnScreen() getLocationInWindow() getLeft() However, none of them actually returns the current location of the View I moved by startAnimation() method, but only the original…
Quv
  • 2,958
  • 4
  • 33
  • 51
4
votes
2 answers

Cursor in wrong position in IE11 after CSS transform w/ transition

jsfiddle here This is a bug specific to IE and I'm looking for a work around. When I apply a CSS transform: translate to a text input, that has the focus, with transition set to something valid, the cursor stays in the old location while the element…
wmil
  • 3,179
  • 2
  • 21
  • 24
4
votes
1 answer

Android: TranslateAnimation - move View on top of ActionBar

Is it possible to move a View from the center of the screen up until it is on top of the ActionBar? I know how to make TranslateAnimations, but so far if I move Views up, they end up below the ActionBar.
Terry
  • 14,529
  • 13
  • 63
  • 88
4
votes
1 answer

How a Translate Animation works: Android

I'm trying to move a RelativeLayout using TranslateAnimation. Code I have written for performing the same is: translateAnimation = new TranslateAnimation(0, 0, heightOfRootView-excuseContainer.getHeight(),…
Sanjay Joshi
  • 2,036
  • 6
  • 33
  • 48
3
votes
1 answer

Android Slide Animation Flashing

I am trying to animate an ImageButton. When the button is clicked, I want it to slide to the right. When it's clicked again, it should slide back to its original position. When the animation ends it goes back to the original position therefore I…
simonbs
  • 7,932
  • 13
  • 69
  • 115
3
votes
2 answers

How can I zoom into an ImageView without it jumping slightly elsewhere? (Android)

I'm trying to create an application in which the user can drag and zoom an ImageView. But I'm experiencing problems with the following code. When the scaleFactor is not 1 and the second finger gets down it is translated a little to somewhere else. I…
Mitulát báti
  • 2,086
  • 5
  • 23
  • 37
3
votes
4 answers

Burgermenu: Animation in CSS (Rotate and Transform of "two" lines)

I've been fiddling around with a small problem with an animation that I can't really figure out the problem to. I have this perfectly working example from w3 schools, but my case is a little different. I am trying to have 2 visible lines in my…
Zeliax
  • 4,987
  • 10
  • 51
  • 79
3
votes
1 answer

D3 zoom translateExtent calculation when target smaller than container

For a work project I have a requirement to constrain a zoomable svg element within a container. I have a reduced example of the problem here: https://codesandbox.io/s/ryzp6x5lkn In the above codesandbox I have a red rect contained within a g…
phonicx
  • 479
  • 2
  • 14
3
votes
2 answers

Android -TranslateAnimation not working

I am trying to start a shining affect animation on an Image view. the problem is that the animation does not show on screen. It is work only when I start it inside a button listener. this is my shine_effect.xml file:
m.d
  • 123
  • 2
  • 9
3
votes
1 answer

Place a view exactly over another view using view.animate()

I want to move a view in the place of another view using the view.animate() method. So this is the scenario: I have the following layout: Initial layout (screenshot) And when a tap/clicks the red image, I want that the image to be moved (i.e.…
3
votes
1 answer

Android Translate Animation not working properly

I created the following animation file full_translate.xml
Mahesh Babariya
  • 4,560
  • 6
  • 39
  • 54
1 2
3
27 28