The options parameter is expected to be an object. So instead of
int animationspeed = 250
you should write
animationspeed: 250
So your full code would look like this:
var lightbox1 = $('.homegallery a').simpleLightbox({
animationSpeed: 250,
});
By the way, there is no int
in javascript, only var
, let
and const
. Javascript does not care about what type you add to a variable.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…