├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── demo ├── css │ └── style.css ├── img │ ├── Thumbs.db │ ├── imac.png │ └── iphone.png ├── index.html └── js │ └── jquery.scrollslide.js ├── jquery.scrollSlide.js └── scrollSlide.jquery.json /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ### 1.0.0 / 10-02-2014### 2 | 3 | **Development** 4 | 5 | * Created project folder structure 6 | * Created README.md and CHANGELOG.md files 7 | * Basic HTML template for dev and demo 8 | * CSS styling of template 9 | * Include jQuery UI 10 | * jQuery plugin boilerplate 11 | * Set default options - direction, speed,scrollstart, slideback 12 | * Window scroll and slide in/out functionality -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 codeSkillet 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ScrollSlide # 2 | 3 | **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. 4 | 5 | 6 | ## Version ## 7 | **1.0.0** 8 | 9 | ## Demo ## 10 | To view a live demo, please go to - [http://codedemos.com/scrollslide](http://www.codedemos.com/scrollslide) 11 | 12 | ##Plugin Options## 13 | 14 | * **direction** - Which direction the object should slide in (left, right, up, down) 15 | * **speed** - Speed of the slide animation 16 | * **scrollstart** - The position of the scrollbar's y axis 17 | * **slideback** - If the objects should slide back out of view when scroll back up (true, false) 18 | 19 | ##Dependencies## 20 | You must include the **jQuery UI Library** 21 | `````` 22 | 23 | ##Usage## 24 | Include **jQuery, jQuery UI** and **jquery.scrollslide.js** 25 | 26 | 27 | 28 | 29 | 30 | 31 | After the document is ready, attatch **.scrollSlide()** to any HTML element 32 | 33 | $('#someElement').scrollSlide({ 34 | direction : 'left', 35 | speed : 1000, 36 | scrollstart : 200, 37 | slideback : false 38 | }); 39 | 40 | If you run into any issues with how far you can scroll, try adding a height or min-height to the parent element 41 | 42 | ## Vendors ## 43 | **ScrollSlide** uses the following open source projects 44 | 45 | * JQuery - [http://jquery.com](www.jquery.com) 46 | 47 | ##Supported Browsers## 48 | * Chrome (stable and canary channel) 49 | * Firefox 50 | * IE 9 and 10 51 | * Opera 52 | * Safari 53 | 54 | ##License## 55 | GNU/GPL 56 | 57 | ##Support## 58 | If you are having issues getting this software to work, you can email support@codeskillet.com 59 | 60 | ##Authors## 61 | Brad Traversy 62 | 63 | * [http://twitter.com/bradtraversy](http://twitter.com/bradtraversy) 64 | * [http://www.linkedin.com/in/bradtraversy](http://www.linkedin.com/in/bradtraversy) -------------------------------------------------------------------------------- /demo/css/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | margin:0; 3 | padding:0; 4 | font-family: 'Arial', sans-serif; 5 | font-size:15px; 6 | color:#666; 7 | line-height:1.6em; 8 | } 9 | 10 | a{ 11 | color:#666; 12 | text-decoration: none; 13 | } 14 | 15 | .container{ 16 | width:1024px; 17 | margin:auto; 18 | overflow:auto; 19 | } 20 | 21 | header{ 22 | background:#333; 23 | height:55px; 24 | color:#fff; 25 | } 26 | 27 | header a{ 28 | color:#fff; 29 | text-decoration: none; 30 | } 31 | 32 | .logo{ 33 | float:left; 34 | width:300px; 35 | margin-top:15px; 36 | } 37 | 38 | nav{ 39 | float:right; 40 | width:650px; 41 | } 42 | 43 | nav ul{ 44 | float:right; 45 | } 46 | 47 | nav li{ 48 | list-style: none; 49 | float:left; 50 | padding:0 10px 0 10px; 51 | } 52 | 53 | section{ 54 | padding:60px 0; 55 | overflow:hidden; 56 | min-height:300px; 57 | } 58 | 59 | section.showcase{ 60 | background:#f4f4f4; 61 | height:500px; 62 | border-bottom:#eee solid 5px; 63 | } 64 | 65 | section.showcase h1{ 66 | font-size:70px; 67 | text-align: center; 68 | padding-top:150px; 69 | color:#333; 70 | } 71 | 72 | section h2{ 73 | font-size:32px; 74 | } 75 | 76 | section.dark{ 77 | background:#333; 78 | color:#fff; 79 | } 80 | 81 | .section-left{ 82 | float:left; 83 | width:50%; 84 | 85 | } 86 | 87 | .section-right{ 88 | float:left; 89 | width:50%; 90 | } 91 | 92 | .section-right img{ 93 | margin-left:100px; 94 | } 95 | 96 | .btn{ 97 | background:#f4f4f4; 98 | border:0; 99 | padding:10px 15px; 100 | display: block; 101 | text-align: center; 102 | } -------------------------------------------------------------------------------- /demo/img/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/jquery.scrollSlide/a416ebdb62127882de6c9f123990d947a7263eda/demo/img/Thumbs.db -------------------------------------------------------------------------------- /demo/img/imac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/jquery.scrollSlide/a416ebdb62127882de6c9f123990d947a7263eda/demo/img/imac.png -------------------------------------------------------------------------------- /demo/img/iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bradtraversy/jquery.scrollSlide/a416ebdb62127882de6c9f123990d947a7263eda/demo/img/iphone.png -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |