I have the following website: http://driz.co.uk/taschen/
I'm wanting to make it so when a user clicks the toggle div the currently shown ipad is faded out and the other ipad is faded in. And vice-versa.
How do I do this using jQuery? Thanks.
I have the following website: http://driz.co.uk/taschen/
I'm wanting to make it so when a user clicks the toggle div the currently shown ipad is faded out and the other ipad is faded in. And vice-versa.
How do I do this using jQuery? Thanks.
You can do it by using
.toggle()
to alternate between functions, like this:Or, using
.click()
(there are a few ways, this is one of them):Aha, you want fading...
You can use the
fadeToggle()
function added in jQuery 1.4.4 (You need to update to this version from the version 1.4.2 script you're using on that page):