Swiper Basic use (eight)

Source: Internet
Author: User

This article ish5eduAgency's officialHTML5 TrainingTutorialsSwiper Tutorialsin this lesson we introduce the free mode of the Swiper page.
 
> The first step, we're going to create a swiper base page.

<div class= "Swiper-container" >             <div class= "Swiper-wrapper" >                 <div class= "Swiper-slide" >h5edu 1</div>                 <div class= "Swiper-slide" >h5edu 2</div>                 <div class= " Swiper-slide ">h5edu 3</div>                 <div class= "Swiper-slide" >H5EDU 4 </div>                 <div class= "Swiper-slide" >h5edu 5</div>                 <div class= "Swiper-slide ">h5edu 6</div>         "Logo.png"         <div class= "Swiper-slide" >H5EDU 7</div>                 <div class= "Swiper-slide" >h5edu 8</div>                 <div  class= "Swiper-slide" >h5edu 9</div>                 <div class= "Swiper-slide" >H5EDU  10</div>            </ Div>            <div class= " Swiper-pagination "></div>        </div>

Then we're going to add the properties of our free mode to the initialization

<script>            var swiper =  new swiper ('. Swiper-container ',{                 pagination: '. Swiper-pagination ',                 paginationClickable:true,                 slidesPerView:3,                 spaceBetween:30,                 freemode:true    / /free mode open             });         </script>

After the implementation we come to see the effect, free mode is to be able to turn the page position in any position to stop. No longer restricted to the page


Click to enter Swiper Intensive tutorial

This article is from the "11721999" blog, please be sure to keep this source http://11731999.blog.51cto.com/11721999/1792478

Swiper Basic use (eight)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.