Comments (4)
like this?
https://wy.guahao.com/askeveryday/index
from swipe.
How was it done?
from swipe.
This is one part of the Code.
vm.swiper = new Swiper3(vm.$els.swiperContainer, {
speed: 500,
loop: true,
slidesPerView: "auto",
spaceBetween: 12,
autoplay: 3000,
autoplayDisableOnInteraction : false,
onSlideChangeStart: function (swiper) {
// chang opacity
var slide = $(swiper.slides[swiper.activeIndex]);
var index = ~~slide.data("swiperSlideIndex");
var container = $(swiper.container[0]);
container.find(".swiper-slide").removeClass("active")
.filter("[data-swiper-slide-index='" + index + "']")
.addClass("active");
vm.index = index;
},
});
@ratio: 16rem / 750;
.swiper-container{
height: 432 * @ratio;
padding: 0 12px;
overflow: hidden;
.swiper-slide{
position: relative;
width: 680 * @ratio;
height: 432 * @ratio;
overflow: hidden;
opacity: .3;
transition: opacity .5s ease-out;
&.active{
opacity: 1;
}
}
}
from swipe.
from swipe.
Related Issues (20)
- 当只有两个滑动卡时,下滑出现bug
- How to adjust the height according to their own height when it is used for the whole page tab?
- i want text alert on click prev or next button...? HOT 1
- When i append div on document ready, My style is not applying. HOT 2
- Show multiple slides HOT 3
- Webpack 2 pull Jquery
- Ipad, iphione scroll problem
- vertical slides?
- Width calculation rounding - Edge browser
- Gaps between each slider item in latest Safari HOT 2
- FEATURE REQUEST: Run callback only if it’s on touch and not by function HOT 1
- Swipe does not work android mobile browser.
- Processing version of Swipe
- 切换后如何自动播放
- 调用slide方法后,自动滑动失效 HOT 1
- Pagination buttons and slideTo method go to a wrong slide.
- Extra space on left
- Can I use it with vue?
- Handle active index properly when dynamically prepending/lazy loading slides through the data array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipe.