Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea7bf03

Browse files
committed
add data-gs-animate attribute
1 parent 4fed4cf commit ea7bf03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
min_width: 768,
285285
float: false,
286286
_class: 'grid-stack-' + (Math.random() * 10000).toFixed(0),
287-
animate: false
287+
animate: Boolean(this.container.attr('data-gs-animate')) || false
288288
});
289289

290290
this.container.addClass(this.opts._class);

0 commit comments

Comments
 (0)