animation

WPF: Returning a method AFTER an animation has completed

With reference to this programming game I am currently building. I have a Class Library (dll) that will have a method Run which will be composed of something like such: public class MyRobot : Robot { public void Run(} { while (true) { Ahead(200); //moves the bot 200pixels TurnLeft(90); /...

Javascript Sprite Animation Library for Canvas Tag

Can you point me to a good Javascript sprite animation library using the HTML Canvas tag? A few Google searches only turned up some non-canvas projects. I am looking for something clean and simple. Thanks. ...

Animate WPF Datatemplate when item added to Listbox?

Hello, In my project I have a WPF Listbox bound to an ObservableCollection. Every time I add a new item to the Collection the same item is added to the Listbox automaticly. To display the items in the Listbox I use a XAML Datatemplate. What I want to do is animate an item once when it is added to the Collection/Listbox. Can this be don...

Best animation to show addition/removal of list element

What is the best way to communicate visually that an element has been added to or removed from a list of items? (I'm going for usability, not gratuitous eye candy) Slide the other items up or down to show the new item or hide the deleted item Fade items in or out, but do not animate the other items A combination of #1 and #2 No animat...

Why is my WPF Path Animation flickering?

Why does the following animation flicker and act goofy on MouseLeave? If it can be repro-ed, I'll post a screencast. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Canvas> <Path Fill="Blue" Margin="15,15,15,15"> <Path.Data> <!...

How to animate a custom Google Maps marker along a route?

I have written a small application for a handheld device using JavaScript and Google Maps API's, now II need to move my marker icon anywhere on the map along a route using a timer function. I have a man icon and I need to move it automatically on the map. How can I do this? ...

Why does this move the elements 4 times?

Why doesn't this work right? The effect I am trying to achieve is the blocks move from left to right, and start "pushing" the next ones along. It seems to be a problem with nested callbacks performing animations on the outer elements. Can anyone explain this? It sorta works, but everything moves too many times. <html> <head> <style> .i...

WPF starting animation from vb.net code giving error

I'm trying to trigger an animation declared in the window's XAML file from the window's vb code when an event is raised (calling a function), like a window's "loaded" event. Here's how I declare the animation (as a storyboard): Dim StartAnimation As Storyboard = DirectCast(FindName("ServiceOn"), Storyboard) Dim StopAnimation As Storybo...

Animation and logic

I have a question not necessarily specific to any platform or API but more specific to interactions in code between animations. A game is a good example. Let's say the player dies, and there's a death animation that must finish before the object is removed. This is typical for many cases where some animation has to finish before continu...

How to animate the flex chart axis when the maximum of the data changes?

I have a flex chart feed with multiple data sets, and I want to display only one of the data set in one view. So I created multiple buttons to select different data sets. Whenever the user clicks one of the buttons, I adjust the maximum of the vertical axis so that the chart can represent the data normally (i.e. not to display the fluctu...

jQuery Animation problem using nested tables

Hi, I have a problem with animations using jQuery on nested tables. I want to make a table that is a bit like a treeview, with a little + / - to expand and get more details about the clicked row. How can I modify the following code for the animations to work both in Internet Explorer 6.0+ and in Firefox ? I can change the markup or the...

How can I fade in and then set focus in jQuery?

I've got this little snippet of jQuery: $('#showlink').click(function(){ $('#linkwindow').show('fast'); $('#linkwindow input').focus(); } How do I call the focus only after the fade has ended? Sometimes it happens slightly before and I end up with a weird rendering bug. ...

Active rendering and the EDT (Swing animation)

How should I run animation in a Swing applet? I have an animation thread performing active rendering and it initially animates fine. Sometimes (anywhere from 1 minute to 2 hours later) it begins to fail to update the screen and only the sounds occur. I believe this is due to the fact that the paint is not performed from the EDT causing ...

Is there any way to make two jQuery animations run (properly) simultaneously?

I have an event listener that calls two animation actions. Unfortunately their starts are staggered by a small amount (e.g. the first in the function starts first). Does anyone know a way to properly sync them up? Here's my code: $("#nav ul li a").hover( function(){ $(lastBlock).children("div").animate({width: "0px"}, { qu...

Jquery animate problem..

Hey guys, I have the weirdest of problems. I have a jQuery function that animates the result bars of a poll. function displayResults() { $(".q_answers1 div").each(function(){ var percentage = $(this).next().text(); $(this).css({width: "0%"}).animate({ width: percentage}, 'slow'); }); } As you can ...

Animation effect in .NET?

Can someone point me to a C# open source implementaion with a simple image animations. e.g. I feed the input image to animator, and the animation code produces a few dozen of images which if displayed sequentially looks like animation. I am not something extremely fancy - a simple DirectX filter like animations would do. ...

Start animating div when...

I am working on a rather complex jquery-to be animation which moves various div's based on different trigger events. To simplify the scenario I am trying to solve, see the following: I have DIV 1 and DIV 2 on the screen DIV 1 needs to animate from position A to position B DIV 2 needs to also animation from position C to position D, how...

How do I reference an object, add a tween to it and put this in an Eventlistener in AS3?

I'm having quite some trouble to try and get an app I wrote in AS2 to AS3. The reason I need to go to AS3 is something icky, so I won't go into detail about it. I've got 90% of the application running with the new code. Now I've come to the point where I have to convert this code from AS2, function setAnimation(theObject,id) { theO...

How do I track an animated object in Python?

I want to automate playing a video game with Python. I want to write a script that can grab the screen image, diff it with the next frame and track an object to click on. What libraries would be useful for this other than PIL? ...

Dynamically Change a Rotation Animation in WPF

I am using a DoubleAnimation to anamiate the Angle property of a RotationTransform. Several times per second, I need to change the rate of the rotation in response to external data so that the rotation speeds up and/or slows down (smoothly) over time. I am currently doing this by using a DoubleAnimation that repeats forever from 0.0 to 3...