D
D
Denis2012-04-17 09:30:05
JavaScript
Denis, 2012-04-17 09:30:05

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

3 answer(s)
V
Vitaly Peretyatko, 2012-04-17
@newpdv

$('.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.

A
alternativshik, 2012-04-17
@alternativshik

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.

S
Softlink, 2012-04-17
@Softlink

Believe it or not, this can be done with CSS3 as well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question