GithubHelp home page GithubHelp logo

goupviet / slidepanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anthonyscata/slidepanel

0.0 2.0 0.0 291 KB

A quick and easy way to add a contextual ajax sliding panel to your site.

Home Page: http://codebomber.com/jquery/slidepanel/

CSS 30.81% JavaScript 69.19%

slidepanel's Introduction

SlidePanel

A quick and easy way to add a contextual ajax sliding panel to your site. Created and maintained by William Golden

For a demo goto http://codebomber.com/jquery/slidepanel

#Quickstart

##Include required files

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.slidepanel.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.slidepanel.css">

##Add a panel trigger The href attribute is used to load external HTML content into your panel

<a href="external.html" data-slidepanel="panel">Show Panel</a> or
<a href="external2.html" class="panel">Show Panel</a>

##Load the plugin on your element <script type="text/javascript"> $(document).ready(function(){ $('[data-slidepanel]').slidepanel({ orientation: 'top', mode: 'push' }); }); </script>

##Options

orientaton: left (default), top, right, bottom mode: push (default), overlay static: true (default), false

Orientation sets the orientation of the rendered panel (top, right, bottom, left). Default is left.

Mode sets the animation mode for the panel. Push, will move the panel into view and push the document body out of the way. Overlay will animate the panel over the the document body.

If you have static content to render, set static: true. If you are rendering ajax content, leave out, or set to false. Default is false.

slidepanel's People

Contributors

egdelwonk avatar

Watchers

James Cloos avatar GoUP 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.