initially I have my flexslider hidden, until a user clicks on a link and then it will open up. But for some reason the slider won't work after it's displayed until I adjust the browser window, which is strange! When I don't hide the flexslider it works fine. Below is my CSS, HTML, and the jquery that I use to open and close the flex slider. Anyone familiar with flex slider and would know why this is happening? Thank you!
CSS
section#hotspots .dropdown-area {
width: 100%;
float: left;
display: none;
}
HTML
<h1>Hot Spots <span class="toggle-button"></span></h1>
<section class="dropdown-area">
<div class="flex-container">
<div class="flexslider" id="secondary-slider">
<ul class="slides">
<li><img src=
"%3C?php%20bloginfo('template_directory');%20?%3E/images/212/Portland-1.jpg"></li>
<li><img src=
"%3C?php%20bloginfo('template_directory');%20?%3E/images/212/Portland-2.jpg"></li>
<li><img src=
"%3C?php%20bloginfo('template_directory');%20?%3E/images/212/Portland-3.jpg"></li>
</ul>
<ul class="flex-control-nav">
<li>
<a href="">LOLA COFFEE</a> /
</li>
<li>
<a href="">PUBLIC MARKET CAFE</a> /
</li>
<li>
<a href="">MATT'S BIG BREAKFAST</a> /
</li>
</ul>
</div><!--End Flexslider-->
</div><!--End Flex-container-->
</section>
JS
$(window).load(function() {
$("#hotspots .toggle-button").click(function() {
$("#hotspots .dropdown-area").slideToggle("slow");
$("#hotspots span").toggleClass("toggle-button close");
});
});