Hi.
I have changing some things in a slideshow and need your help.
In the html, I have this class:
[CODE]
<div class=”element” data-animate=”slideAppearRightToLeft” data-delay=”800″ data-length=”300″>First Title</div>
And this code in the javascript file:
[CODE]
$.fn.responsiveSlider.animations = {
slideAppearRightToLeft: function($caption, delay, length) {
var animate, css;
if (delay == null) {
delay = 0;
}
if (length == null) {
length = 300;
}
css = {
‘margin-left’: 100,
‘margin-right’: -100
};
$caption.css(css);
animate = function() {
css = {
‘margin-left’: 0,
‘margin-right’: 0,
‘opacity’: 1
};
return $caption.animate(css, length);
};
if (delay > 0) {
return setTimeout(animate, delay);
} else {
return animate();
}
},
Is there any way to remove the atributes in the class and put them in the javascript file.
I have tried by myself just to collect a series of errors and failures.
Best regards.