Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kenangundogan/javascript-navigation-tabs

Javascript navigation tabs - tiny and simple.
https://github.com/kenangundogan/javascript-navigation-tabs

javascript javascript-navigation-menu navigation navigation-tab navigation-tabs

Last synced: about 22 hours ago
JSON representation

Javascript navigation tabs - tiny and simple.

Awesome Lists containing this project

README

        

# Javascript Navigation Tabs
Javascript navigation tabs - tiny and simple.

## Status
[![JS gzip size](https://img.badgesize.io/kenangundogan/javascript-navigation-tabs/main/dist/script/script.js?compression=gzip&label=JS%20gzip%20size)](https://github.com/kenangundogan/javascript-navigation-tabs/blob/main/dist/script/script.js)
[![JS Brotli size](https://img.badgesize.io/kenangundogan/javascript-navigation-tabs/main/dist/script/script.js?compression=brotli&label=JS%20Brotli%20size)](https://github.com/kenangundogan/javascript-navigation-tabs/blob/main/dist/script/script.js)
[![CSS gzip size](https://img.badgesize.io/kenangundogan/javascript-navigation-tabs/main/dist/style/style.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/kenangundogan/javascript-navigation-tabs/blob/main/dist/style/style.css)
[![CSS Brotli size](https://img.badgesize.io/kenangundogan/javascript-navigation-tabs/main/dist/style/style.css?compression=brotli&label=CSS%20Brotli%20size)](https://github.com/kenangundogan/javascript-navigation-tabs/blob/main/dist/style/style.css)

![Javascript Navigation Tabs](https://raw.githubusercontent.com/kenangundogan/javascript-navigation-tabs/main/asset/javascript_navigation_tabs-cover.png)

## Options
Option | Type | Default | Description | Example
------ | ---- | ------- | ----------- | -----------
element | string or object | | id or class DOM element | [Example](https://kenangundogan.github.io/javascript-navigation-tabs)
event | string | click | add event listener | [Example](https://kenangundogan.github.io/javascript-navigation-tabs)
direction | string | top | navigation position | [Example](https://kenangundogan.github.io/javascript-navigation-tabs)
activeTab | int | | active item to be open at startup | [Example](https://kenangundogan.github.io/javascript-navigation-tabs)

## Usage example
### Script
```javascript
var navigationtabs = new NavigationTabs({
element: "#top-position",
event: "click",
direction: "top",
activeTab: 1
});
```

### View
```html


```

## Copyright and license
Designed and built by [Kenan Gündoğan](https://www.linkedin.com/in/kenangundogan/)


2021 Currently - Code released under the [MIT License](https://github.com/kenangundogan/javascript-navigation-tabs/blob/master/LICENSE)
Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/)