Stock Item with div instead of images.
Posted: 03 July 2020, 00:19
Hi.
I am looking for the functionality of the stock item, like the animation effects of adding, removing items, etc. but I want to do this with div's rather than images.
I have a container div with lots of things inside it, including an image, some tokens and 2 other stock items.
And players each have a list of these container types on their player boards.
I would like the ability to move the whole container around as one object between players, the same as cards normally move around in other games.
I know I can move it around with slideTo... but I'm also looking for removing/inserting to DOM and the nice animation effects.
I am looking for the functionality of the stock item, like the animation effects of adding, removing items, etc. but I want to do this with div's rather than images.
I have a container div with lots of things inside it, including an image, some tokens and 2 other stock items.
And players each have a list of these container types on their player boards.
I would like the ability to move the whole container around as one object between players, the same as cards normally move around in other games.
I know I can move it around with slideTo... but I'm also looking for removing/inserting to DOM and the nice animation effects.