3 ms·
Hi. CSS only accordions rely on having a fixed height and then having an animation for that container. Doesn't really work when you have variable content inside
by vctrfrnndz 12y ago
Hi. CSS only accordions rely on having a fixed height and then having an animation for that container. Doesn't really work when you have variable content inside your tabs.
This plugin just calculates your content's height and sets the value accordingly, refreshing the height when needed (on resize, orientation changes, etc), and then has a nice CSS transition for that element.
I certainly didn't mean to reinvent the wheel doing this. Just felt there wasn't a plugin doing the same and found it useful.
Thanks.
- markdown 12y agoIn that case, I'm sorry about being dismissive. I should have looked deeper into it. I assumed it was just another accordion and didn't get why it was newsworthy. It's good work, and you should be proud of it :)