GithubHelp home page GithubHelp logo

juliancruzsanchez / css3sidebar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roywcm/css3sidebar

0.0 1.0 0.0 26.99 MB

Super simple css3 sidebar, to style by your own!

JavaScript 55.23% CSS 44.77%

css3sidebar's Introduction

css3sidebar

Simple css3 sidebar

Step 1:

include dist/jquery.css3sidebar.js and css/css3sidebar.css in your html.

step 2:

add a trigger button:

<button type="button" class="navbar-toggle collapsed" data-toggle="css3sidebar" data-target="#primary-sidebar" aria-expanded="false">Trigger</button>

##Step 3: Add the sidebar html:

<div class="css3sidebar sidebar-left" id="primary-sidebar">
		<div class="menu-wrapper">
		{{ your custom html }}
		</div>
</div>

##Step 4: Style your sidebar and add custom html code!

##Methods

$(element).css3sidebar('openSidemenu');
$(element).css3sidebar('closeSidemenu');
$(element).css3sidebar('toggleSidemenu');

##SASS When you work with SASS you can edit the breakpoints. By adding the following files to your project:

@import "_base.scss";
@import "_base.show-desktop.scss";
@import "_base.popin.scss";

And prepend thos with:

$sidebarbreakpoint: 768px; // your breakpoint

##Work on desktop screens By default the sidebar will work on mobile and desktop. If you want to exclude the functionality on desktop. add the following to your sidebar wrapper:

	<div class="css3sidebar css3sidebar-lg sidebar-left" id="primary-sidebar"></div>

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.