Closed whatsnewsisyphus closed 7 years ago
Are you talking about this page? http://webcloud.se/jQuery-Collapse/ And if so, are you talking about the CSS3 Animations?
Hello Daniel, I mean that in the custom show/hide, it uses the following
new jQueryCollapse($("#custom-show-hide-example"), {
open: function() {
this.slideDown(150);
},
close: function() {
this.slideUp(150);
}
});
and in the README.MD in github, it uses the following which doesn't work
$("#demo").collapse({
show: function() {
this.slideDown(100);
},
hide: function() {
this.slideUp(100);
},
});
Where did you find the second code example? There are no show
and hide
methods in the collapse API, only open
and close
. The correct code should be like this:
$("#demo").collapse({
open: function() {
this.slideDown(100);
},
close: function() {
this.slideUp(100);
}
});
Ok i see what happened now, you followed an old link to an old version of the API, which used to have show, hide methods.
I will update the link to point to the latest version of README
Thanks for your feedback
I found out what happened, it was a link to an old version of your readme where you used the show and hide. *edit. you figured it out as well
Hello, The example on the page uses open/close to scrollup/scrolldown the collapsible container, while the document suggests using show/hide.
Using show hide methods as suggested in the readme does not scroll up / down, probably because the open close methods get to display:none / display:block first.
What would be the correct way to make it scroll up/down?