Answer the question
In order to leave comments, you need to log in
Implementing an image transition effect?
Greetings!
Advise how you can implement this effect of changing images: www.jamiemclellan.com/ , only using JQuery?
Answer the question
In order to leave comments, you need to log in
$('.slide').css('width', 0).animate({'css': '100%'}, 1000, 'easeInOutQuad');
something like this, only 'easeInOutQuad' is from jQueryUI if you don't connect it - you need to drag it into your code or write easign itself which slows down the animation at the beginning and at the end.
make divs fit the image, overflow:hidden; in it we place pictures with absolute positioning. Then we change the coordinates of the top image using jquery - we just “leave” this image left and right, as you like.
This is roughly how it can be done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question