HTML
<div id="modal-signup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="border:0!important; box-shadow: none!important;">
<div class="mod-signup-wrapper" >
<div class="modal-header">
<h3>Sign up a new account</h3>
</div>
<div class="modal-body">
<div class="accordion">
<div id="step-1">
<a href="#step-1" class="tab">Step 1 - Information</a>
<div class="content">
<div style="background: #fff;">
<form>
<input type="text" placeholder="Email Address" name="email">
<input type="text" placeholder="Password" name="password">
<input type="text" placeholder="Full Name" name="fullName">
</form>
</div>
</div>
</div>
<div id="step-2">
<a href="#step-2">Step 2 - Select</a>
<div class="content">
<div style="background: #fff;">
skdjfhskfhskdfjksf
</div>
</div>
</div>
</div>
</div>
</div>
</div>
CSS
.accordion .tab {
border-top: 1px solid #5b5b5b;
display: block;
height: 50px;
text-decoration: none;
color: #888;
}
.accordion .tab:hover,
.accordion div:target .tab {
color: #000;
border-top: 1px solid #7c7c7c;
}
.accordion div .content {
display: none;
}
.accordion div:target .content {
display: block;
}
.accordion > div {
height: 50px;
overflow: hidden;
-webkit-transition: all .5s ease-in-out;
-moz-transition: all .5s ease-in-out;
-o-transition: all .5s ease-in-out;
-ms-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
}
.accordion > div:target {
height: 400px;
}
Tried to use herf="step-1" and it worked on certain pages (not over the site) because of the url with /test#step-1 which helped. It showed step 1 tab first when clicking on modal to open. However on other pages with url /#step-1, the step 1 tab is not showing upon opening modal. Is there any way around opening first tab whether /test#step-1 or /#step-1?
Accordion seems not to be flowing or sliding as smoothly as this website: http://www.fortheloveoflaundry.com/
I am not sure why accordion is not sliding up and down smoothly. tried to change transition, height and other css..but no to avail. Is there a way to make it slide smoothly without using Jquery?