JavaScript/jQuery Gallery - Animate the Image Change

By default, the change of the image is animated. You can specify how long the animation is using the animationDuration property. The lower its value, the faster the animation. In case you need to disable animation completely, set the animationEnabled property to false.

JavaScript
  • $(function () {
  • $("#galleryContainer").dxGallery({
  • dataSource: [
  • "https://js.devexpress.com/Content/images/doc/24_2/PhoneJS/person1.png",
  • "https://js.devexpress.com/Content/images/doc/24_2/PhoneJS/person2.png",
  • "https://js.devexpress.com/Content/images/doc/24_2/PhoneJS/person3.png"
  • ],
  • height: 300,
  • loop: true,
  • animationDuration: 100
  • });
  • });
See Also