PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Jquery easing effect not smooth

December29

I am developing a fancy website with an attractive design. I have used jquery easing effect to create page navigation sliding effect. Due to the high res background images the easing effect is not smooth but hindering like as if someone is pushing the slides.

To overcome this problem I had used jquery preload script. Click here to view the source.

(function($) {
var cache = [];
// Arguments are image paths relative to the current page.
$.preLoadImages = function() {
var args_len = arguments.length;
for (var i = args_len; i–;) {
var cacheImage = document.createElement(‘img’);
cacheImage.src = arguments[i];
cache.push(cacheImage);
}
}
})(jQuery)

jQuery.preLoadImages(“image1.gif”, “/path/to/image2.png”);

posted under jquery

Email will not be published

Website example

Your Comment:

 

13,816 spam comments
blocked by
Akismet