![]() |
How to mix jQuery Features and JavaScript ..
Hello, I created this basic slideshow in JavaScript. That can go next, previous, first and last.
Now, its pretty simple and there is no animation. Could I use jQuery features like fadein and so on in my current script? Code:
// Slide Show Previous, Next , First & LastThanks in advance |
Fading is not specific to jQuery, you can create your own fade animation (you just have to kinda reinvent the wheel). Basically you set up an interval (
setInterval()) during which you decrease and increase the opacity of the image sequentially. But of course, you could just add jQuery and use that one. After all, jQuery is just JavaScript, too.Note, however, that with your current set-up you can only fade out and in subsequently, not simultaneously/seamlessly since you’re just changing one image’s source attribute value. You need to fade out the image, change the src value and then fade in again. |
Here's how I am thinking to do this:
When the slider area loads, it fades into first image.. Then every time there is a click on next || previous || first || last.. it fades into that image... that would create the fade in effect .. Please correct my understanding if I am thinking wrong. Thanks |
I am just playing with the ideas.. However, the following code is not executing.. any reasons why?
Code:
// left is the division where the slideshow resides |
Quote:
|
| All times are GMT +1. The time now is 04:19 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.