GithubHelp home page GithubHelp logo

bradtraversy / jquery.scrollslide Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 7.0 508 KB

A plugin to run a slide animation at a specified scroll position

License: MIT License

CSS 32.56% JavaScript 67.44%

jquery.scrollslide's Introduction

ScrollSlide

ScrollSlide is a jQuery plugin that will set off a slide in and slide out animation depending on the y position of the browser's scrollbar.

Version

1.0.0

Demo

To view a live demo, please go to - http://codedemos.com/scrollslide

##Plugin Options##

  • direction - Which direction the object should slide in (left, right, up, down)
  • speed - Speed of the slide animation
  • scrollstart - The position of the scrollbar's y axis
  • slideback - If the objects should slide back out of view when scroll back up (true, false)

##Dependencies## You must include the jQuery UI Library <script src="https://code.jquery.com/ui/1.11.1/jquery-ui.js"></script>

##Usage## Include jQuery, jQuery UI and jquery.scrollslide.js

<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<script src="js/jquery.scrollslide.js"></script>

After the document is ready, attatch .scrollSlide() to any HTML element

$('#someElement').scrollSlide({
    direction   : 'left',
    speed       : 1000,
    scrollstart : 200,
    slideback   : false
});

If you run into any issues with how far you can scroll, try adding a height or min-height to the parent element

Vendors

ScrollSlide uses the following open source projects

##Supported Browsers##

  • Chrome (stable and canary channel)
  • Firefox
  • IE 9 and 10
  • Opera
  • Safari

##License## GNU/GPL

##Support## If you are having issues getting this software to work, you can email [email protected]

##Authors## Brad Traversy

jquery.scrollslide's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.