animation

jquery toggle effect resetting element width

For some reason when i use the jquery toggle function with a speed option, the element width is animated at the same time (from 50% of the width to its full extent). I don't recall noticing it in previous version of jquery. Is there a way to make sure the toggle doesn't touch the width? The problem is that i have some floated content in ...

Scrolling text update problems

I have some scrolling text animation modified from this post on MSDN. I'm having two issues with it, though. The first is that I need to be able to update the text within at periodic intervals. However, when OnTick() fires, I get the following error, "The calling thread cannot access this object because a different thread owns it." I'v...

How do I use SwingWorker in java?

Hi all With regards my question (http://stackoverflow.com/questions/772713/call-repaint-from-another-class-in-java). I'm new to java, and I've had a look at some tutorials on SwingWorker, but I'm unsure how to implement it with the example code i gave in the previous question. Can anyone explain how to use SwingWorker with regards my li...

Should I be using SwingWorker, threading or a recursive update for this animation?

Hi all. As I have said in my previous questions, I'm still new to java. I'm developing a tile based game in java. The movement is on a grid. I'm at the stage where I'm implementing character movement. My plan was, to use the code which I pasted in this question (http://stackoverflow.com/questions/772713/call-repaint-from-another-class-in...

Events on animations in expression blend 2 silverlight

Hi, I have just created a simple animation. Lets say that in one frame I have an image of the world. I would like to create an event when a certain country is chosen. How can I allow for the event to be triggered by clicking on one particular country in an image? e.g. just displaying the name of the country, etc Thank you Extra info: ...

PropertyAnimation

Does anyone know of any detailed documentation for MS Ajax animations? Specifically,I'm looking for help with the PropertyAnimation, but I can't find anything except the "reference" which doesn't give me enough to go on. ...

Smooth ( animated ) GUI transitions

From time to time you can see smooth animated transition displayed for resizing, expanding and appearing graphical controls. Not just some tail-wagging file search dog, but animation of widget configuration changing it's state structurally and/or geometrically. I haven't used Windows Vista much, but sure know that on XP you can set this...

WPF: Animate Height of ListView when final height is unknown

I have a ListView, that is defined very simply in my XAML like so <ListView Name="myListVew" MaxHeight="200" Visibility="Collapsed"> <ListView.View> <GridView> <GridViewColumn Header="Line" Width="Auto" DisplayMemberBinding="{Binding Line}" /> <GridViewColumn Header="Error" Width="Auto" DisplayMemberB...

WPF - Databind slider value to StoryBoard?

Hi, I'm trying to create a sound volume control and for that I've created a storyboard which is animating the volume visually. And I've put this inside an common slider control. And I want to databind the value of the slider directly to the storyboards timeline position. If the slider is value 0, then the storyboard should be at 00:00 et...

Animating Background Image

I Like using Jquery and its companion Jquery Ui but can not find a way to animate background image over a certain period of time like 5 seconds. I can not do something like: $('sampleelement').animate({'background-image':'url(hello.jpg)'},5000); Any ideas?? ...

IPhone like scrolling on Silverlight ListBox

Hi! I need a listbox with IPhone-like functionality for Silverlight. That is, animated scrolling, and click and drag to scroll. Scrolling will continue a bit after the mouse up event based on the "speed" of the dragging. I've search and found no control vendors providing this. So question is how should I build it? I need some hints to g...

How to go to the next level integrating animations in WPF applications with Blend / VS2008?

I have been able to create little animations with the storyline in Blend. And I have been able to copy in the isolated storylines and triggers into existing projects in visual studio to spruce them up on the edges a little bit. But after adding too many animations, they start to conflict or cancel each other out, etc., or I can make a ...

Can this type of flash dragging, dropping, and animation be done in a javascript library?

Sorry. I don't know a good title for this, but please look here: http://joshblog.net/projects/logic-gate-simulator/Logicly.html I saw this from delicious over the weekend. It is in flash and I wondered if something like this, as far as the graphics and interaction goes, could be done in javascript (jquery or other library, not roll...

How to add animated gif to a button?

Hi, Can you tell me how to add an animation gif to a button in c#. Just by adding gif to resources and setting as button image didn't work very well (next frames apear over the previous ones). The problem seems to be in a way how c# is treating transparency but I don't know how to fix it. Thanks in advance. --- edit --- After playing...

How can I get smoother animation for sliding content with JavaScript/jQuery?

I have some content sliding here. http://www.smallsharptools.com/downloads/jQuery/Slider/slider.html The HTML structure is simple. There is an outer box with a fixed height and width with the overflow set to hidden. Then there is an inner container with the width set to the full width of the content inside of it which is a series of di...

How to fix erratic animation in jQuery

I have built a simple menu in jQuery http://vanquish.websitewelcome.com/~toberua/ Here is a sample of the menu <ul> <li id="your-residences"> <strong>Your Residences</strong> <ul> <li class="menu-1"><a href= "/~toberua/your-residences/deluxe-ocean-front-bure/">Deluxe Ocean Front Bure</a></li> <li cl...

Animation: Timer vs Idle

There is a similar thread else where, but it focues on gameprogramming which I find a little different to regular gui applications with some 'extra sugar'. What would be the right approach for driving small gui-animations (like expanding/collapsing panels, glowing buttons etc)? Would it be best to setup a timer to fire at regular inter...

How do I make an element scale down to nothing using a CSS transition on the iPhone?

I’m trying to use the proprietary iPhone Safari properties -webkit-transition and -webkit-transform to make an element disappear with a graceful animation. Code: <div id="right" style="font-size: 500%; text-align: center; background-color: #fdf; -webkit-transition-property: -webkit-transform; -webkit-transition-duration: 1s;">3</div> <...

Animation with QTimeline

I'm using QGraphics objects to display boxes with arrows between them. I want animation on those arrows/lines that starts at one end and goes to the other. The animation works great when the start and end locations of the arrow don't change during QTimeLine execution, i.e. I leave the view static. But since the user can drag the boxes a...

Euler angles vs. Quaternions - problems caused by the tension between internal storage and presentation to the user?

Quaternions are arguably an appropriate choice for representing object rotations internally. They are simple and efficient to interpolate and represent a single orientation unambiguously. However, presenting quaternions in the user interface is generally inappropriate - Euler angles are generally much more familiar to users, and their v...