Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion js/adapt-contrib-blockslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ define([

navigateToIndex: function(stage, movementSize) {
if (stage < this.model.get('_blockCount') && stage >= 0) {
this.$('.blockslider').stop().animate({'margin-left': - (movementSize * stage)});
if (this.model.get('_blockSlider')._noAnimate === true) {
this.$('.blockslider').stop().css({'margin-left': - (movementSize * stage)});
} else {
this.$('.blockslider').stop().animate({'margin-left': - (movementSize * stage)});
}
this.setStage(stage);
}
},
Expand Down
11 changes: 10 additions & 1 deletion properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,16 @@
"inputType": "Text",
"validators": ["required"],
"help": "Fix the height of the blockslider to this value. For example, a value of 600 will set the blockslider to 600px high. Defaults to 'auto' if not specified."
}
},
"_noAnimate": {
"type": "boolean",
"required": false,
"default": false,
"title": "No animation",
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": "Set to true to remove the animated sliding effect."
}
}
}
}
Expand Down