Tutorial: Coming Soon on : prashantsani.com/spider/
Code is stripped of any styling not meant for functionality. The main focus of CSS is to show functionality.
File: demo1 - Simple Demo.html Features:
- Tabs for Wider screens and Accordion for Mobile
- CSS Only (No JS)
- No Absolute position of any link/content
- Variable width of Links/buttons
- No fixed heights, content can grow naturally
- Support for variable number of tabs
Link: https://prashantsani.github.io/css-tabs-accordion/code/demo1%20-%20Simple%20Demo.html
File: demo2 - With CSS Animations.html Features: (Same as above: Adding in Animations)
https://prashantsani.github.io/css-tabs-accordion/code/demo2%20-%20%20With%20CSS%20Animations.html
File: demo3 - With JS .html (Requires Server: Since I will be requesting JSON files)
- Requests JSON files on each click, so does not load additional content
- URL Updates on Each Tab Click
- History Management (using History API).
- Default Back/Forward buttons work as per User Session History
- Loading tab content using URL (on Page Load)
Link: https://prashantsani.github.io/css-tabs-accordion/code/demo3%20-%20Ajax%20and%20JavaScript.html