├── .gitignore ├── README.md ├── _demos ├── _benchmarks │ └── _general │ │ ├── _css │ │ ├── common.css │ │ └── default.css │ │ ├── _js │ │ └── common.js │ │ └── index.html ├── _examples │ ├── 1-Default │ │ └── index.html │ ├── 10-Multislide-Visible-Next-Prev │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ ├── 11-200-Slides │ │ └── index.html │ ├── 12-image-slides │ │ └── index.html │ ├── 13-full-width-image-slides │ │ └── index.html │ ├── 14-Full-Screen │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ ├── 15-Buffer-Slides │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ ├── 16-Site-Demo │ │ ├── 1-v1 │ │ │ ├── _css │ │ │ │ ├── common.css │ │ │ │ └── default.css │ │ │ ├── _fonts │ │ │ │ └── norican │ │ │ │ │ └── Norican-Regular.ttf │ │ │ └── index.html │ │ └── 2-v2 │ │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ │ ├── _fonts │ │ │ └── norican │ │ │ │ └── Norican-Regular.ttf │ │ │ └── index.html │ ├── 17-Custom-Snap-Groups │ │ └── 1-Basic │ │ │ └── index.html │ ├── 18-RTL │ │ └── index.html │ ├── 2-Rotating-Banner │ │ └── index.html │ ├── 3-Photo-Gallery │ │ └── index.html │ ├── 4-Embedded-HTML │ │ └── index.html │ ├── 5-Double-Slider-Gallery │ │ └── index.html │ ├── 6-Double-Slider-2 │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ ├── 7-Centered-Slides │ │ ├── 1-Images │ │ │ ├── _css │ │ │ │ ├── common.css │ │ │ │ └── default.css │ │ │ └── index.html │ │ ├── 2-Background-Images │ │ │ ├── _css │ │ │ │ ├── common.css │ │ │ │ └── default.css │ │ │ └── index.html │ │ ├── 3-Short-Slides │ │ │ ├── _css │ │ │ │ ├── common.css │ │ │ │ └── default.css │ │ │ └── index.html │ │ └── 4-Images-With-Slide-Edges │ │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ │ └── index.html │ ├── 8-Full-Height-Plus-Footer │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ └── 9-Full-Width-Responsive-Height │ │ ├── 1-Basic │ │ └── index.html │ │ ├── 2-full-width │ │ ├── _css │ │ │ ├── common.css │ │ │ └── default.css │ │ └── index.html │ │ └── 3-variable-width │ │ └── index.html ├── _resources │ ├── container-bg.jpg │ ├── h-slider-1-l.jpg │ ├── h-slider-1-thumb.jpg │ ├── h-slider-1.jpg │ ├── h-slider-2-l.jpg │ ├── h-slider-2-thumb.jpg │ ├── h-slider-2.jpg │ ├── h-slider-3-l.jpg │ ├── h-slider-3-thumb.jpg │ ├── h-slider-3.jpg │ ├── h-slider-4-l.jpg │ ├── h-slider-4-thumb.jpg │ ├── h-slider-4.jpg │ ├── h-slider-5-l.jpg │ ├── h-slider-5.jpg │ ├── selector-shadow.png │ └── slider-buttons.png └── _test-cases │ └── Issue-244 │ └── index.html ├── _lib ├── jquery-1.4.min.js ├── jquery-1.7.min.js ├── jquery-1.8.2.min.js └── jquery.easing-1.3.js ├── _src ├── jquery.iosslider.js └── jquery.iosslider.min.js └── component.json /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | _src/jquery.iosslider.demo.js 3 | 4 | _src/jquery.iosslider.demo.min.js 5 | 6 | _src/anti-piracy.js 7 | 8 | zsh/ 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

iosslider – Touch Enabled, Responsive jQuery Horizontal Content Slider/Carousel/Image Gallery Plugin

2 | 3 |

iosslider is a jQuery plugin which allows you to integrate a customizable, cross-browser content slider into your web presence. Designed for use as a content slider, carousel, scrolling website banner, or image gallery.

4 | 5 |

Features

6 | 7 | 21 | 22 |

Browser Support Details

23 | 24 |

iOS - iPhone / iPad / iPod Touch

25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
BrowserVersion
Safari4.0+
Chrome19.0+
49 | 50 |

Surface - Multi-platform

51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
BrowserVersion
Internet Explorer10+
71 | 72 |

Desktop - Windows / Mac

73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 |
BrowserVersion
Firefox5.0+
Chrome19.0+
Safari5.0+
Internet Explorer7+
105 | 106 |

Android - Multi-platform

107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 |
BrowserVersion
Stock2.3+
Firefox18.0+
Chrome19.0+
Opera12.0+
139 | 140 |

iosslider may work in earlier versions of browsers listed, but are not supported at this time.

141 | 142 |

Installation & Setup

143 | 144 |

Getting Ready

145 | 146 |

To get started, you will need to download the iosslider script. The download package contains the iosslider script, the jQuery library, demos and benchmarks.

147 | 148 |

Include the Necessary JavaScript Files

149 | 150 |

The jQuery library and iosslider Plugin scripts must be included in the HTML header of the web page. The jQuery library must be included first for the iosslider plugin to function.

151 | 152 |
153 | <!-- jQuery library -->
154 | <script type = 'text/javascript' src = 'jquery-1.4.min.js'></script>
155 | 
156 | <!-- iosslider plugin -->
157 | <script type = 'text/javascript' src = 'jquery.iosslider.js'></script>
158 | 
159 | 160 |

Add the HTML

161 | 162 |

Add the iosslider HTML code within the body of the web page. The HTML can contain as little as one slide element.

163 | 164 |
165 | <div class = 'iosslider'>
166 | 
167 | 	<!-- slider -->
168 | 	<div class = 'slider'>
169 | 	
170 | 		<!-- slides -->
171 | 		<div class = 'slide'>...</div>
172 | 		<div class = 'slide'>...</div>
173 | 		<div class = 'slide'>...</div>
174 | 	
175 | 	</div>
176 | 
177 | </div>
178 | 
179 | 180 |

Add the CSS

181 | 182 |

Place the CSS in your stylesheet. The required CSS attributes are included to guarantee optimal performance. Feel free to apply as many other CSS attributes as you want. To see some real-world examples of this, check the demos folder of the iosslider download package.

183 | 184 |
185 | /* slider container */
186 | .iosSlider {
187 | 	/* required */
188 | 	position: relative;
189 | 	top: 0;
190 | 	left: 0;
191 | 	overflow: hidden;
192 | 	
193 | 	width: px;
194 | 	height: px;
195 | }
196 | 
197 | /* slider */
198 | .iosSlider .slider {
199 | 	/* required */
200 | 	width: 100%;
201 | 	height: 100%;
202 | }
203 | 
204 | /* slide */
205 | .iosSlider .slider .slide {
206 | 	/* required */
207 | 	float: left;
208 | 
209 | 	width: px;
210 | 	height: px;
211 | }
212 | 
213 | 214 |

Add the JavaScript

215 | 216 |

Add the code below to your JavaScript file. The following code uses the jQuery selector to initialize the iosslider jQuery plugin. If you are unfamiliar with jQuery, here is a tutorial to get you started.

217 | 218 |
219 | $(document).ready(function() {
220 | 
221 | 	/* basic - default settings */
222 | 	$('.iosSlider').iosSlider();
223 | 	
224 | 	/* some custom settings */
225 | 	$('.iosSlider').iosSlider({
226 | 		snapToChildren: true,
227 | 		scrollbar: true,
228 | 		scrollbarHide: false,
229 | 		desktopClickDrag: true,
230 | 		scrollbarLocation: 'bottom',
231 | 		scrollbarHeight: '6px',
232 | 		scrollbarBackground: 'url(_img/some-img.png) repeat 0 0',
233 | 		scrollbarBorder: '1px solid #000',
234 | 		scrollbarMargin: '0 30px 16px 30px',
235 | 		scrollbarOpacity: '0.75',
236 | 		onSlideChange: changeSlideIdentifier
237 | 	});
238 | 
239 | });
240 | 
241 | 242 |

Settings & Options

243 | 244 |

You can pass along any of the following key/value pairs listed below to the iosSlider() function or modify them within the iosslider JavaScript file directly.

245 | 246 |

Basic Settings & Options

247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 |
KeyValueDescription
elasticPullResistance0.6(decimal, 0.0 - 1.0) The elastic resistance when pulling on the slider edge.
frictionCoefficient0.92(decimal, 0.0 - 1.0) The friction coefficient applied to the momentum on touch release affecting the rate of deceleration.
elasticFrictionCoefficient0.6(decimal, 0.0 - 1.0) Additonal friction coefficient applied when momentum slides outside the bounds of the slider.
snapFrictionCoefficient0.92(decimal, 0.0 - 1.0) Friction applied to the slider when snapping to an element.
snapToChildrenfalse(boolean) Slider will slide to the closest child element on touch release.
snapSlideCenterfalse(boolean) When snapToChildren is true, this option will snap the slide to the center of the draggable area.
startAtSlide1(integer) Current slide when slider is initially loaded.
scrollbarfalse(boolean) Show or hide the scrollbar.
scrollbarDragfalse(boolean) Enables click/drag, touch/drag functionality on the scrollbar. When enabled, the options scrollbar and scrollbarHide are automatically set to true and false respectively.
scrollbarHidetrue(boolean) Show or hide the scrollbar when it is idle.
scrollbarLocation'top'(string, 'bottom' or 'top') Location that the scrollbar will appear.
scrollbarContainer''(string) A jQuery selection (ex. $('#scrollbarContainer') ), the scrollbar will be loaded and contained by this selection. The scrollbar width will be defined by this container.
scrollbarOpacity0.4(decimal) The css opacity of the scrollbar when visible.
scrollbarHeight'4px'(string) The css height in 'px' of the scrollbar.
scrollbarBorder'none'(string) The css border of the scrollbar.
scrollbarMargin'5px'(string) The css margin of the scrollbar.
scrollbarBackground'none'(string) The css background of the scrollbar.
scrollbarBorderRadius'100px'(string) The css border-radius of the scrollbar.
scrollbarShadow'none'(string) The css box-shadow of the scrollbar.
scrollbarElasticPullResistance0.9(decimal, 0.0 - 1.0) Additonal friction coefficient applied to the scrollbar when momentum/user moves slides outside the bounds of the slider.
desktopClickDragfalse(boolean) Desktop click and drag fallback for the desktop slider.
keyboardControlsfalse(boolean) Left/right keyboard arrows can be used to navigate the slider.
tabToAdvancefalse(boolean) Tab key can be used to navigate the slider forward.
responsiveSlideContainertrue(boolean) Width of slide container becomes responsive to the width/height of its parent element. Slide container dynamically collapse to the width/height of the parent element when wider/taller.
responsiveSlidestrue(boolean) Width of slides becomes responsive to the width/height of its parent element. Slides dynamically collapse to the width/height of the parent element of the slider when wider/taller.
navSlideSelectornull(string) A jQuery selection (ex. $('.navButtons .button') ), each element returned by the selector will activate navigation to each slide respectively. ie. element 0 when clicked (or touched) will animate to the first slide and so on.
navPrevSelectornull(string) A jQuery selection (ex. $('#previousSlide') ), the element returned by the selector will navigate to the previous slide when clicked.
navNextSelectornull(string) A jQuery selection (ex. $('#nextSlide') ), the element returned by the selector will navigate to the next slide when clicked.
autoSlidefalse(boolean) Enables automatic cycling through slides.
autoSlideTimer5000(integer) the time (in milliseconds) that a slide will wait before automatically navigating to the next slide.
autoSlideTransTimer750(integer) the time (in milliseconds) required for all automatic animations to move between slides. See navSlideSelector, navPrevSelector, navNextSelector for details on activating elements for automatic sliding.
autoSlideToggleSelectornull(string) A jQuery selection (ex. $('#autoScrollToggle') ), the element returned by the selector will disable/enable automatic scrolling when clicked. Note: Only works when autoSlide is set to 'true'.
autoSlideHoverPausetrue(boolean) Enables pausing of the autoSlide function when the user mouses over the slider area.
infiniteSliderfalse(boolean) Makes the slider loop in both directions infinitely with no end. When set to true, the option scrollbar is automatically disabled.
snapVelocityThreshold5Minimum slide velocity threshold required to trigger slide snapping to next/previous slide.
slideStartVelocityThreshold0Minimum slide velocity threshold required to begin slider movement.
horizontalSlideLockThreshold5Minimum slide velocity threshold required to lock vertical sliding in the browser.
verticalSlideLockThreshold3Minimum slide velocity threshold required to lock horizontal slider movement.
stageCSS{ position: 'relative', top: '0', left: '0', overflow: 'hidden', zIndex: 1 }(object) The customizable CSS of the stage object.
sliderCSS{ overflow: 'hidden' }(object) The customizable CSS of the slider object.
unselectableSelectornull(string) A jQuery selection (ex. $('.unselectable') ), each element returned by the selector will become removed from touch/click move events.
468 | 469 |

