Giter Site home page Giter Site logo

css-tabs-accordion's Introduction

Responsive CSS Tabs/Accordion

css-tabs-accordion

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:

  1. Tabs for Wider screens and Accordion for Mobile
  2. CSS Only (No JS)
  3. No Absolute position of any link/content
  4. Variable width of Links/buttons
  5. No fixed heights, content can grow naturally
  6. 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)

  1. Requests JSON files on each click, so does not load additional content
  2. URL Updates on Each Tab Click
  3. History Management (using History API).
  4. Default Back/Forward buttons work as per User Session History
  5. Loading tab content using URL (on Page Load)

Link: https://prashantsani.github.io/css-tabs-accordion/code/demo3%20-%20Ajax%20and%20JavaScript.html

css-tabs-accordion's People

Contributors

prashantsani avatar

Stargazers

Benny P avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.