All Projects → Schascha → BeefUp

Schascha / BeefUp

Licence: MIT License
Just a jQuery accordion plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to BeefUp

react-collapse
Component-wrapper for collapse animation with CSS for elements with variable and dynamic height
Stars: ✭ 143 (+248.78%)
Mutual labels:  accordion, collapsible
React Collapsible
React component to wrap content in Collapsible element with trigger to open and close.
Stars: ✭ 402 (+880.49%)
Mutual labels:  accordion, collapsible
Azexpandableiconlistview
An expandable/collapsible view component written in Swift.
Stars: ✭ 284 (+592.68%)
Mutual labels:  accordion, collapsible
React Native Collapsible
Animated collapsible component for React Native, good for accordions, toggles etc
Stars: ✭ 2,178 (+5212.2%)
Mutual labels:  accordion, collapsible
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: ✭ 35 (-14.63%)
Mutual labels:  accordion, collapsible
React Sanfona
Accessible react accordion component
Stars: ✭ 248 (+504.88%)
Mutual labels:  accordion, collapsible
react-native-collapsible
Fully customizable collapsible views
Stars: ✭ 31 (-24.39%)
Mutual labels:  collapsible
Accordion
Silky-smooth accordion widgets with no external dependencies.
Stars: ✭ 32 (-21.95%)
Mutual labels:  accordion
react-responsive-tabs
React responsive tabs http://maslianok.github.io/react-responsive-tabs/
Stars: ✭ 118 (+187.8%)
Mutual labels:  accordion
qaccordion
An Accordion Widget for the Qt application framework
Stars: ✭ 38 (-7.32%)
Mutual labels:  accordion
yuanful-ui
(微信小程序插件) yuanful-ui是一套可添加到微信小程序内直接使用的免费功能插件,无需重复开发,为用户提供更丰富的服务。
Stars: ✭ 30 (-26.83%)
Mutual labels:  accordion
squeezy
1 kB React component for accessible accordions / collapse UI
Stars: ✭ 31 (-24.39%)
Mutual labels:  accordion
react-native-collapsible-tabview
This is only an implementation of tabview with collapsible header.
Stars: ✭ 179 (+336.59%)
Mutual labels:  collapsible
esl
Lightweight and flexible UI component library based on web components technology for creating basic UX modules
Stars: ✭ 53 (+29.27%)
Mutual labels:  accordion
json-to-html-converter
Converts JSON data to HTML table with collapsible details view for nested objects.
Stars: ✭ 13 (-68.29%)
Mutual labels:  collapsible
a11y-accordion-tabs
A script for an accessible accordion tabs component
Stars: ✭ 50 (+21.95%)
Mutual labels:  accordion
vue-uix
Vue components based on the JUI components available in Vue.js
Stars: ✭ 15 (-63.41%)
Mutual labels:  accordion
a11yAccordion
An accessible and easy to use Accordeon widget.
Stars: ✭ 37 (-9.76%)
Mutual labels:  accordion
Accordion-Collapse-react-native
React native Accordion/Collapse component, very good to use in toggles & show/hide content
Stars: ✭ 147 (+258.54%)
Mutual labels:  accordion
react-slide-toggle
React component re-implementation for jQuery.slideToggle feature
Stars: ✭ 42 (+2.44%)
Mutual labels:  collapsible

BeefUp

Build npm jsDelivr install size

Just a jQuery accordion plugin

https://schascha.github.io/BeefUp/

Examples:

Installation

You can use BeefUp in your project by installing it using npm:

npm install beefup --save

Usage

  1. Include jQuery

    <script src="dist/js/jquery.min.js"></script>
  2. Include plugin

    <script src="dist/js/jquery.beefup.min.js"></script>
  3. Add styles

    <link rel="stylesheet" href="dist/css/jquery.beefup.css">
  4. Add markup

    <article class="beefup">
        <h2 class="beefup__head">Headline</h2>
        <div class="beefup__body">My fancy collapsible content.</div>
    </article>
  5. Call the plugin

    <script>
        $(function() {
            $('.beefup').beefup();
        });
    </script>

Configuration

Option Type Default Description
accessibility boolean true Enable accessibility features like tab control
trigger string '.beefup__head' Selector of the trigger element
content string '.beefup__body' Selector of the collapsible content
openClass string 'is-open' Name of the class which shows if a accordion is triggered or not
animation string 'slide' Set animation type to "slide", "fade" or leave empty ""
openSpeed integer 200 Set the speed of the open animation
closeSpeed integer 200 Set the speed of the close animation
scroll boolean false Scroll to accordion on open
scrollSpeed integer 400 Set the speed of the scroll animation
scrollOffset integer 0 Additional offset to accordion position
openSingle boolean false Open just one accordion at once
stayOpen mixed null Leave items open, accepts null, integer (index) or string (selector, "first" or "last")
selfBlock boolean false Block close event on click
selfClose boolean false Close accordion on click outside
hash boolean true Open accordion with id on hash change
breakpoints array null Array of objects, see example
onInit function null Callback: Fires after the accordions initially setup
onOpen function null Callback: Fires after the accordions initially setup
onClose function null Callback: Fires after the accordions initially setup
onScroll function null Callback: Fires after the accordions initially setup

Advanced

API Methods

var $beefup = $('.beefup').beefup();

Open

$beefup.open($('#beefupID'));

Close

$beefup.close($('#beefupID'));

Click

$beefup.click($('#beefupID'));

Scroll

$beefup.scroll($('#beefupID'));

Callbacks

$('.beefup').beefup({
    onInit: function ($this) {
        // Do something after initially setup
    },
    onOpen: function ($this) {
        // Do something after accordion open the content
    },
    onClose: function ($this) {
        // Do something after accordion close the content
    },
    onScroll: function ($this) {
        // Do something after scroll animation
    }
});

HTML5 data attributes

<article class="beefup" data-beefup-options='{"animation": "", "openSpeed": 800}'>
    ...
</article>

Bugs? 🐛

Please let me know: https://github.com/Schascha/BeefUp/issues

Buy me a Coffee

Support this project and others via PayPal. Thanks

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT

Copyright (c) 2014-present Sascha Künstler

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].