Stock - preventing sorting animation on page load?

Game development with Board Game Arena Studio
Post Reply
User avatar
salty-horse
Posts: 78
Joined: 14 June 2012, 23:08

Stock - preventing sorting animation on page load?

Post by salty-horse »

I'm using ebg.stock(). When loading the page and populating the stock, it animates the sorting.
I can see the same behavior in many games on BGA, not just mine

I find this inelegant - animation should be used to draw attention to something, and there's nothing that "happens" in the page load, so I want it stock display to load in sorted form without animation.

Is there a way to achieve that with the current stock component?
User avatar
nicotacotac
Posts: 40
Joined: 20 March 2020, 13:42

Re: Stock - preventing sorting animation on page load?

Post by nicotacotac »

If you are starting using stock, best option would be to skip it.
There is currently two viable alternative described on wiki, much more elegant than stock ;)

In few words, stock is ok as soon as you don't need to modify anything of its behavior...
Post Reply

Return to “Developers”