javascript - CSS垂直滑块过渡
问题描述
我正在尝试创建类似于下面的动画的东西,但我不明白从哪里开始
如果您帮助我确定动画的类型或网络资源,您可以在其中记录我并了解更多信息,我将不胜感激。
我从设计开始:
[JsFiddle](https://jsfiddle.net/braian125/r58tpjbg/2/)
解决方案
我使用 Swiper、jQuery 和 animate.css 中的 slideChange 事件找到了解决方案
swiper.on('slideChange', function () {
item = this.slides[this.activeIndex];
itemInfo = $(item).find('.itemInfo');
animation = 'rubberBand';
itemInfo.addClass('animated ' + animation);
window.setTimeout( function(){
itemInfo.removeClass('animated ' + animation);
}, 1000);
animation = 'jello';
el = $(item).find('.itemPic');
el.addClass('animated ' + animation);
window.setTimeout( function(){
el.removeClass('animated ' + animation);
}, 1000);
});
推荐阅读
- performance - Maria DB INDEX selection - 为什么 maria 选择次优索引?
- php - 在 Wordpress 的搜索查询中搜索并匹配一个或多个单词
- html - angular7 *ngFor 带过滤器
- arrays - MongoDB返回值数组而不是json
- python - 是否有关于 dataclass 属性 mypy 错误的解决方法?
- javascript - SASS Gulp-Task:汇总子文件夹中的文件
- java - 如何在 Maven 项目中从 pom.xml 中找到本地 Java 路径?
- android - 如何在 Flutter 中拥有这样的 Tabbar 视图?
- python - 如何在已经绘制的线图上绘制垂直线?
- android - 如何实现recyclerview的轮播效果