craigsworks.com - Support Forum

Full Version: How to disable the 'fly-by' animation on 1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I saw some threads asking how to stop the 'fly-by' animation of the tooltip when using 1.0, so here's the solution. I don't think Craig will implement it anyways since 1.0 is going to the grave, but maybe he can sticky this thread? Wink

Download jquery.qtip-1.0.js, and on line 1187:

// Animate and reset animated status on animation end
self.elements.tooltip.stop().animate(position, 200, 'swing', function () {
self.status.animated = false;
});

Simply change the 200 to 0. Then you can 'reminify' the code on this website: http://jscompress.com/

Use the 'Packer (Dean Edwards)' option to achieve the best result (around 22Kb)
Awesome, thanks MuTlY. Stickied!
I find this code on line 593, and change it (200 -> 0 ), but fly-by animation is not disabled Sad


I delete this lines in my function (position properties):

JS Code
target: 'mouse',
corner: {
target: 'topRight',
tooltip: 'bottomLeft'
}
},


in this case animation is disable!
but i need this lines, to show tip over text but not below the text.
i want also to know about that.
target: 'mouse' will cause the tooltip to follow the mouse. Is that what you're intending?
Reference URL's