Could you have a look through this code and let me know whats wrong? Basically it is a div that needs to fadeIn and fadeOut between 2 values and repeat this continuously. Also the div needs to be clickable during the animation.
Any help is appreciated!
What the code is supposed to do:
$("#p16-1-next").show(p16loop());
$(function(p16loop) {
Fadeto 50%
FadeTo 10%
Repeat fade sequence
});
The code i have written
$("#p16-1-next").show(p16loop());
$(function(p16loop) {
$("#p16-1-next").fadeTo("slow", 0.5, function () {
$("#p16-1-next").fadeTo("slow", 0.1, p16loop);
});
});