Advanced Settings & Options

470 | 471 |

Advanced callbacks allow further customization through end user created functions/hooks. For additional information regarding parameters supplied to these callbacks, see parameter object details directly below the following table.

472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 |
KeyValueDescription
onSliderLoadednull(function) Executed when slider has finished loading initially.
onSliderUpdatenull(function) Executed when public method 'update' has been completed.
onSliderResizenull(function) Executed when the window has been resized or a device has been rotated.
onSlideStartnull(function) Executed when the slider has begun to move.
onSlideChangenull(function) Executed when the slider has entered the range of a new slide.
onSlideCompletenull(function) Executed when the slider has come to a stop on a new slide.
516 | 517 |

Callback Parameter Object Details

518 | 519 |

All callback functions listed above return the same object, for our example, we will call this object 'args'.

520 | 521 |
522 | args = {
523 | 	settings: {
524 | 		/* all basic/advanced settings & options from above */
525 | 	},
526 | 	data: {
527 | 		obj,
528 | 		settings,
529 | 		scrollerNode,
530 | 		numberOfSlides,
531 | 		sliderNumber,
532 | 		childrenOffsets,
533 | 		sliderMax,
534 | 		scrollbarClass,
535 | 		scrollbarWidth, 
536 | 		scrollbarStageWidth,
537 | 		stageWidth, 
538 | 		scrollMargin, 
539 | 		scrollBorder, 
540 | 		infiniteSliderOffset, 
541 | 		infiniteSliderWidth
542 | 	},
543 | 	sliderObject,
544 | 	sliderContainerObject,
545 | 	targetSlideObject,
546 | 	targetSlideNumber,
547 | 	currentSlideObject,
548 | 	currentSlideNumber,
549 | 	currentSliderOffset
550 | }
551 | 
552 | 553 |

Accessing callback parameter data following the above object structure.

554 | 555 |
556 | $('.iosSlider').iosSlider({
557 | 	onSlideChange: someCallback
558 | });
559 | 
560 | function someCallback(args) {
561 | 	
562 | 	/* accessing user defined settings from initialization */
563 | 	var autoSlideToggleSelector = args.settings.autoSlideToggleSelector;
564 | 	
565 | 	/* accessing data from the slider object */
566 | 	var sliderMax = args.data.sliderMax;
567 | 	
568 | 	/* additional calculated variables supplied to the 'args' object */
569 | 	var currentSlideNumber = args.currentSlideNumber;
570 | 
571 | }
572 | 
573 | 574 |

jQuery .data() Object Details

575 | 576 |

Additional public information is stored using the jQuery.data() object. For usage and access instructions, please consult the jQuery.data() object reference.

577 | 578 |
579 | /* General variables. These variables are set during initialization,
580 |  * window resize, orientation change, and via the 'update' public method 
581 |  */
582 | $('.iosSlider').data('iosslider', {
583 | 	obj,
584 | 	settings,
585 | 	scrollerNode,
586 | 	numberOfSlides,
587 | 	sliderNumber,
588 | 	childrenOffsets,
589 | 	sliderMax,
590 | 	scrollbarClass,
591 | 	scrollbarWidth, 
592 | 	scrollbarStageWidth,
593 | 	stageWidth, 
594 | 	scrollMargin, 
595 | 	scrollBorder, 
596 | 	infiniteSliderOffset, 
597 | 	infiniteSliderWidth
598 | });
599 | 
600 | /* Dynamic variables. These variables are updated with every user interaction. */
601 | $('.iosSlider').data('args', {
602 | 	sliderObject,
603 | 	sliderContainerObject,
604 | 	slideChanged,
605 | 	prevSlideNumber,
606 | 	prevSliderOffset
607 | 	targetSlideObject,
608 | 	targetSlideNumber,
609 | 	currentSlideObject,
610 | 	currentSlideNumber,
611 | 	currentSliderOffset
612 | });
613 | 
614 | 615 |

Public Methods

616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 |
MethodDescription
$(element).iosSlider('destroy');Destroys the selected slider.
Optional parameter: 'clearStyle' (boolean, default: true) when iosslider is destroyed, all inline style applied to the slider will be removed.
$(element).iosSlider('goToSlide', slideNum);Moves to the selected slide.
Required parameter: 'slideNumber' (integer, default: null)
$(element).iosSlider('prevSlide', slideNum);Slides to the previous slide.
$(element).iosSlider('nextSlide', slideNum);Slides to the next slide.
$(element).iosSlider('update');Updates/reinitializes internal variables/CSS attributes based on changes to the HTML/CSS/JS structure of the slider.
$(element).iosSlider('addSlide', slideHTML, slidePosition);Adds a slide defined by 'slideHTML' and placed at position 'slidePosition'.
Required parameters: 'slideHTML' (string, default: null), 'slidePosition' (integer, default: null)
$(element).iosSlider('removeSlide', slideNum);Removes a slide from the slider.
Required parameter: 'slideNumber' (integer, default: null)
$(element).iosSlider('lock');Locks the slider. Temporarily disabling touch/drag events within the slider without unbinding them.
$(element).iosSlider('unlock');Unlocks the slider. Enables touch/drag events previously disabled by the lock method.
$(element).iosSlider('autoSlidePlay');Starts and enables auto-sliding on the slider.
$(element).iosSlider('autoSlidePause');Stops the slider from auto-sliding.
682 | 683 |

Licensing

684 | 685 |

Licensing options can be found at http://iosscripts.com/iosslider/#licensing

686 | 687 |

Help & Support

688 | 689 |

Product Support

690 | 691 |

Need help setting up one of our plugins? Drop us a line and we'll do our best to help.

692 | 693 |

Access support

694 | 695 |

Feature Request

696 | 697 |

If you have an idea for a new feature or if our plugins are missing something your application needs, tell us about it and we'll consider adding it!

698 | 699 |

Submit request

700 | 701 |

Report a Bug

702 | 703 |

If you think you might have found a bug in one of our plugins, let us know. We'll take a look under the hood and see if we can fix it.

704 | 705 |

Submit a bug

