There are many undocumented options and events for chosen , so you need to read the source to find them. In this case, the problem is that we donβt know when the selected one finished creating the stylized rectangles, so we need to click on the liszt:ready custom event and use css opacity.
CSS
<style> #firstChosenSelect, .chzn-container { opacity:0 } </style>
Javascript
We bind a function that will be run when an event occurs. The function will animate opacity up to 1 for more than 1000 ms. Then, using jquery chaining, just call .chosen() on the element immediately after.
<script> $('#firstChosenSelect').bind('liszt:ready', function(){ $('.chzn-container').animate({ opacity:1 }, 1000); }).chosen(); </script>
In jQuery v1.7 +, we could also use .on()
source share