35 posts
  • Microlancer Beta Tester
  • Sold between 5 000 and 10 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
Thorit says

Hey, i want to bild a toppanel which will change his height after the user has clicked on the button. But the nice dropdown effect ony appears once. When i am trying to close the panel the effect doesn’t appear. Demo: http://www.color4you.org/demo/domination/ (The box on the right side is the demo button)

My jquery code:
 $(function() {
    $( "#tp-button" ).click(function(){
    $("#toppanel").toggleClass("show", 1000, "easeOutSine");
    });
});

My css classes:

.show {

height: 180px!important;

}
#toppanel {
    position: absolute;
    width: 100%;
    top: 0px;
    height: 10px;
    background-color: #cacac7;
    z-index: 999999;
}
Html setup:
<div id="tp-button" />
<div id="toppanel" />

Thanks in advance! :)

35 posts
  • Microlancer Beta Tester
  • Sold between 5 000 and 10 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 100 and 499 items
Thorit says

Fixed! :)

by
by
by
by
by
by