SlideMan

👆

Build Status All Download Release License

Index

1. Getting Started

1-1. How to load?

1-2. Simple Example

For convenience, 1-1 code, which loads and creates a Library in the example, is omitted.

Example - index
  1. Set data-type, data-viewer, data-slide to element

    • Refer below
  2. Run detect() then, When Page is Loaded, detect and apply elements with a data-... attribute

    slideman.detect();
    
  3. 👨‍💻

    <script> slideman.detect(); </script> <body> <div data-type="slideview" data-viewer="test-slider-index" style="width:300px; height:150px; border:1px solid black;"> <div data-type="index"></div> <div data-type="storage"> <div data-slide> <div data-type="title">안녕하세요</div> <div> 1번째 슬라이드<br/> 모바일 경우 왼쪽으로(<<) 쓸어보세요. </div> </div> <div data-slide> <div data-type="title">수고하세요</div> <div> 2번째 슬라이드 </div> </div> <div data-slide> <div data-type="title">어서오세요</div> <div> 3번째 슬라이드<br/> 모바일 경우 오른쪽으로(>>) 쓸어보세요. </div> </div> </div> </div> </body>
Example - tap
  1. Set data-type, data-viewer, data-slide to element

    • Refer below
  2. Run detect() then, When Page is Loaded, detect and apply elements with a data-... attribute

    slideman.detect();
    
  3. 👨‍💻

    <script> slideman.detect(); </script> <body> <div data-type="slideview" data-viewer="test-slider-tap" style="width:350px; height:150px; border:1px solid black;"> <div data-type="tap"></div> <div data-type="storage"> <div data-slide> <div data-type="title">안녕하세요</div> <div> 1번째 슬라이드<br/> 모바일 경우 왼쪽으로(<<) 쓸어보세요. </div> </div> <div data-slide> <div data-type="title">수고하세요</div> <div> 2번째 슬라이드 </div> </div> <div data-slide> <div data-type="title">어서오세요</div> <div> 3번째 슬라이드<br/> 모바일 경우 오른쪽으로(>>) 쓸어보세요. </div> </div> </div> </div> </body>