I've got a div with a lot of stuff in it. For one, it's got a Chart in it (from amCharts), and several sliders from noUiSlider. It's also composed of a lot of AngularJS functionality as well. I try to hide the page by doing $('#container').addClass('hidden')
where hidden
has the rule display:none !important
.
It works, but takes maybe 500ms to perform. The same goes if I do height: 0 !important
instead of display: none !important
. I'm basically trying to mimic a page change when the user clicks on a different menu item, so I'd like it to at least not flicker like it does now. I'm wondering if any css experts here know of a better way to quickly hide a big, complex div.
By the way I'm using Chrome with an i3 2nd generation. Not the best processor, but enough people use this quality machine that I'd like to get it smoother.
Note: I have no JSFiddle because the page is incredibly complicated and requires a MySQL backend.