Questions tagged [animation]

Animation is the rapid display of a sequence of visuals in order to create an illusion of movement or change.

Animation is the rapid display of a sequence of visuals in order to create an illusion of movement or change. The elements of animation are typically images or mathematical renderings. Animation effects can be 2D or 3D.

The most common method of presenting animation is as a motion picture or video program, although there are other methods. This type of presentation is usually accomplished with a camera and a projector or a computer viewing screen which can rapidly cycle through images in a sequence. Animation can be made with either hand-rendered art, computer-generated imagery, or three-dimensional objects, e.g., puppets or clay figures, or a combination of techniques. The position of each object in any particular image relates to the position of that object in the previous and following images so that the objects each appear to fluidly move independently of one another. The viewing device displays these images in rapid succession, usually 24, 25, or 30 frames per second.

44523 questions
121
votes
6 answers

CSS3 Continuous Rotate Animation (Just like a loading sundial)

I am trying to replicate an Apple style activity indicator (sundial loading icon) by using a PNG and CSS3 animation. I have the image rotating and doing it continuously, but there seems to be a delay after the animation has finished before it does…
Gcoop
  • 3,372
  • 4
  • 26
  • 35
120
votes
12 answers

Weird uitableview behaviour in iOS11. Cells scroll up with navigation push animation

I have recently migrated some code to new iOS 11 beta 5 SDK. I now get a very confusing behaviour from UITableView. The tableview itself is not that fancy. I have custom cells but in most part it is just for their height. When I push my view…
iur
  • 2,056
  • 2
  • 13
  • 30
120
votes
7 answers

Fragment transaction animation: slide in and slide out

I've check some tutorials for animate transaction between fragments. I've used this method for animation and it works: fragmentTransaction.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right); But I want…
giozh
  • 9,868
  • 30
  • 102
  • 183
119
votes
8 answers

Animate visibility modes, GONE and VISIBLE

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i want to do: I can show and hide, but im not…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
116
votes
3 answers

How to provide animation when calling another activity in Android?

I have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this. When we call another Activity in Android it gives its default…
sunil
  • 9,541
  • 18
  • 66
  • 88
111
votes
6 answers

UIStackView Hide View Animation

In iOS 11 the behaviour of the hide animation within a UIStackView has changed, but I have been unable to find this documented anywhere. iOS 10 iOS 11 The code in both is this: UIView.animate(withDuration: DiscoverHeaderView.animationDuration, …
Infinity James
  • 4,667
  • 5
  • 23
  • 36
107
votes
8 answers

visibility:hidden vs display:none vs opacity:0

I'm currently starting on an animation project. In the project I'll have more than 40000 divs and animate them iteratively. If any of divs are in passive state (i.e. it's not animating at least for 2 seconds), I won't display them to increase…
Cihad Turhan
  • 2,749
  • 6
  • 28
  • 45
106
votes
8 answers

How can I add an animation to the activity finish()

I'm using overridePendingTransition for when my activity is created and that works fine I can see the fade in works great, but when I try and animate the finish on the activity it is still doing the default right to left slide. I first tried…
b-ryce
  • 5,752
  • 7
  • 49
  • 79
105
votes
7 answers

Animate a custom Dialog

I'm trying to have a custom dialog appear as though it's sliding down from a text view. Is this possible? I can't seem to apply any animation to dialog class. I've tried this line in the constructor, but it has no…
FMLDev
  • 1,051
  • 2
  • 8
  • 3
104
votes
5 answers

How do I find out with jQuery if an element is being animated?

I'm trying to move some elements on the page, and during the time the animation occurs, I want to have "overflow:hidden" applied to an elemnt, and "overflow" back to "auto" once the animation is completed. I know jQuery has an utility function that…
Radu
104
votes
10 answers

CSS3 equivalent to jQuery slideUp and slideDown?

My application is performing poorly with jQuery's slideDown and slideUp. I'm looking to use a CSS3 equivalent in browsers which support it. Is it possible, using CSS3 transitions, to change an element from display: none; to display: block; while…
Mike
  • 2,103
  • 3
  • 18
  • 24
104
votes
11 answers

UITableView row animation duration and completion callback

Is there a way to either specify the duration for UITableView row animations, or to get a callback when the animation completes? What I would like to do is flash the scroll indicators after the animation completes. Doing the flash before then…
Daniel Dickison
  • 21,832
  • 13
  • 69
  • 89
103
votes
10 answers

Avoid animation of UICollectionView after reloadItemsAtIndexPaths

UICollectionView animate items after reloadItemsAtIndexPaths is called (fade animation). Is there a way to avoid this animation? iOS 6
Marcin
  • 3,694
  • 5
  • 32
  • 52
102
votes
4 answers

How to create a UIView bounce animation?

I have the following CATransition for a UIView called finalScoreView, which makes it enter the screen from the top: CATransition *animation = [CATransition animation]; animation.duration = 0.2; animation.type = kCATransitionPush; animation.subtype =…
WunDaii
  • 2,322
  • 4
  • 18
  • 26
100
votes
5 answers

jQuery slideUp().remove() doesn't seem to show the slideUp animation before remove occurs

I have this line of JavaScript and the behavior I am seeing is that the selectedLi instantly disappears without "sliding up". This is not the behavior that I expected. What should I be doing so that the selectedLi slides up before it is…
Eric Schoonover
  • 47,184
  • 49
  • 157
  • 202