Questions tagged [animation]
18 questions
6
votes
2 answers
Design pattern for overlapping actions and animations?
Is there a design pattern for dealing with overlapping UI actions and animations? A few examples:
Let's say I have an interactive table row that expands to reveal an extra control when the user clicks on it, and vice versa if they click on it…

Archagon
- 1,187
- 1
- 7
- 15
5
votes
5 answers
Wrong use of CSS3 Animations or not?
Well, I started using some CSS3 animations a couple of days ago. After hardcoding I've started trying different tools like Adobe Edge Preview version.
I made a short animation to get the functionality of the…

René Stalder
- 153
- 5
4
votes
2 answers
What's the best way to use requestAnimationFrame and fixed frame rates
I recently got into using the HTML5-requestAnimationFrame-API a lot on animation-heavy websites, especially after seeing the Jank Busters talk. This seems to work pretty well and really improve performance in many cases.
Yet one question still…

m90
- 151
- 1
- 5
3
votes
1 answer
How do I cleanly design a central render/animation loop?
I'm learning some graphics programming, and am in the midst of my first such project of any substance. But, I am really struggling at the moment with how to architect it cleanly. Let me explain.
To display complicated graphics in my current language…

GladstoneKeep
- 2,629
- 4
- 19
- 15
3
votes
2 answers
Are animations and other eye candies considered non-functional requirements?
I've seen many lists on the internet that includes many 'ities' (maintainability, scalability, portability, etc), but I'm not sure if animations, screen transitions, and similar features are functional or non functional requirements.

Julio Rodrigues
- 940
- 2
- 9
- 19
2
votes
1 answer
Animations and React -- is it bad practice to mix them?
I have been in arguments with programmers that mixing elements with animations and react is very bad practice, and that all animations should be in a style sheet because that is something presentational that is only concerned with CSS.
However, I…

Crow
- 121
- 2
2
votes
1 answer
C++ - How should I design my animation class?
I am working on my first sizable C++ program; a 2-D mario platformer remake.
I currently have an animation class that encapsulates all of the functionality of my animations for all the bad-guys called Animation. Then, I wanted to create the…

Brandon Chatham
- 23
- 3
2
votes
3 answers
Animation in Swing
I have a project written using Swing, and I want to make it more smoothly (like JavaFX is) by adding animation to some components(JButton, JScrollPane, JSplitPane) using javax.swing.Timer.
UPD: That is not a game. I want to use the Timer for short…

SeniorJD
- 123
- 7
1
vote
1 answer
Does requestAnimationFrame() really align with monitor refreshes?
Take this code:
requestAnimationFrame(function (timestamp) {
console.log('one', timestamp);
});
requestAnimationFrame(function (timestamp) {
console.log('two', timestamp);
});
// logs:
// "one", 184.6999999834225
// "two",…

callum
- 10,377
- 9
- 30
- 33
1
vote
0 answers
Approach for interruptible transition animations
I found it's very complex to manage transitional animations. For example, when changes to a model get reverted before the animations have completed, the animations for previous changes should stop and the animations for the other direction should…

Sherwood Wang
- 373
- 3
- 10
1
vote
1 answer
Custom animation iOS
I have seen animation, and i can't figure out how to do something like in this video(youtube). I want to discuss how it's made. I don't think that they're using sprites.
I have one idea how to do this: for example i want to create animation of…

Vlad Z.
- 113
- 4
0
votes
1 answer
Data structure for effects animation?
I'm making a prototype for a game. I'm working on effects at the moment, but more generally animation.
Currently, I have list where newly spawned effects are added to. Then on the update section of the game loop, I'd let each effect change their…

user2738698
- 957
- 1
- 8
- 20
0
votes
0 answers
Alternatives to browser based animations
I have developed a scrolling guide for a television company but attempting to use CSS animations, jquery animate, and velocity.js have all failed me. They work as intended but the animation is choppy and almost gives a pulse feel to it. I…

chadpeppers
- 101
0
votes
2 answers
Looking to simulate the rolling of a ball around a roulette wheel, while the resulting number is already known
I want to make a roulette board with a ball spinning and landing on a certain field.
The catch is that the field the ball will land on, is known beforehand.
I want the animation to look somewhat realistic, even though the result is decided…

Qqwy
- 4,709
- 4
- 31
- 45
0
votes
2 answers
2D Image Creator for a video game
I need to make a few images for an arcade video game I'm making in Java. As of right now, I have drawings that animate, but there are two problems.
The drawings are horrible, and as a result, the game won't get enough attention.
It's a pain to have…

kullalok
- 1,075
- 3
- 9
- 10