티스토리 뷰

WEB/JQuery

[이미지 슬라이드 jQuery] SlideJs

silverline79 2021. 5. 4. 06:00
 

이미지 슬라이드 SlideJs

JS

1
2
3
4
5
6
7
 $(function(){
      $("#slides").slidesjs({
        width: 940,
        height: 528
      });
    });
 
cs

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
$(function(){
  $("#slides").slidesjs({
    width: 700,
    height: 393
  });
});
 
 
$(function(){
  $("#slides").slidesjs({
    start: 3
  });
});
 
 
$(function(){
  $("#slides").slidesjs({
    navigation: {
      active: true,
        // [boolean] Generates next and previous buttons.
        // You can set to false and use your own buttons.
        // User defined buttons must have the following:
        // previous button: class="slidesjs-previous slidesjs-navigation"
        // next button: class="slidesjs-next slidesjs-navigation"
      effect: "slide"
        // [string] Can be either "slide" or "fade".
    }
  });
});
 
$(function(){
  $("#slides").slidesjs({
    pagination: {
      active: true,
        // [boolean] Create pagination items.
        // You cannot use your own pagination. Sorry.
      effect: "slide"
        // [string] Can be either "slide" or "fade".
    }
  });
});
 
$(function(){
  $("#slides").slidesjs({
    play: {
      active: true,
        // [boolean] Generate the play and stop buttons.
        // You cannot use your own buttons. Sorry.
      effect: "slide",
        // [string] Can be either "slide" or "fade".
      interval: 5000,
        // [number] Time spent on each slide in milliseconds.
      autofalse,
        // [boolean] Start playing the slideshow on load.
      swap: true,
        // [boolean] show/hide stop and play buttons
      pauseOnHover: false,
        // [boolean] pause a playing slideshow on hover
      restartDelay: 2500
        // [number] restart delay on inactive slideshow
    }
  });
});
 
$(function(){
  $("#slides").slidesjs({
    effect: {
      slide: {
        // Slide effect settings.
        speed: 200
          // [number] Speed in milliseconds of the slide animation.
      },
      fade: {
        speed: 300,
          // [number] Speed in milliseconds of the fade animation.
        crossfade: true
          // [boolean] Cross-fade the transition.
      }
    }
  });
});
cs

HTML

1
2
3
4
5
6
7
8
<div id="slides">
    <img src="http://placehold.it/940x528">
    <img src="http://placehold.it/940x528">
    <img src="http://placehold.it/940x528">
    <img src="http://placehold.it/940x528">
    <img src="http://placehold.it/940x528">
  </div>
 
cs

 

 

nathansearles.github.io/slidesjs/

 

SlidesJS, a responsive slideshow plug-in for jQuery (1.7.1+) with features like touch and CSS3

pagination (object) Pagination settings Show example $(function(){ $("#slides").slidesjs({ pagination: { active: true, // [boolean] Create pagination items. // You cannot use your own pagination. Sorry. effect: "slide" // [string] Can be either "slide" or

nathansearles.github.io

slidesjs-SlidesJS-3.zip
2.76MB

댓글