Skip to content

kenangundogan/javascript-dropdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Dropdown

Javascript dropdown - tiny and simple.

Status

JS gzip size JS Brotli size CSS gzip size CSS Brotli size

Javascript Accordion

Options

Option Type Default Description Example
id string DOM element Example
data-position string bottom top,right,bottom,left Example
data-height int scroll height Example

View

<div class="dropdown-container">
    <!-- Button trigger modal -->
    <button 
        class="dropdown-btn"
        data-target="dropdown-default"
    >
    Default Dropdown
    </button>

    <!-- Dropdown List -->
    <div 
        class="dropdown-list" 
        id="dropdown-default"
        >
        <li class="dropdown-item"><a href="#">...</a></li>
        ...
    </div>
</div>

Copyright and license

Designed and built by Kenan Gündoğan
2021 Currently - Code released under the MIT License Docs released under Creative Commons

Releases

No releases published

Sponsor this project

Packages

No packages published