-------------------------------------------------------------------------------- /_demos/_benchmarks/_general/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_benchmarks/_general/_js/common.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | 3 | $('.debug #touch').html('isTouch: ' + ('ontouchstart' in window) + ''); 4 | $('.debug #orientation').html('orientationChange: ' + ('onorientationchange' in window) + ''); 5 | $('.debug #css3dTransform').html('css3dTransform: ' + hasCss3dTransform() + ''); 6 | 7 | $('.default-slider').iosSlider({ 8 | desktopClickDrag: true, 9 | navNextSelector: $('.default-slider .next'), 10 | navPrevSelector: $('.default-slider .prev') 11 | }); 12 | 13 | $('.default-slider-container .goToBlock .go').each(function(i) { 14 | $(this).bind('click', function() { 15 | $('.default-slider').iosSlider('goToSlide', i + 1); 16 | }); 17 | }); 18 | 19 | $('.snap-slider').iosSlider({ 20 | desktopClickDrag: true, 21 | snapToChildren: true 22 | }); 23 | 24 | $('.infinite-slider').iosSlider({ 25 | desktopClickDrag: true, 26 | snapToChildren: true, 27 | infiniteSlider: true 28 | }); 29 | 30 | $('.responsive-slider').iosSlider({ 31 | desktopClickDrag: true, 32 | snapToChildren: true, 33 | infiniteSlider: true, 34 | responsiveSlideContainer: false 35 | }); 36 | 37 | $('.responsive-slider-2').iosSlider({ 38 | desktopClickDrag: true, 39 | snapToChildren: true, 40 | infiniteSlider: true, 41 | responsiveSlides: false 42 | }); 43 | 44 | $('.autoslide-slider1').iosSlider({ 45 | desktopClickDrag: true, 46 | snapToChildren: true, 47 | autoSlide: true, 48 | startAtSlide: '2', 49 | scrollbar: true 50 | }); 51 | 52 | $('.autoslide-slider2').iosSlider({ 53 | desktopClickDrag: true, 54 | snapToChildren: true, 55 | infiniteSlider: true, 56 | autoSlide: true, 57 | startAtSlide: '2', 58 | scrollbar: true, 59 | navNextSelector: $('.autoslide-slider2 .next'), 60 | navPrevSelector: $('.autoslide-slider2 .prev') 61 | }); 62 | 63 | $('.autoslide-slider2-container .goToBlock .go').each(function(i) { 64 | $(this).bind('click', function() { 65 | $('.autoslide-slider2').iosSlider('goToSlide', i + 1); 66 | }); 67 | }); 68 | 69 | $('.autoslide-slider4').iosSlider({ 70 | desktopClickDrag: true, 71 | snapToChildren: true, 72 | infiniteSlider: true, 73 | autoSlide: false, 74 | autoSlideTimer: 2000, 75 | startAtSlide: '2', 76 | scrollbar: true, 77 | navNextSelector: $('.autoslide-slider4 .next'), 78 | navPrevSelector: $('.autoslide-slider4 .prev'), 79 | autoSlideToggleSelector: $('.autoslide-slider6-container .goToBlock .go').eq(2) 80 | }); 81 | 82 | $('.autoslide-slider4-container .goToBlock .go').eq(0).bind('click', function() { 83 | 84 | $('.autoslide-slider4').iosSlider('autoSlidePlay'); 85 | 86 | }); 87 | 88 | $('.autoslide-slider4-container .goToBlock .go').eq(1).bind('click', function() { 89 | 90 | $('.autoslide-slider4').iosSlider('autoSlidePause'); 91 | 92 | }); 93 | 94 | $('.autoslide-slider5').iosSlider({ 95 | desktopClickDrag: true, 96 | snapToChildren: true, 97 | infiniteSlider: true, 98 | autoSlide: true, 99 | autoSlideTimer: 2000, 100 | startAtSlide: '2', 101 | scrollbar: true, 102 | navNextSelector: $('.autoslide-slider4 .next'), 103 | navPrevSelector: $('.autoslide-slider4 .prev'), 104 | autoSlideToggleSelector: $('.autoslide-slider5-container .goToBlock .go:eq(2)') 105 | }); 106 | 107 | $('.autoslide-slider5-container .goToBlock .go').eq(0).bind('click', function() { 108 | 109 | $('.autoslide-slider5').iosSlider('autoSlidePlay'); 110 | 111 | }); 112 | 113 | $('.autoslide-slider5-container .goToBlock .go').eq(1).bind('click', function() { 114 | 115 | $('.autoslide-slider5').iosSlider('autoSlidePause'); 116 | 117 | }); 118 | 119 | $('.variable-width-slider').iosSlider({ 120 | desktopClickDrag: true, 121 | snapToChildren: true 122 | }); 123 | 124 | $('.short-width-slider').iosSlider({ 125 | desktopClickDrag: true, 126 | snapToChildren: true 127 | }); 128 | 129 | $('.short-width-slider-2').iosSlider({ 130 | desktopClickDrag: true, 131 | snapToChildren: true, 132 | infiniteSlider: true, 133 | navNextSelector: '.short-width-slider-2 .next', 134 | navPrevSelector: '.short-width-slider-2 .prev' 135 | }); 136 | 137 | $('.short-width-slider-3').iosSlider({ 138 | desktopClickDrag: true, 139 | snapToChildren: true 140 | }); 141 | 142 | $('.autoslide-slider3').iosSlider({ 143 | desktopClickDrag: true, 144 | snapToChildren: true, 145 | infiniteSlider: true, 146 | autoSlide: true, 147 | autoSlideTransTimer: 0, 148 | navNextSelector: $('.autoslide-slider3 .next'), 149 | navPrevSelector: $('.autoslide-slider3 .prev') 150 | }); 151 | 152 | $('.destroy-slider').iosSlider({ 153 | desktopClickDrag: true, 154 | snapToChildren: true, 155 | infiniteSlider: true, 156 | autoSlide: true, 157 | navNextSelector: $('.destroy-slider .next'), 158 | navPrevSelector: $('.destroy-slider .prev') 159 | }); 160 | 161 | $('.destroy-slider-container .goToBlock .go').each(function(i) { 162 | $(this).bind('click', function() { 163 | $('.destroy-slider').iosSlider('goToSlide', i + 1); 164 | }); 165 | }); 166 | 167 | $('.destroy-slider-container .destInitBlock .dest').each(function(i) { 168 | 169 | $(this).bind('click', function() { 170 | $('.destroy-slider').iosSlider('destroy'); 171 | }); 172 | 173 | }); 174 | 175 | $('.destroy-slider-container .destInitBlock .init').each(function(i) { 176 | 177 | $(this).bind('click', function() { 178 | $('.destroy-slider').iosSlider({ 179 | desktopClickDrag: true, 180 | snapToChildren: true, 181 | infiniteSlider: true, 182 | autoSlide: true, 183 | navNextSelector: $('.destroy-slider .next'), 184 | navPrevSelector: $('.destroy-slider .prev') 185 | }); 186 | }); 187 | 188 | }); 189 | 190 | $('.callback-slider').iosSlider({ 191 | desktopClickDrag: true, 192 | snapToChildren: true, 193 | infiniteSlider: true, 194 | keyboardControls: true, 195 | navSlideSelector: $('.callback-slider .paging .box'), 196 | onSliderLoaded: callbackSliderLoadedChanged, 197 | onSlideChange: callbackSliderChanged, 198 | onSlideComplete: callbackSliderComplete, 199 | onSlideStart: callbackSliderStart, 200 | onSliderUpdate: callbackSliderUpdate 201 | }); 202 | 203 | $('.callback-slider-container .destInitBlock .dest').each(function(i) { 204 | 205 | $(this).bind('click', function() { 206 | $('.callback-slider').iosSlider('destroy'); 207 | }); 208 | 209 | }); 210 | 211 | $('.callback-slider-container .destInitBlock .update').each(function(i) { 212 | 213 | $(this).bind('click', function() { 214 | $('.callback-slider').iosSlider('update'); 215 | }); 216 | 217 | }); 218 | 219 | $('.callback-slider-container .destInitBlock .init').each(function(i) { 220 | 221 | $(this).bind('click', function() { 222 | $('.callback-slider').iosSlider({ 223 | desktopClickDrag: true, 224 | snapToChildren: true, 225 | infiniteSlider: true, 226 | autoSlide: true, 227 | navNextSelector: $('.destroy-slider .next'), 228 | navPrevSelector: $('.destroy-slider .prev') 229 | }); 230 | }); 231 | 232 | }); 233 | 234 | $('.callback-slider-container .goToBlock .go').each(function(i) { 235 | $(this).bind('click', function() { 236 | $('.callback-slider').iosSlider('goToSlide', i + 1); 237 | }); 238 | }); 239 | 240 | $('.full-width-slider').iosSlider({ 241 | desktopClickDrag: true, 242 | snapToChildren: true, 243 | infiniteSlider: true 244 | }); 245 | 246 | $('.form-slider').iosSlider({ 247 | desktopClickDrag: true, 248 | snapToChildren: true, 249 | infiniteSlider: true 250 | }); 251 | 252 | $('.media-query-slider').iosSlider({ 253 | desktopClickDrag: true, 254 | snapToChildren: true, 255 | infiniteSlider: true 256 | }); 257 | 258 | $('.thirty-slider').iosSlider({ 259 | desktopClickDrag: true, 260 | snapToChildren: true 261 | }); 262 | 263 | $('.undefined-height-slider').iosSlider({ 264 | desktopClickDrag: true, 265 | snapToChildren: true 266 | }); 267 | 268 | $('.bind-event-slider .linkBlock').bind('click', function() { 269 | window.open('http://google.ca'); 270 | }); 271 | 272 | $('.bind-event-slider').iosSlider({ 273 | desktopClickDrag: true, 274 | snapToChildren: true, 275 | infiniteSlider: true 276 | }); 277 | 278 | $('.image-drag-slider').iosSlider({ 279 | desktopClickDrag: true, 280 | snapToChildren: true, 281 | infiniteSlider: true 282 | }); 283 | 284 | $('.add-remove-slide-slider').iosSlider({ 285 | desktopClickDrag: true, 286 | snapToChildren: true, 287 | scrollbar: true, 288 | scrollbarHide: false 289 | }); 290 | 291 | $('.short-content-slider').iosSlider({ 292 | desktopClickDrag: true, 293 | snapToChildren: true 294 | }); 295 | 296 | $('.add-remove-slide-slider-container .destInitBlock .add').bind('click', function() { 297 | 298 | var slide = $("
", { 299 | 'class': 'item item6' 300 | }).append($('', { 301 | 'src': '../../_site-demo/_img/h-slider-1.jpg' 302 | })); 303 | 304 | $('.add-remove-slide-slider').iosSlider('addSlide', slide, 1); 305 | 306 | }); 307 | 308 | $('.add-remove-slide-slider-container .destInitBlock .rem').bind('click', function() { 309 | 310 | $('.add-remove-slide-slider').iosSlider('removeSlide', 1); 311 | 312 | }); 313 | 314 | $('.drag-scrollbar-slider').iosSlider({ 315 | desktopClickDrag: true, 316 | snapToChildren: true, 317 | scrollbarDrag: true, 318 | scrollbarPaging: true, 319 | scrollbarContainer: '.drag-scrollbar-scroll-container', 320 | scrollbarMargin: 0, 321 | scrollbarHeight: '40px', 322 | scrollbarBorderRadius: 0, 323 | scrollbarOpacity: 1 324 | }); 325 | 326 | $('.drag-scrollbar-slider-2').iosSlider({ 327 | desktopClickDrag: true, 328 | snapToChildren: true, 329 | scrollbarDrag: true, 330 | snapSlideCenter: true, 331 | scrollbarContainer: '.drag-scrollbar-scroll-container-2', 332 | scrollbarMargin: '0 15px', 333 | scrollbarHeight: '10px', 334 | scrollbarBorderRadius: 0, 335 | scrollbarOpacity: 1 336 | }); 337 | 338 | $('.lock-slider').iosSlider({ 339 | desktopClickDrag: true, 340 | snapToChildren: true 341 | }); 342 | 343 | $('.lock-slider-container .destInitBlock .lock').bind('click', function() { 344 | 345 | $('.lock-slider').iosSlider('lock'); 346 | 347 | }); 348 | 349 | $('.lock-slider-container .destInitBlock .unlock').bind('click', function() { 350 | 351 | $('.lock-slider').iosSlider('unlock'); 352 | 353 | }); 354 | 355 | $('.unselectable-slider').iosSlider({ 356 | desktopClickDrag: true, 357 | snapToChildren: true, 358 | unselectableSelector: '.unselectable' 359 | }); 360 | 361 | $('.scrollbar-y-slider').iosSlider({ 362 | desktopClickDrag: true, 363 | snapToChildren: true 364 | }); 365 | 366 | $('.keyboard-control-slider').iosSlider({ 367 | desktopClickDrag: true, 368 | snapToChildren: true, 369 | keyboardControls: true 370 | }); 371 | 372 | $('.tab-control-slider').iosSlider({ 373 | desktopClickDrag: true, 374 | snapToChildren: true, 375 | tabToAdvance: true 376 | }); 377 | 378 | $('.snap-center-slider').iosSlider({ 379 | desktopClickDrag: true, 380 | snapToChildren: true, 381 | snapSlideCenter: true 382 | }); 383 | 384 | $('.snap-center-slider-2').iosSlider({ 385 | desktopClickDrag: true, 386 | snapToChildren: true, 387 | snapSlideCenter: true, 388 | infiniteSlider: true 389 | }); 390 | 391 | $('.snap-center-slider-3').iosSlider({ 392 | desktopClickDrag: true, 393 | snapToChildren: true, 394 | snapSlideCenter: true 395 | }); 396 | 397 | }); 398 | 399 | function callbackSliderStart(args) { 400 | 401 | try { 402 | console.log('start:'); 403 | console.log(args); 404 | } catch(err) {} 405 | 406 | } 407 | 408 | function callbackSliderUpdate(args) { 409 | 410 | try { 411 | console.log('update:'); 412 | console.log(args); 413 | } catch(err) {} 414 | 415 | } 416 | 417 | function callbackSliderChanged(args) { 418 | 419 | try { 420 | console.log('changed:'); 421 | console.log(args); 422 | } catch(err) {} 423 | 424 | $(args.sliderObject).siblings('.paging').children('.box').removeClass('selected'); 425 | $(args.sliderObject).siblings('.paging').children('.box:eq(' + (args.currentSlideNumber - 1) + ')').addClass('selected'); 426 | 427 | } 428 | 429 | function callbackSliderLoadedChanged(args) { 430 | 431 | $(args.sliderObject).siblings('.paging').children('.box').removeClass('selected'); 432 | $(args.sliderObject).siblings('.paging').children('.box:eq(' + (args.currentSlideNumber - 1) + ')').addClass('selected'); 433 | try { 434 | console.log(args); 435 | } catch(err) {} 436 | 437 | } 438 | 439 | function callbackSliderComplete(args) { 440 | 441 | /* console.log(args); */ 442 | $(args.currentSlideObject).html('text-added'); 443 | try { 444 | console.log('conplete:'); 445 | console.log(args); 446 | } catch(err) {} 447 | 448 | } 449 | 450 | function hasCss3dTransform() { 451 | 452 | var has3D = false; 453 | 454 | var testElement = $('
').css({ 455 | 'webkitTransform': 'matrix(1,1,1,1,1,1)', 456 | 'MozTransform': 'matrix(1,1,1,1,1,1)', 457 | 'transform': 'matrix(1,1,1,1,1,1)' 458 | }); 459 | 460 | if(testElement.attr('style') == '') { 461 | has3D = false; 462 | } else if(testElement.attr('style') != undefined) { 463 | has3D = true; 464 | } 465 | 466 | return has3D; 467 | 468 | } -------------------------------------------------------------------------------- /_demos/_examples/1-Default/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 67 | 68 | Ex #1: Default 69 | 70 | 71 | 72 | 73 | 74 |
75 | 76 |
77 | 78 |
79 |
80 |
81 |
82 | 83 |
84 | 85 |
86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /_demos/_examples/10-Multislide-Visible-Next-Prev/_css/common.css: -------------------------------------------------------------------------------- 1 | .container { 2 | /* defaults for resposive height container */ 3 | position: relative; 4 | width: 900px; 5 | height: 300px; 6 | margin: 0 auto; 7 | overflow: visible; 8 | } 9 | 10 | .iosSlider { 11 | width: 100%; 12 | height: 300px; 13 | } 14 | 15 | .iosSlider .slider { 16 | width: 100%; 17 | height: 100%; 18 | } 19 | 20 | .iosSlider .slider .item { 21 | float: left; 22 | width: 50%; 23 | } 24 | 25 | .iosSlider .slider .item img { 26 | width: 100%; 27 | height: auto; 28 | } 29 | 30 | .container .prev { 31 | position: absolute; 32 | top: 65px; 33 | left: -60px; 34 | width: 40px; 35 | height: 40px; 36 | background: #000; 37 | z-index: 10; 38 | } 39 | 40 | .container .next { 41 | position: absolute; 42 | top: 65px; 43 | right: -60px; 44 | width: 40px; 45 | height: 40px; 46 | background: #000; 47 | z-index: 10; 48 | } 49 | 50 | .container .unselectable { 51 | opacity: 0.2; 52 | } -------------------------------------------------------------------------------- /_demos/_examples/10-Multislide-Visible-Next-Prev/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/10-Multislide-Visible-Next-Prev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 61 | 62 | iosScripts/iosSlider demos - Multislide Visible Next/Prev Buttons 63 | 64 | 65 | 66 | 67 | 68 |
69 | 70 |
71 | 72 |
73 | 74 |
75 | 76 |
77 |
78 | 79 |
80 |
81 | 82 |
83 |
84 | 85 |
86 |
87 | 88 |
89 | 90 |
91 | 92 |
93 | 94 | 95 | 96 | 97 |
98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /_demos/_examples/11-200-Slides/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 83 | 84 | Ex #1: Default 85 | 86 | 87 | 88 | 89 | 90 |
91 | 92 |
93 | 94 |
95 | 96 |
97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /_demos/_examples/12-image-slides/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 76 | 77 | Ex #12: Image Slides 78 | 79 | 80 | 81 | 82 | 83 |
84 | 85 |
86 | 87 |
88 | 89 |
90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 |
100 | 101 |
102 | 103 |
104 | 105 |
106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /_demos/_examples/13-full-width-image-slides/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 88 | 89 | Ex #12: Image Slides 90 | 91 | 92 | 93 | 94 | 95 |
96 | 97 |
98 | 99 |
100 | 101 |
102 | 103 |
104 | 105 |
106 | 107 |
108 | 109 |
110 | 111 |
112 | 113 |
114 | 115 |
116 | 117 |
118 | 119 |
120 | 121 |
122 | 123 |
124 | 125 |
126 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /_demos/_examples/14-Full-Screen/_css/common.css: -------------------------------------------------------------------------------- 1 | .sliderContainer { 2 | position: absolute; 3 | top: 0; 4 | bottom: 0; 5 | left: 0; 6 | right: 0; 7 | height: 100%; 8 | } 9 | 10 | .iosSlider { 11 | position: relative; 12 | top: 0; 13 | left: 0; 14 | overflow: hidden; 15 | width: 100%; 16 | height: 100%; 17 | } 18 | 19 | .iosSlider .slider { 20 | width: 100%; 21 | height: 100%; 22 | } 23 | 24 | .iosSlider .slider .item { 25 | float: left; 26 | width: 100%; 27 | height: 100%; 28 | } 29 | 30 | .iosSlider .slider .item1 { 31 | background: #666; 32 | } 33 | 34 | .iosSlider .slider .item2 { 35 | background: #999; 36 | } 37 | 38 | .iosSlider .slider .item3 { 39 | background: #aaa; 40 | } 41 | 42 | .iosSlider .slider .item4 { 43 | background: #ddd; 44 | } 45 | 46 | .iosSlider .slider .item5 { 47 | background: #777; 48 | } -------------------------------------------------------------------------------- /_demos/_examples/14-Full-Screen/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/14-Full-Screen/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 32 | 33 | iosScripts/iosSlider demos - Full Screen Slides 34 | 35 | 36 | 37 | 38 | 39 |
40 | 41 |
42 | 43 |
44 | 45 |
slider 1
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /_demos/_examples/15-Buffer-Slides/_css/common.css: -------------------------------------------------------------------------------- 1 | .sliderContainer { 2 | position: absolute; 3 | top: 0; 4 | bottom: 0; 5 | left: 0; 6 | right: 0; 7 | } 8 | 9 | .iosSlider { 10 | position: relative; 11 | top: 0; 12 | left: 0; 13 | overflow: hidden; 14 | width: 1024px; 15 | height: 681px; 16 | } 17 | 18 | .iosSlider .slider { 19 | width: 100%; 20 | height: 100%; 21 | } 22 | 23 | .iosSlider .slider .item { 24 | float: left; 25 | width: 1140px; 26 | height: 300px; 27 | } 28 | 29 | .iosSlider .slider .item { 30 | background: #aaa; 31 | } 32 | 33 | .iosSlider .slider .item1 { 34 | background: url(../../../_resources/h-slider-1-l.jpg) no-repeat 0 0; 35 | } 36 | 37 | .iosSlider .slider .item2 { 38 | background: url(../../../_resources/h-slider-2-l.jpg) no-repeat 0 0; 39 | } 40 | 41 | .iosSlider .slider .item3 { 42 | background: url(../../../_resources/h-slider-3-l.jpg) no-repeat 0 0; 43 | } 44 | 45 | .iosSlider .slider .item4 { 46 | background: url(../../../_resources/h-slider-4-l.jpg) no-repeat 0 0; 47 | } 48 | 49 | .iosSlider .slider .item5 { 50 | background: url(../../../_resources/h-slider-5-l.jpg) no-repeat 0 0; 51 | } 52 | 53 | .iosSlider .slider .item6 { 54 | background: url(../../../_resources/h-slider-1-l.jpg) no-repeat 0 0; 55 | } 56 | 57 | .iosSlider .slider .item7 { 58 | background: url(../../../_resources/h-slider-2-l.jpg) no-repeat 0 0; 59 | } 60 | 61 | .iosSlider .slider .item8 { 62 | background: url(../../../_resources/h-slider-3-l.jpg) no-repeat 0 0; 63 | } 64 | 65 | .iosSlider .slider .item9 { 66 | background: url(../../../_resources/h-slider-4-l.jpg) no-repeat 0 0; 67 | } 68 | 69 | .iosSlider .slider .item10 { 70 | background: url(../../../_resources/h-slider-5-l.jpg) no-repeat 0 0; 71 | } 72 | 73 | .iosSlider .slider .item11 { 74 | background: url(../../../_resources/h-slider-1-l.jpg) no-repeat 0 0; 75 | } 76 | 77 | .iosSlider .slider .item12 { 78 | background: url(../../../_resources/h-slider-2-l.jpg) no-repeat 0 0; 79 | } 80 | 81 | .iosSlider .slider .item13 { 82 | background: url(../../../_resources/h-slider-3-l.jpg) no-repeat 0 0; 83 | } 84 | 85 | .iosSlider .slider .item14 { 86 | background: url(../../../_resources/h-slider-4-l.jpg) no-repeat 0 0; 87 | } 88 | 89 | .iosSlider .slider .item15 { 90 | background: url(../../../_resources/h-slider-5-l.jpg) no-repeat 0 0; 91 | } 92 | 93 | .iosSlider .slider .item16 { 94 | background: url(../../../_resources/h-slider-1-l.jpg) no-repeat 0 0; 95 | } 96 | 97 | .iosSlider .slider .item17 { 98 | background: url(../../../_resources/h-slider-2-l.jpg) no-repeat 0 0; 99 | } 100 | 101 | .iosSlider .slider .item18 { 102 | background: url(../../../_resources/h-slider-3-l.jpg) no-repeat 0 0; 103 | } 104 | 105 | .iosSlider .slider .item19 { 106 | background: url(../../../_resources/h-slider-4-l.jpg) no-repeat 0 0; 107 | } 108 | 109 | .iosSlider .slider .item20 { 110 | background: url(../../../_resources/h-slider-5-l.jpg) no-repeat 0 0; 111 | } 112 | 113 | .iosSlider .slider .item21 { 114 | background: url(../../../_resources/h-slider-1-l.jpg) no-repeat 0 0; 115 | } 116 | 117 | .iosSlider .slider .item22 { 118 | background: url(../../../_resources/h-slider-2-l.jpg) no-repeat 0 0; 119 | } 120 | 121 | .iosSlider .slider .item23 { 122 | background: url(../../../_resources/h-slider-3-l.jpg) no-repeat 0 0; 123 | } 124 | 125 | .iosSlider .slider .item24 { 126 | background: url(../../../_resources/h-slider-4-l.jpg) no-repeat 0 0; 127 | } -------------------------------------------------------------------------------- /_demos/_examples/15-Buffer-Slides/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/15-Buffer-Slides/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 39 | 40 | iosScripts/iosSlider demos - Full Screen Slides 41 | 42 | 43 | 44 | 45 | 46 |
47 | 48 |
49 | 50 |
51 | 52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | 76 |
77 | 78 |
79 | 80 |
81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/1-v1/_css/common.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: Norican; 3 | font-weight: normal; 4 | src: url('../_fonts/norican/Norican-Regular.ttf'); 5 | } 6 | 7 | .iosSliderDemo { 8 | clear: both; 9 | width: 100%; 10 | /* padding: 0 0 30% 0; */ 11 | padding: 0 0 479px; 12 | margin: 0 0 0 0; 13 | position: relative; 14 | } 15 | 16 | .fluidHeight { 17 | position: absolute; 18 | width: 100%; 19 | /* height: 87%; */ 20 | height: 400px; 21 | padding: 4% 0 4% 0; 22 | background: #363739 url(../../../../_resources/container-bg.jpg) repeat 50% 0; 23 | box-shadow: inset 0 3px 10px -4px #000, inset 0 -3px 10px -4px #000; 24 | } 25 | 26 | .sliderContainer { 27 | height: 100%; 28 | max-height: 400px; 29 | padding: 0 0; 30 | } 31 | 32 | .iosSlider { 33 | position: relative; 34 | top: 0; 35 | left: 0; 36 | overflow: hidden; 37 | width: 100%; 38 | height: 100%; 39 | } 40 | 41 | .iosSlider .slider { 42 | width: 100%; 43 | height: 100%; 44 | } 45 | 46 | .iosSlider .slider .item { 47 | width: 100%; 48 | height: 100%; 49 | padding: 0 0 0 0; 50 | } 51 | 52 | .iosSlider .slider .item .inner { 53 | position: relative; 54 | top: 0; 55 | left: 0; 56 | width: 1024px; 57 | margin: 0 auto; 58 | height: 100%; 59 | box-shadow: 0 0 10px -5px #000; 60 | background-position: 50% 0; 61 | background-repeat: no-repeat; 62 | } 63 | 64 | .iosSlider .slider .item .inner .selectorShadow { 65 | position: absolute; 66 | left: 0; 67 | bottom: 0; 68 | background: url(../../../../_resources/selector-shadow.png) no-repeat 0 0; 69 | width: 120px; 70 | height: 30px; 71 | } 72 | 73 | .iosSlider .slider .item .inner .text1 { 74 | background: none repeat scroll 0 0 #000000; 75 | opacity: 0; 76 | filter: alpha(opacity=0); 77 | position: absolute; 78 | right: 150px; 79 | top: 30px; 80 | padding: 0 2px 0 7px; 81 | height: 70px; 82 | } 83 | 84 | .iosSlider .slider .item .inner .text1 span { 85 | color: #fff; 86 | font-family: Norican; 87 | font-size: 420%; 88 | line-height: 73px; 89 | padding: 0 8px; 90 | } 91 | 92 | .iosSlider .slider .item .inner .text2 { 93 | background: none repeat scroll 0 0 #000000; 94 | opacity: 0; 95 | filter: alpha(opacity=0); 96 | padding: 5px 7px 7px; 97 | position: absolute; 98 | right: 0; 99 | top: 100px; 100 | } 101 | 102 | .iosSlider .slider .item .inner .text2 span { 103 | color: #fff; 104 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 105 | font-size: 120%; 106 | line-height: 120%; 107 | } 108 | 109 | .iosSlider .slider .item1 .inner { 110 | background-image: url(../../../../_resources/h-slider-1-l.jpg); 111 | } 112 | 113 | .iosSlider .slider .item2 .inner { 114 | background-image: url(../../../../_resources/h-slider-2-l.jpg); 115 | } 116 | 117 | .iosSlider .slider .item3 .inner { 118 | background-image: url(../../../../_resources/h-slider-3-l.jpg); 119 | } 120 | 121 | .iosSlider .slider .item4 .inner { 122 | background-image: url(../../../../_resources/h-slider-4-l.jpg); 123 | } 124 | 125 | .iosSlider .slider .item5 .inner { 126 | background-image: url(../../../../_resources/h-slider-5-l.jpg); 127 | } 128 | 129 | .sliderContainer .slideSelectors { 130 | position: relative; 131 | bottom: 20px; 132 | left: 0; 133 | width: 1024px; 134 | margin: 0 auto; 135 | z-index: 1; 136 | height: 10px; 137 | } 138 | 139 | .sliderContainer .slideSelectors .item { 140 | float: left; 141 | width: 9px; 142 | height: 9px; 143 | border: 1px solid #000; 144 | background: #999; 145 | margin: 0 0 0 10px; 146 | opacity: 0.25; 147 | filter: alpha(opacity=25); 148 | } 149 | 150 | .sliderContainer .slideSelectors .selected { 151 | background: #000; 152 | opacity: 1; 153 | filter: alpha(opacity=100); 154 | } 155 | 156 | .sliderContainer .scrollbarContainer { 157 | position: relative; 158 | bottom: 4px; 159 | left: 0; 160 | width: 1024px; 161 | height: 4px; 162 | margin: 0 auto; 163 | z-index: 1; 164 | } 165 | 166 | @media screen and (max-width: 1113px) { 167 | 168 | .iosSliderDemo { 169 | padding-bottom: 40%; 170 | } 171 | 172 | .fluidHeight { 173 | height: 87%; 174 | } 175 | 176 | .iosSlider .slider .item .inner { 177 | width: 92%; 178 | margin: 0 4%; 179 | background-position: 80% 0; 180 | } 181 | 182 | .sliderContainer .slideSelectors { 183 | width: 92%; 184 | margin: 0 4%; 185 | } 186 | 187 | .sliderContainer .scrollbarContainer { 188 | width: 92%; 189 | margin: 0 4%; 190 | } 191 | 192 | } 193 | 194 | @media screen and (max-width: 768px) { 195 | 196 | .iosSlider .slider .item .inner .text1 { 197 | top: 15px; 198 | height: 50px; 199 | } 200 | 201 | .iosSlider .slider .item .inner .text1 span { 202 | font-size: 300%; 203 | line-height: 53px; 204 | } 205 | 206 | .iosSlider .slider .item .inner .text2 { 207 | top: 65px; 208 | } 209 | 210 | .iosSlider .slider .item .inner .text2 span { 211 | font-size: 100%; 212 | line-height: 105%; 213 | } 214 | 215 | } 216 | 217 | @media screen and (max-width: 500px) { 218 | 219 | .iosSlider .slider .item .inner .text1 { 220 | display: none; 221 | } 222 | 223 | .iosSlider .slider .item .inner .text2 { 224 | display: none; 225 | } 226 | 227 | } -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/1-v1/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/1-v1/_fonts/norican/Norican-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_examples/16-Site-Demo/1-v1/_fonts/norican/Norican-Regular.ttf -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/1-v1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 87 | 88 | iosScripts.com demo 89 | 90 | 91 | 92 | 93 | 94 |
95 | 96 |
97 | 98 |
99 | 100 |
101 | 102 |
103 | 104 |
105 |
106 |
107 | 108 |
Touch Me.
109 | 110 |
Hardware accelerated using
CSS3 for supported iOS,
Android and WebKit
111 |
112 |
113 | 114 |
115 |
116 |
117 | 118 |
Responsive.
119 | 120 |
Respond to change in browser
width and adjust automatically
121 |
122 |
123 | 124 |
125 |
126 |
127 | 128 |
Flexible.
129 | 130 |
Run multiple sliders on
the same web page
131 |
132 |
133 | 134 |
135 |
136 |
137 | 138 |
Cross-platform.
139 | 140 |
Support a wide variety of browsers
to maximize your user base
141 |
142 |
143 | 144 |
145 |
146 |
147 | 148 |
Customize.
149 | 150 |
Set momentum, elasticity,
scrollbars and more...
151 |
152 |
153 | 154 |
155 | 156 |
157 | 158 |
159 | 160 |
161 | 162 |
163 | 164 |
165 | 166 |
167 | 168 |
169 | 170 |
171 | 172 |
173 | 174 |
175 | 176 |
177 | 178 |
179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/2-v2/_css/common.css: -------------------------------------------------------------------------------- 1 | .iosSliderDemo { 2 | clear: both; 3 | width: 100%; 4 | /* padding: 0 0 30% 0; */ 5 | padding: 0 0 490px; 6 | margin: 0 0 -40px 0; 7 | position: relative; 8 | } 9 | 10 | .fluidHeight { 11 | position: absolute; 12 | width: 100%; 13 | height: 400px; 14 | padding: 45px 0; 15 | background: #363739 url(../_img/container-bg.jpg) repeat 50% 0; 16 | box-shadow: inset 0 3px 10px -4px #000, inset 0 -3px 10px -4px #000; 17 | } 18 | 19 | .sliderContainer { 20 | height: 100%; 21 | max-height: 400px; 22 | padding: 0 0; 23 | } 24 | 25 | .iosSlider { 26 | position: relative; 27 | top: 0; 28 | left: 0; 29 | overflow: hidden; 30 | width: 100%; 31 | height: 100%; 32 | } 33 | 34 | .iosSlider .slider { 35 | width: 100%; 36 | height: 100%; 37 | } 38 | 39 | .iosSlider .slider .item { 40 | width: 1200px; 41 | height: 100%; 42 | padding: 0 0 0 0; 43 | text-align: center; 44 | } 45 | 46 | .iosSlider .slider .item .inner { 47 | position: relative; 48 | top: 0; 49 | left: 0; 50 | width: 95%; 51 | margin: 0 auto; 52 | height: 100%; 53 | box-shadow: 0 0 10px -5px #000; 54 | background-position: 50% 0; 55 | background-repeat: no-repeat; 56 | } 57 | 58 | .iosSlider .slider .item .inner img { 59 | position: relative; 60 | top: 0; 61 | left: 0; 62 | width: 100%; 63 | margin: 0 auto; 64 | } 65 | 66 | .iosSlider .slider .item .inner .selectorShadow { 67 | position: absolute; 68 | left: 0; 69 | bottom: 0; 70 | background: url(../_img/selector-shadow.png) no-repeat 0 0; 71 | width: 120px; 72 | height: 30px; 73 | display: none; 74 | } 75 | 76 | .iosSlider .slider .item .inner .text1 { 77 | background: none repeat scroll 0 0 #000000; 78 | opacity: 0; 79 | filter: alpha(opacity=0); 80 | position: absolute; 81 | left: 100px; 82 | top: 30px; 83 | padding: 0 2px 0 7px; 84 | height: 75px; 85 | text-align: left; 86 | } 87 | 88 | .iosSlider .slider .item .inner .text1 span { 89 | color: #fff; 90 | font-size: 420%; 91 | font-weight: 100; 92 | line-height: 76px; 93 | padding: 0 8px; 94 | } 95 | 96 | .iosSlider .slider .item .inner .text1 span i { 97 | margin: 0 0 0 5px; 98 | } 99 | 100 | .iosSlider .slider .item .inner .text2 { 101 | background: none repeat scroll 0 0 #000000; 102 | opacity: 0; 103 | filter: alpha(opacity=0); 104 | padding: 10px 7px 7px; 105 | position: absolute; 106 | left: 100px; 107 | top: 115px; 108 | text-align: left; 109 | } 110 | 111 | .iosSlider .slider .item .inner .text2 span { 112 | display: block; 113 | color: #fff; 114 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 115 | font-size: 120%; 116 | line-height: 120%; 117 | font-weight: 100; 118 | padding: 0 8px; 119 | } 120 | 121 | .sliderContainer .slideSelectors { 122 | position: relative; 123 | bottom: -17px; 124 | left: 0; 125 | width: 137px; 126 | margin: 0 auto; 127 | z-index: 1; 128 | height: 11px; 129 | } 130 | 131 | .sliderContainer .slideSelectors .prev { 132 | float: left; 133 | width: 11px; 134 | height: 11px; 135 | background: url(../_img/selector-prev.png) no-repeat 50% 0; 136 | } 137 | 138 | .sliderContainer .slideSelectors .next { 139 | float: left; 140 | width: 11px; 141 | height: 11px; 142 | margin: 0 0 0 10px; 143 | background: url(../_img/selector-next.png) no-repeat 50% 0; 144 | } 145 | 146 | .sliderContainer .slideSelectors .item { 147 | float: left; 148 | width: 9px; 149 | height: 9px; 150 | background: #aaa; 151 | margin: 1px 1px 1px 11px; 152 | /* opacity: 0.25; */ 153 | filter: alpha(opacity=25); 154 | border-radius: 10px; 155 | } 156 | 157 | .sliderContainer .slideSelectors .item.first { 158 | margin-left: 1px; 159 | } 160 | 161 | .sliderContainer .slideSelectors .selected { 162 | width: 11px; 163 | height: 11px; 164 | margin: 0 0 0 10px; 165 | background: #eee; 166 | opacity: 1; 167 | filter: alpha(opacity=100); 168 | box-shadow: none; 169 | } 170 | 171 | .sliderContainer .slideSelectors .selected.first { 172 | margin-left: 0; 173 | } 174 | 175 | .sliderContainer .scrollbarContainer { 176 | position: relative; 177 | bottom: 4px; 178 | left: 0; 179 | width: 1024px; 180 | height: 4px; 181 | margin: 0 auto; 182 | z-index: 1; 183 | } 184 | 185 | @media screen and (max-width: 1200px) { 186 | 187 | .iosSliderDemo { 188 | padding-bottom: 424px; 189 | } 190 | 191 | .fluidHeight { 192 | height: 334px; 193 | } 194 | 195 | .iosSlider .slider .item { 196 | width: 100%; 197 | } 198 | 199 | .iosSlider .slider .item .inner { 200 | width: 954px; 201 | } 202 | 203 | .sliderContainer .slideSelectors {} 204 | 205 | } -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/2-v2/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/2-v2/_fonts/norican/Norican-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_examples/16-Site-Demo/2-v2/_fonts/norican/Norican-Regular.ttf -------------------------------------------------------------------------------- /_demos/_examples/16-Site-Demo/2-v2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 90 | 91 | iosScripts.com demo 92 | 93 | 94 | 95 | 96 | 97 |
98 | 99 |
100 | 101 |
102 | 103 |
104 | 105 |
106 | 107 |
108 |
109 | 110 | 111 |
112 | 113 |
Lorem ipsum
114 | 115 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore.
116 |
117 |
118 | 119 |
120 |
121 | 122 | 123 |
124 | 125 |
Powerful
126 | 127 |
Hardware accelerated using CSS3 for supported
iOS, Surface, Android and WebKit browsers.
128 |
129 |
130 | 131 |
132 |
133 | 134 | 135 |
136 | 137 |
Responsive
138 | 139 |
Works with the most dynamic desktop
and mobile web applicaitons.
140 |
141 |
142 | 143 |
144 |
145 | 146 | 147 |
148 | 149 |
Multi-platform
150 | 151 |
Support for the latest desktop, iOS, Microsoft Surface,
and Android web browsers.
152 |
153 |
154 | 155 |
156 |
157 | 158 | 159 |
160 | 161 |
Customize
162 | 163 |
Set momentum, elasticity, scrollbars and more to
get the perfect look & feel for your online application.
164 |
165 |
166 | 167 |
168 | 169 |
170 | 171 |
172 | 173 | 174 | 175 |
176 | 177 |
178 | 179 |
180 | 181 |
182 | 183 |
184 | 185 | 186 | 187 |
188 | 189 |
190 | 191 |
192 | 193 |
194 | 195 |
196 | 197 | 198 | 199 | -------------------------------------------------------------------------------- /_demos/_examples/17-Custom-Snap-Groups/1-Basic/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 104 | 105 | Ex #17.1: Custom Snap Grouping 106 | 107 | 108 | 109 | 110 | 111 |
112 |
113 | 114 |
115 |
116 | 117 |
118 | 119 |
120 |
121 | 122 |
123 |
124 | 125 |
126 |
127 | 128 |
129 |
130 | 131 |
132 | 133 |
134 | 135 |
136 |
137 | 138 |
139 |
140 | 141 |
142 |
143 | 144 |
145 |
146 | 147 |
148 | 149 |
150 | 151 |
152 |
153 | 154 |
155 |
156 | 157 |
158 |
159 | 160 |
161 |
162 | 163 |
164 | 165 |
166 |
167 |
168 |
169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /_demos/_examples/18-RTL/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 129 | 130 | Ex #18: RTL 131 | 132 | 133 | 134 | 135 | 136 |
137 | 138 |
139 | 140 |
141 |
142 |
143 |
144 | 145 |
146 | 147 |
148 | 149 | LOCK
150 | UNLOCK 151 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /_demos/_examples/2-Rotating-Banner/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 180 | 181 | Ex #2: Rotating Banner 182 | 183 | 184 | 185 | 186 | 187 |
188 | 189 |
190 | 191 |
192 | 193 |
Touch Me.
194 | 195 |
Hardware accelerated using
CSS3 for supported iOS,
Android and WebKit
196 | 197 |
198 | 199 |
200 | 201 |
Responsive.
202 | 203 |
Respond to change in browser
width and adjust automatically
204 | 205 |
206 | 207 |
208 | 209 |
Flexible.
210 | 211 |
Run multiple sliders on
the same web page
212 | 213 |
214 | 215 |
216 | 217 |
Customize.
218 | 219 |
Set momentum, elasticity,
scrollbars and more...
220 | 221 |
222 | 223 |
224 | 225 |
226 |
227 |
228 |
229 |
230 |
231 | 232 |
233 | 234 | 235 | 236 | -------------------------------------------------------------------------------- /_demos/_examples/3-Photo-Gallery/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 165 | 166 | Ex #3: Photo Gallery 167 | 168 | 169 | 170 | 171 | 172 |
173 | 174 |
175 | 176 |
177 |
178 | 1 Touch Me. | Hardware accelerated using CSS3 for supported iOS, Android and WebKit 179 |
180 |
181 |
182 | 183 |
184 |
185 | 2 Responsive. | Respond to change in browser width and adjust automatically 186 |
187 |
188 |
189 | 190 |
191 |
192 | 3 Flexible |Run multiple sliders on the same web page 193 |
194 |
195 |
196 | 197 |
198 |
199 | 4 Customize. | Settings for momentum, elastic, scrollbars and more... 200 |
201 |
202 |
203 | 204 |
205 | 206 |
207 | 208 |
209 | 210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 | 223 |
224 | 225 | 226 | 227 | -------------------------------------------------------------------------------- /_demos/_examples/4-Embedded-HTML/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 181 | 182 | Ex #4: Embedded HTML 183 | 184 | 185 | 186 | 187 | 188 |
189 | 190 |
191 | 192 |
193 | 194 |
195 |
196 |
197 | 198 |
199 | 200 |
201 | 202 |
203 | Touch Me. 204 |
205 | 206 |
207 | Hardware accelerated using CSS3 for supported iOS, Android and WebKit 208 |
209 | 210 |
211 | Read More › 212 |
213 | 214 |
215 | 216 |
217 | 218 |
219 | 220 |
221 |
222 |
223 | 224 |
225 | 226 |
227 | 228 |
229 | Respond. 230 |
231 | 232 |
233 | Responsive to change in browser width and adjust automatically 234 |
235 | 236 |
237 | Read More › 238 |
239 | 240 |
241 | 242 |
243 | 244 |
245 | 246 |
247 |
248 |
249 | 250 |
251 | 252 |
253 | 254 |
255 | Flexible. 256 |
257 | 258 |
259 | Run multiple sliders on the same web page 260 |
261 | 262 |
263 | Read More › 264 |
265 | 266 |
267 | 268 |
269 | 270 |
271 | 272 |
273 |
274 |
275 | 276 |
277 | 278 |
279 | 280 |
281 | Custom. 282 |
283 | 284 |
285 | Set momentum, elasticity, scrollbars and more... 286 |
287 | 288 |
289 | Read More › 290 |
291 | 292 |
293 | 294 |
295 | 296 |
297 | 298 |
299 | 300 |
301 | 302 |
303 | 304 | 305 | 306 | -------------------------------------------------------------------------------- /_demos/_examples/5-Double-Slider-Gallery/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 221 | 222 | Ex #5: Double Slider 223 | 224 | 225 | 226 | 227 | 228 |
229 | 230 |
231 | 232 |
233 |
234 | Flexible | Run multiple sliders on the same web page 235 |
236 |
237 |
238 | 239 |
240 |
241 | Touch Enabled | Hardware accelerated using CSS3 for supported iOS, Android and WebKit 242 |
243 |
244 |
245 | 246 |
247 |
248 | Animate | Add your own JavaScript to maximize your slider 249 |
250 |
251 |
252 | 253 |
254 |
255 | Customize | Settings for momentum, elastic, scrollbars and more... 256 |
257 |
258 |
259 | 260 |
261 |
262 | Flexible | Run multiple sliders on the same web page 263 |
264 |
265 |
266 | 267 |
268 |
269 | Touch Enabled | Hardware accelerated using CSS3 for supported iOS, Android and WebKit 270 |
271 |
272 |
273 | 274 |
275 |
276 | Animate | Add your own JavaScript to maximize your slider 277 |
278 |
279 |
280 | 281 |
282 |
283 | Customize | Settings for momentum, elastic, scrollbars and more... 284 |
285 |
286 |
287 | 288 |
289 |
290 | Flexible | Run multiple sliders on the same web page 291 |
292 |
293 |
294 | 295 |
296 |
297 | Touch Enabled | Hardware accelerated using CSS3 for supported iOS, Android and WebKit 298 |
299 |
300 |
301 | 302 |
303 |
304 | Animate | Add your own JavaScript to maximize your slider 305 |
306 |
307 |
308 | 309 |
310 |
311 | Customize | Settings for momentum, elastic, scrollbars and more... 312 |
313 |
314 |
315 | 316 |
317 | 318 |
319 | 320 |
321 | 322 |
323 | 324 |
325 | 326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 | 363 |
364 | 365 |
366 | 367 |
368 | 369 | 370 | 371 | -------------------------------------------------------------------------------- /_demos/_examples/6-Double-Slider-2/_css/common.css: -------------------------------------------------------------------------------- 1 | .container { 2 | position: relative; 3 | width: 960px; 4 | margin: 0 auto; 5 | } 6 | 7 | /* slider 1 */ 8 | .container .iosSlider1Container { 9 | position: absolute; 10 | top: 0; 11 | left: 0; 12 | width: 460px; 13 | height: 382px; 14 | margin: 20px 0 0 0; 15 | } 16 | 17 | .container .iosSlider1Container .iosSlider1 { 18 | position: relative; 19 | top: 0; 20 | left: 0; 21 | overflow: hidden; 22 | 23 | width: 100%; 24 | height: 382px; 25 | } 26 | 27 | .container .iosSlider1Container .iosSlider1 .slider { 28 | width: 100%; 29 | height: 100%; 30 | } 31 | 32 | .container .iosSlider1Container .iosSlider1 .slider .item { 33 | float: left; 34 | width: 100%; 35 | height: 100%; 36 | } 37 | 38 | .container .iosSlider1Container .iosSlider1 .slider .item1 { 39 | background: #999; 40 | } 41 | 42 | .container .iosSlider1Container .iosSlider1 .slider .item2 { 43 | background: #aaa; 44 | } 45 | 46 | .container .iosSlider1Container .iosSlider1 .slider .item3 { 47 | background: #ddd; 48 | } 49 | 50 | /* slider 2 */ 51 | .container .iosSlider2Container { 52 | position: absolute; 53 | top: 0; 54 | right: 0; 55 | width: 460px; 56 | height: 382px; 57 | margin: 20px 0 0 0; 58 | } 59 | 60 | .container .iosSlider2Container .iosSlider2 { 61 | position: relative; 62 | top: 0; 63 | left: 0; 64 | overflow: hidden; 65 | 66 | width: 100%; 67 | height: 382px; 68 | } 69 | 70 | .container .iosSlider2Container .iosSlider2 .slider { 71 | width: 100%; 72 | height: 100%; 73 | } 74 | 75 | .container .iosSlider2Container .iosSlider2 .slider .item { 76 | float: left; 77 | width: 100%; 78 | height: 100%; 79 | } 80 | 81 | .container .iosSlider2Container .iosSlider2 .slider .item1 { 82 | background: #999; 83 | } 84 | 85 | .container .iosSlider2Container .iosSlider2 .slider .item2 { 86 | background: #aaa; 87 | } 88 | 89 | .container .iosSlider2Container .iosSlider2 .slider .item3 { 90 | background: #ddd; 91 | } 92 | 93 | /* next/prev */ 94 | .container .iosSlider2Container .iosSlider2 .next { 95 | position: absolute; 96 | top: 0; 97 | right: 0; 98 | width: 100px; 99 | height: 40px; 100 | background: #000; 101 | } 102 | 103 | .container .iosSlider2Container .iosSlider2 .prev { 104 | position: absolute; 105 | top: 0; 106 | left: 0; 107 | width: 100px; 108 | height: 40px; 109 | background: #000; 110 | } 111 | 112 | /* indicators */ 113 | .container .iosSlider2Container .iosSlider2 .indicatorsBlock { 114 | position: absolute; 115 | left: 0; 116 | bottom: 10px; 117 | width: 100%; 118 | height: 10px; 119 | } 120 | 121 | .container .iosSlider2Container .iosSlider2 .indicatorsBlock .indicators { 122 | margin: 0 auto; 123 | width: 50px; 124 | height: 10px; 125 | } 126 | 127 | .container .iosSlider2Container .iosSlider2 .indicatorsBlock .indicators .item { 128 | float: left; 129 | width: 10px; 130 | height: 10px; 131 | margin: 0 0 0 10px; 132 | background: #666; 133 | } 134 | 135 | .container .iosSlider2Container .iosSlider2 .indicatorsBlock .indicators .first { 136 | margin-left: 0; 137 | } 138 | 139 | .container .iosSlider2Container .iosSlider2 .indicatorsBlock .indicators .selected { 140 | background: #000; 141 | } 142 | 143 | /* Smaller than standard 960 (devices and browsers) */ 144 | @media only screen and (max-width: 959px) { 145 | 146 | .container { 147 | width: 768px; 148 | } 149 | 150 | .container .iosSlider1Container, 151 | .container .iosSlider2Container { 152 | width: 364px; 153 | height: 322px; 154 | } 155 | 156 | } 157 | 158 | /* Tablet Portrait size to standard 960 (devices and browsers) */ 159 | @media only screen and (min-width: 768px) and (max-width: 959px) {} 160 | /* All Mobile Sizes (devices and browser) */ 161 | 162 | @media only screen and (max-width: 767px) { 163 | 164 | .container { 165 | width: 420px; 166 | } 167 | 168 | .container .iosSlider1Container, 169 | .container .iosSlider2Container { 170 | position: static; 171 | width: 420px; 172 | height: 382px; 173 | } 174 | 175 | } 176 | 177 | /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ 178 | @media only screen and (min-width: 480px) and (max-width: 767px) {} 179 | 180 | /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ 181 | @media only screen and (max-width: 479px) { 182 | 183 | .container { 184 | width: 300px; 185 | } 186 | 187 | .container .iosSlider1Container, 188 | .container .iosSlider2Container { 189 | position: static; 190 | width: 300px; 191 | height: 275px; 192 | } 193 | 194 | } -------------------------------------------------------------------------------- /_demos/_examples/6-Double-Slider-2/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/6-Double-Slider-2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 99 | 100 | iosScripts/iosSlider demos - hostus 101 | 102 | 103 | 104 | 105 | 106 |
107 | 108 |
109 | 110 |
111 | 112 |
113 | 114 |
115 |
116 |
117 | 118 |
119 | 120 |
121 | 122 |
123 | 124 |
125 | 126 |
127 | 128 |
129 | 130 |
131 |
132 |
133 | 134 |
135 | 136 | 137 | 138 | 139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 | 147 |
148 | 149 |
150 | 151 |
152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/1-Images/_css/common.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 100%; 3 | overflow: hidden; 4 | } 5 | 6 | .responsiveHeight { 7 | height: 400px; 8 | padding-bottom: 0; 9 | position: relative; 10 | overflow: visible; 11 | } 12 | 13 | .responsiveHeight > .inner { 14 | position: absolute; 15 | width: 100%; 16 | height: 100%; 17 | } 18 | 19 | .iosSlider { 20 | position: relative; 21 | top: 0; 22 | left: 0; 23 | overflow: visible; 24 | width: 100%; 25 | height: 100%; 26 | } 27 | 28 | .iosSlider .slider { 29 | width: 100%; 30 | height: 100%; 31 | } 32 | 33 | .iosSlider .slider .item { 34 | float: left; 35 | width: 1024px; 36 | height: 100%; 37 | text-align: center; 38 | } 39 | 40 | .iosSlider .slider .item1 { 41 | background: #666; 42 | } 43 | 44 | .iosSlider .slider .item2 { 45 | background: #999; 46 | } 47 | 48 | .iosSlider .slider .item3 { 49 | background: #aaa; 50 | } 51 | 52 | .iosSlider .slider .item4 { 53 | background: #ddd; 54 | } 55 | 56 | .iosSlider .slider .item5 { 57 | background: #777; 58 | } 59 | 60 | .iosSlider .slider .item img { 61 | width: 100%; 62 | } 63 | 64 | .indicators { 65 | position: relative; 66 | top: 10px; 67 | left: 0; 68 | width: 1024px; 69 | height: 10px; 70 | margin: 0 auto; 71 | z-index: 10; 72 | } 73 | 74 | .indicators .item { 75 | float: left; 76 | width: 8px; 77 | height: 8px; 78 | margin: 0 5px 0 0; 79 | border: 1px solid #000; 80 | } 81 | 82 | .indicators .selected { 83 | background: #666; 84 | } 85 | 86 | @media screen and (max-width: 1024px) { 87 | 88 | .responsiveHeight { 89 | height: 0; 90 | padding: 0 0 39% 0; /* responsive slider height = 40% of the browser width */ /* 1024/400 = 0.39 */ 91 | } 92 | 93 | .indicators { 94 | width: 100%; 95 | } 96 | 97 | } -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/1-Images/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/1-Images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 47 | 48 | iosScripts/iosSlider demos - Centered Slides 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 |
66 | 67 |
68 |
69 | 70 |
71 |
72 | 73 |
74 |
75 | 76 |
77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/2-Background-Images/_css/common.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 100%; 3 | overflow: hidden; 4 | } 5 | 6 | .containerOuter { 7 | position: absolute; 8 | left: 0; 9 | right: 0; 10 | background: #aaa; 11 | height: 200px; 12 | overflow: hidden; 13 | } 14 | 15 | .container { 16 | position: relative; 17 | width: 100%; 18 | height: 200px; 19 | margin: 0 auto; 20 | overflow: visible; 21 | } 22 | 23 | .container .iosSliderContainer { 24 | position: absolute; 25 | top: 0; 26 | left: 0; 27 | width: 100%; 28 | height: 200px; 29 | margin: 0 0 0 0; 30 | overflow: visible; 31 | } 32 | 33 | .iosSlider { 34 | position: relative; 35 | top: 0; 36 | left: 0; 37 | overflow: visible; 38 | width: 100%; 39 | height: 200px; 40 | } 41 | 42 | .iosSlider .slider { 43 | width: 10000px; 44 | height: 100%; 45 | } 46 | 47 | .iosSlider .slider .item { 48 | float: left; 49 | width: 1000px; 50 | height: 100%; 51 | } 52 | 53 | .iosSlider .slider .item1 { 54 | background: url(../../../../_resources/h-slider-1.jpg) no-repeat 50% 0; 55 | } 56 | 57 | .iosSlider .slider .item2 { 58 | background: url(../../../../_resources/h-slider-2.jpg) no-repeat 50% 0; 59 | } 60 | 61 | .iosSlider .slider .item3 { 62 | background: url(../../../../_resources/h-slider-3.jpg) no-repeat 50% 0; 63 | } 64 | 65 | .iosSlider .slider .item4 { 66 | background: url(../../../../_resources/h-slider-4.jpg) no-repeat 50% 0; 67 | } 68 | 69 | .iosSlider .slider .item5 { 70 | background: url(../../../../_resources/h-slider-5.jpg) no-repeat 50% 0; 71 | } -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/2-Background-Images/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/2-Background-Images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 47 | 48 | iosScripts/iosSlider demos - Centered Slides 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 | 66 |
67 | 68 |
69 | 70 |
71 | 72 |
73 | 74 |
75 | 76 |
77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/3-Short-Slides/_css/common.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 100%; 3 | overflow: hidden; 4 | } 5 | 6 | .containerOuter { 7 | position: absolute; 8 | left: 0; 9 | right: 0; 10 | background: #aaa; 11 | height: 200px; 12 | overflow: hidden; 13 | } 14 | 15 | .container { 16 | position: relative; 17 | width: 100%; 18 | height: 200px; 19 | margin: 0 auto; 20 | overflow: visible; 21 | } 22 | 23 | .container .iosSliderContainer { 24 | position: absolute; 25 | top: 0; 26 | left: 0; 27 | width: 100%; 28 | height: 200px; 29 | margin: 0 0 0 0; 30 | overflow: visible; 31 | } 32 | 33 | .iosSlider { 34 | position: relative; 35 | top: 0; 36 | left: 0; 37 | overflow: visible; 38 | width: 100%; 39 | height: 200px; 40 | } 41 | 42 | .iosSlider .slider { 43 | width: 10000px; 44 | height: 100%; 45 | } 46 | 47 | .iosSlider .slider .item { 48 | float: left; 49 | width: 245px; 50 | height: 100%; 51 | } 52 | 53 | .iosSlider .slider .item1 { 54 | background: url(../../../../_resources/h-slider-1.jpg) no-repeat 50% 0; 55 | } 56 | 57 | .iosSlider .slider .item2 { 58 | background: url(../../../../_resources/h-slider-2.jpg) no-repeat 50% 0; 59 | } 60 | 61 | .iosSlider .slider .item3 { 62 | background: url(../../../../_resources/h-slider-3.jpg) no-repeat 50% 0; 63 | } 64 | 65 | .iosSlider .slider .item4 { 66 | background: url(../../../../_resources/h-slider-4.jpg) no-repeat 50% 0; 67 | } 68 | 69 | .iosSlider .slider .item5 { 70 | background: url(../../../../_resources/h-slider-5.jpg) no-repeat 50% 0; 71 | } -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/3-Short-Slides/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/3-Short-Slides/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 47 | 48 | iosScripts/iosSlider demos - Centered Slides 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 | 66 |
67 | 68 |
69 | 70 |
71 | 72 |
73 | 74 |
75 | 76 |
77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 |
87 | 88 |
89 | 90 |
91 | 92 |
93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/4-Images-With-Slide-Edges/_css/common.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 100%; 3 | overflow: hidden; 4 | } 5 | 6 | .fluidHeight { 7 | position: relative; 8 | width: 100%; 9 | height: 300px; 10 | } 11 | 12 | /* 13 | * below 900px, switch to percentage based responsive height. 14 | * padding of 33.333% is calculated by using the 15 | * image ratio 300px/900px = .333 * 100% = 33.333% 16 | */ 17 | @media screen and (max-width: 900px) { 18 | 19 | .fluidHeight { 20 | height: 0; 21 | padding: 0 0 33.333% 0; 22 | } 23 | 24 | } 25 | 26 | .sliderContainer { 27 | position: absolute; 28 | width: 100%; 29 | height: 100%; 30 | } 31 | 32 | .iosSlider { 33 | width: 100%; 34 | height: 100%; 35 | } 36 | 37 | .iosSlider .slider { 38 | width: 100%; 39 | height: 100%; 40 | } 41 | 42 | .iosSlider .slider .item { 43 | position: relative; 44 | top: 0; 45 | left: 0; 46 | 47 | width: 80%; 48 | height: 100%; 49 | text-align: center; 50 | } 51 | 52 | .iosSlider .slider .item img { 53 | position: relative; 54 | top: 0; 55 | left: 0; 56 | max-width: 90%; 57 | width: 100%; 58 | margin: 0 auto; 59 | } 60 | 61 | .indicators { 62 | position: relative; 63 | top: 10px; 64 | left: 0; 65 | width: 800px; 66 | height: 10px; 67 | margin: 0 auto; 68 | z-index: 10; 69 | } 70 | 71 | .indicators .item { 72 | float: left; 73 | width: 8px; 74 | height: 8px; 75 | margin: 0 5px 0 0; 76 | border: 1px solid #000; 77 | } 78 | 79 | .indicators .selected { 80 | background: #666; 81 | } -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/4-Images-With-Slide-Edges/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/7-Centered-Slides/4-Images-With-Slide-Edges/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 47 | 48 | iosScripts/iosSlider demos - Centered Slides 49 | 50 | 51 | 52 | 53 | 54 |
55 | 56 |
57 | 58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 |
66 | 67 |
68 |
69 | 70 |
71 |
72 | 73 |
74 |
75 | 76 |
77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /_demos/_examples/8-Full-Height-Plus-Footer/_css/common.css: -------------------------------------------------------------------------------- 1 | /* main */ 2 | .main { 3 | position: absolute; 4 | top: 0; 5 | left: 0; 6 | right: 0; 7 | bottom: 150px; 8 | } 9 | 10 | /* footer */ 11 | .footer { 12 | position: absolute; 13 | bottom: 0; 14 | left: 0; 15 | right: 0; 16 | height: 150px; 17 | background: #ddd; 18 | } 19 | 20 | /* toggle */ 21 | .toggle { 22 | position: absolute; 23 | top: 10px; 24 | right: 10px; 25 | width: 80px; 26 | height: 80px; 27 | border: 2px solid #000; 28 | z-index: 2; 29 | background: #fff; 30 | } 31 | 32 | /* slider 1 */ 33 | .main .slider1Container { 34 | position: absolute; 35 | top: 0; 36 | bottom: 150px; 37 | left: 0; 38 | right: 0; 39 | } 40 | 41 | .iosSlider1 { 42 | position: relative; 43 | top: 0; 44 | left: 0; 45 | overflow: hidden; 46 | width: 100%; 47 | height: 100%; 48 | } 49 | 50 | .iosSlider1 .slider { 51 | width: 100%; 52 | height: 100%; 53 | } 54 | 55 | .iosSlider1 .slider .item { 56 | float: left; 57 | width: 100%; 58 | height: 100%; 59 | } 60 | 61 | .iosSlider1 .slider .item1 { 62 | background: #666; 63 | } 64 | 65 | .iosSlider1 .slider .item2 { 66 | background: #999; 67 | } 68 | 69 | .iosSlider1 .slider .item3 { 70 | background: #aaa; 71 | } 72 | 73 | .iosSlider1 .slider .item4 { 74 | background: #ddd; 75 | } 76 | 77 | .iosSlider1 .slider .item5 { 78 | background: #777; 79 | } 80 | 81 | /* slider 2 */ 82 | .slider2Container { 83 | position: absolute; 84 | bottom: 0; 85 | left: 0; 86 | right: 0; 87 | height: 150px; 88 | } 89 | 90 | .iosSlider2 { 91 | position: relative; 92 | bottom: 0; 93 | left: 0; 94 | overflow: hidden; 95 | width: 100%; 96 | height: 150px; 97 | } 98 | 99 | .iosSlider2 .slider { 100 | width: 100%; 101 | height: 100%; 102 | } 103 | 104 | .iosSlider2 .slider .item { 105 | float: left; 106 | width: 250px; 107 | height: 100%; 108 | } 109 | 110 | .iosSlider2 .slider .item1 { 111 | background: #666; 112 | } 113 | 114 | .iosSlider2 .slider .item2 { 115 | background: #999; 116 | } 117 | 118 | .iosSlider2 .slider .item3 { 119 | background: #aaa; 120 | } 121 | 122 | .iosSlider2 .slider .item4 { 123 | background: #ddd; 124 | } 125 | 126 | .iosSlider2 .slider .item5 { 127 | background: #777; 128 | } 129 | 130 | /* s2hidden */ 131 | .sliderHidden .slider1Container { 132 | bottom: 0; 133 | } 134 | 135 | .sliderHidden .slider2Container { 136 | display: none; 137 | } -------------------------------------------------------------------------------- /_demos/_examples/8-Full-Height-Plus-Footer/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/8-Full-Height-Plus-Footer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 54 | 55 | iosScripts/iosSlider demos - Full Height Plus Footer 56 | 57 | 58 | 59 | 60 | 61 |
62 | 63 |
64 | 65 |
66 | 67 |
68 | 69 |
slider 1
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 |
87 | 88 |
89 | 90 |
91 | 92 |
slider 2
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | 103 |
104 | 105 |
106 | 107 |
108 | 109 |
show/hide toggle
110 | 111 |
112 | 113 | 114 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /_demos/_examples/9-Full-Width-Responsive-Height/1-Basic/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 73 | 74 | Ex #9.1: Basic Responsive Example 75 | 76 | 77 | 78 | 79 | 80 |
81 |
82 |
83 |
84 |
85 | 86 |
87 |
88 | 89 |
90 |
91 | 92 |
93 |
94 | 95 |
96 |
97 |
98 |
99 |
100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /_demos/_examples/9-Full-Width-Responsive-Height/2-full-width/_css/common.css: -------------------------------------------------------------------------------- 1 | .container { 2 | /* defaults for resposive height container */ 3 | position: relative; 4 | width: 100%; 5 | height: 0; 6 | 7 | /* 39% being the ratio we are maintaining 8 | * calculated by looking at the image 9 | * ratio: 400/1024 = ~0.39 */ 10 | padding: 0 0 39% 0; 11 | } 12 | 13 | .iosSlider { 14 | width: 100%; 15 | 16 | /* this height ends up being your maximum height, 17 | * if you want it to scale forever, set it to 18 | * a very high number */ 19 | height: 1500px; 20 | } 21 | 22 | .iosSlider .slider { 23 | width: 100%; 24 | height: 100%; 25 | } 26 | 27 | .iosSlider .slider .item { 28 | float: left; 29 | 30 | width: 100%; 31 | } 32 | 33 | .iosSlider .slider .item img { 34 | width: 100%; 35 | height: auto; 36 | } 37 | 38 | /* controls */ 39 | .container .prevContainer { 40 | position: absolute; 41 | top: 0; 42 | left: 0; 43 | width: 100px; 44 | 45 | padding: 0 0 19.5% 0; 46 | z-index: 10; 47 | } 48 | 49 | .container .prevContainer .prev { 50 | position: absolute; 51 | bottom: -10%; 52 | left: 0; 53 | width: 100%; 54 | height: 20%; 55 | background: #aaa; 56 | } 57 | 58 | .container .nextContainer { 59 | position: absolute; 60 | top: 0; 61 | right: 0; 62 | width: 100px; 63 | 64 | padding: 0 0 19.5% 0; 65 | z-index: 10; 66 | } 67 | 68 | .container .nextContainer .next { 69 | position: absolute; 70 | bottom: -10%; 71 | left: 0; 72 | width: 100%; 73 | height: 20%; 74 | background: #aaa; 75 | } 76 | 77 | .container .selectorsBlock { 78 | position: absolute; 79 | bottom: 10px; 80 | width: 100%; 81 | height: 5%; 82 | } 83 | 84 | .container .selectorsBlock .selectors { 85 | position: relative; 86 | top: 0; 87 | left: 0; 88 | margin: 0 auto; 89 | width: 12%; 90 | height: 100%; 91 | } 92 | 93 | .container .selectorsBlock .selectors .item { 94 | position: relative; 95 | top: 0; 96 | left: 0; 97 | float: left; 98 | width: 16%; 99 | height: 100%; 100 | margin: 0 0 0 5%; 101 | background: #aaa; 102 | } 103 | 104 | .container .selectorsBlock .selectors .selected { 105 | background: #333; 106 | } 107 | 108 | .container .selectorsBlock .selectors .first { 109 | margin-left: 0; 110 | } -------------------------------------------------------------------------------- /_demos/_examples/9-Full-Width-Responsive-Height/2-full-width/_css/default.css: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | ---------------------------------------------------------------------------------- 4 | Default css 5 | ---------------------------------------------------------------------------------- 6 | */ 7 | 8 | /* Reset all of the document's element styles to zero... */ 9 | 10 | html, body, div, span, applet, object, iframe, 11 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 12 | a, abbr, acronym, address, big, cite, code, 13 | del, dfn, em, font, img, ins, kbd, q, s, samp, 14 | small, strike, strong, sub, sup, tt, var, 15 | b, u, i, center, 16 | dl, dt, dd, ol, ul, li, 17 | fieldset, form, label, legend, 18 | table, caption, tbody, tfoot, thead, tr, th, td { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | outline: 0; 23 | font-size: 100%; 24 | vertical-align: baseline; 25 | background: transparent; 26 | } 27 | body { 28 | line-height: 1; 29 | } 30 | ol, ul { 31 | list-style: none; 32 | } 33 | blockquote, q { 34 | quotes: none; 35 | } 36 | blockquote:before, blockquote:after, 37 | q:before, q:after { 38 | content: ''; 39 | content: none; 40 | } 41 | 42 | /* remember to define focus styles! */ 43 | :focus { 44 | outline: 0; 45 | } 46 | 47 | /* remember to highlight inserts somehow! */ 48 | ins { 49 | text-decoration: none; 50 | } 51 | del { 52 | text-decoration: line-through; 53 | } 54 | 55 | /* tables still need 'cellspacing="0"' in the markup */ 56 | table { 57 | border-collapse: collapse; 58 | border-spacing: 0; 59 | } 60 | 61 | 62 | 63 | /* Clearing Floats Class STARTS */ 64 | .Wrapper { 65 | display: inline-block;} 66 | .Wrapper:after { 67 | Content: "."; display: block; height: 0; clear: both; visibility: hidden;} 68 | * html .Wrapper { 69 | height: 1%; } 70 | .Wrapper { 71 | display: block;} 72 | /* Clearing Floats Class ENDS */ 73 | 74 | 75 | 76 | 77 | 78 | /* */ 79 | 80 | .hide, .Hide { 81 | display: none;} 82 | .clear { 83 | width: 100%; height: 1px; clear: both; display: block; overflow: hidden;} 84 | 85 | -------------------------------------------------------------------------------- /_demos/_examples/9-Full-Width-Responsive-Height/2-full-width/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 44 | 45 | iosScripts/iosSlider demos - Full Width Collapse Height 46 | 47 | 48 | 49 | 50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 |
58 | 59 |
60 |
61 | 62 |
63 |
64 | 65 |
66 |
67 | 68 |
69 |
70 | 71 |
72 | 73 |
74 | 75 |
76 | 77 |
78 | 79 |
80 | 81 |
82 | 83 |
84 | 85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | 93 |
94 | 95 |
96 | 97 |
98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /_demos/_examples/9-Full-Width-Responsive-Height/3-variable-width/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 56 | 57 | Ex #1: Default 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 |
66 | 67 |
68 | 69 |
70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 | 80 |
81 | 82 |
83 | 84 |
85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /_demos/_resources/container-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/container-bg.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-1-l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-1-l.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-1-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-1-thumb.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-1.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-2-l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-2-l.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-2-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-2-thumb.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-2.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-3-l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-3-l.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-3-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-3-thumb.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-3.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-4-l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-4-l.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-4-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-4-thumb.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-4.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-5-l.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-5-l.jpg -------------------------------------------------------------------------------- /_demos/_resources/h-slider-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/h-slider-5.jpg -------------------------------------------------------------------------------- /_demos/_resources/selector-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/selector-shadow.png -------------------------------------------------------------------------------- /_demos/_resources/slider-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iosscripts/iosslider/382d051f276756f82050b5f91c73d2e3e7885ca9/_demos/_resources/slider-buttons.png -------------------------------------------------------------------------------- /_demos/_test-cases/Issue-244/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 90 | 91 | Ex #17: Ref Issue #244 92 | 93 | 94 | 95 | 96 | 97 |
98 | 99 |
100 | 101 |
1
102 | 103 |
2
104 | 105 |
3
106 | 107 |
4
108 | 109 |
5
110 | 111 |
6
112 | 113 |
114 | 115 |
116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /_lib/jquery.easing-1.3.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 | * 4 | * Uses the built in easing capabilities added In jQuery 1.1 5 | * to offer multiple easing options 6 | * 7 | * TERMS OF USE - jQuery Easing 8 | * 9 | * Open source under the BSD License. 10 | * 11 | * Copyright © 2008 George McGinley Smith 12 | * All rights reserved. 13 | * 14 | * Redistribution and use in source and binary forms, with or without modification, 15 | * are permitted provided that the following conditions are met: 16 | * 17 | * Redistributions of source code must retain the above copyright notice, this list of 18 | * conditions and the following disclaimer. 19 | * Redistributions in binary form must reproduce the above copyright notice, this list 20 | * of conditions and the following disclaimer in the documentation and/or other materials 21 | * provided with the distribution. 22 | * 23 | * Neither the name of the author nor the names of contributors may be used to endorse 24 | * or promote products derived from this software without specific prior written permission. 25 | * 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 27 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 28 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 29 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 31 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 32 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 33 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 34 | * OF THE POSSIBILITY OF SUCH DAMAGE. 35 | * 36 | */ 37 | 38 | // t: current time, b: begInnIng value, c: change In value, d: duration 39 | jQuery.easing['jswing'] = jQuery.easing['swing']; 40 | 41 | jQuery.extend( jQuery.easing, 42 | { 43 | def: 'easeOutQuad', 44 | swing: function (x, t, b, c, d) { 45 | //alert(jQuery.easing.default); 46 | return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 47 | }, 48 | easeInQuad: function (x, t, b, c, d) { 49 | return c*(t/=d)*t + b; 50 | }, 51 | easeOutQuad: function (x, t, b, c, d) { 52 | return -c *(t/=d)*(t-2) + b; 53 | }, 54 | easeInOutQuad: function (x, t, b, c, d) { 55 | if ((t/=d/2) < 1) return c/2*t*t + b; 56 | return -c/2 * ((--t)*(t-2) - 1) + b; 57 | }, 58 | easeInCubic: function (x, t, b, c, d) { 59 | return c*(t/=d)*t*t + b; 60 | }, 61 | easeOutCubic: function (x, t, b, c, d) { 62 | return c*((t=t/d-1)*t*t + 1) + b; 63 | }, 64 | easeInOutCubic: function (x, t, b, c, d) { 65 | if ((t/=d/2) < 1) return c/2*t*t*t + b; 66 | return c/2*((t-=2)*t*t + 2) + b; 67 | }, 68 | easeInQuart: function (x, t, b, c, d) { 69 | return c*(t/=d)*t*t*t + b; 70 | }, 71 | easeOutQuart: function (x, t, b, c, d) { 72 | return -c * ((t=t/d-1)*t*t*t - 1) + b; 73 | }, 74 | easeInOutQuart: function (x, t, b, c, d) { 75 | if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 76 | return -c/2 * ((t-=2)*t*t*t - 2) + b; 77 | }, 78 | easeInQuint: function (x, t, b, c, d) { 79 | return c*(t/=d)*t*t*t*t + b; 80 | }, 81 | easeOutQuint: function (x, t, b, c, d) { 82 | return c*((t=t/d-1)*t*t*t*t + 1) + b; 83 | }, 84 | easeInOutQuint: function (x, t, b, c, d) { 85 | if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 86 | return c/2*((t-=2)*t*t*t*t + 2) + b; 87 | }, 88 | easeInSine: function (x, t, b, c, d) { 89 | return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 90 | }, 91 | easeOutSine: function (x, t, b, c, d) { 92 | return c * Math.sin(t/d * (Math.PI/2)) + b; 93 | }, 94 | easeInOutSine: function (x, t, b, c, d) { 95 | return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 96 | }, 97 | easeInExpo: function (x, t, b, c, d) { 98 | return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 99 | }, 100 | easeOutExpo: function (x, t, b, c, d) { 101 | return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 102 | }, 103 | easeInOutExpo: function (x, t, b, c, d) { 104 | if (t==0) return b; 105 | if (t==d) return b+c; 106 | if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 107 | return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 108 | }, 109 | easeInCirc: function (x, t, b, c, d) { 110 | return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 111 | }, 112 | easeOutCirc: function (x, t, b, c, d) { 113 | return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 114 | }, 115 | easeInOutCirc: function (x, t, b, c, d) { 116 | if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 117 | return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 118 | }, 119 | easeInElastic: function (x, t, b, c, d) { 120 | var s=1.70158;var p=0;var a=c; 121 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 122 | if (a < Math.abs(c)) { a=c; var s=p/4; } 123 | else var s = p/(2*Math.PI) * Math.asin (c/a); 124 | return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 125 | }, 126 | easeOutElastic: function (x, t, b, c, d) { 127 | var s=1.70158;var p=0;var a=c; 128 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 129 | if (a < Math.abs(c)) { a=c; var s=p/4; } 130 | else var s = p/(2*Math.PI) * Math.asin (c/a); 131 | return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 132 | }, 133 | easeInOutElastic: function (x, t, b, c, d) { 134 | var s=1.70158;var p=0;var a=c; 135 | if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 136 | if (a < Math.abs(c)) { a=c; var s=p/4; } 137 | else var s = p/(2*Math.PI) * Math.asin (c/a); 138 | if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 139 | return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 140 | }, 141 | easeInBack: function (x, t, b, c, d, s) { 142 | if (s == undefined) s = 1.70158; 143 | return c*(t/=d)*t*((s+1)*t - s) + b; 144 | }, 145 | easeOutBack: function (x, t, b, c, d, s) { 146 | if (s == undefined) s = 1.70158; 147 | return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 148 | }, 149 | easeInOutBack: function (x, t, b, c, d, s) { 150 | if (s == undefined) s = 1.70158; 151 | if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 152 | return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 153 | }, 154 | easeInBounce: function (x, t, b, c, d) { 155 | return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 156 | }, 157 | easeOutBounce: function (x, t, b, c, d) { 158 | if ((t/=d) < (1/2.75)) { 159 | return c*(7.5625*t*t) + b; 160 | } else if (t < (2/2.75)) { 161 | return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 162 | } else if (t < (2.5/2.75)) { 163 | return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 164 | } else { 165 | return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 166 | } 167 | }, 168 | easeInOutBounce: function (x, t, b, c, d) { 169 | if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 170 | return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 171 | } 172 | }); 173 | 174 | /* 175 | * 176 | * TERMS OF USE - EASING EQUATIONS 177 | * 178 | * Open source under the BSD License. 179 | * 180 | * Copyright © 2001 Robert Penner 181 | * All rights reserved. 182 | * 183 | * Redistribution and use in source and binary forms, with or without modification, 184 | * are permitted provided that the following conditions are met: 185 | * 186 | * Redistributions of source code must retain the above copyright notice, this list of 187 | * conditions and the following disclaimer. 188 | * Redistributions in binary form must reproduce the above copyright notice, this list 189 | * of conditions and the following disclaimer in the documentation and/or other materials 190 | * provided with the distribution. 191 | * 192 | * Neither the name of the author nor the names of contributors may be used to endorse 193 | * or promote products derived from this software without specific prior written permission. 194 | * 195 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 196 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 197 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 198 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 199 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 200 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 201 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 202 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 203 | * OF THE POSSIBILITY OF SUCH DAMAGE. 204 | * 205 | */ -------------------------------------------------------------------------------- /component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iosslider", 3 | "version": "1.3.25", 4 | "main": "./_src/jquery.iosslider.min.js", 5 | "dependencies": { 6 | "jquery": ">=1.4" 7 | } 8 | } --------------------------------------------------------------------------------