帮助中心
获取牛币
联系我们
关于我们
版权声明
素材牛首页
微博登录
QQ登录
微信扫码登录
注册
登录
新浪微博
QQ登陆
微信登录
热门搜索:
小程序
支付
Java
后台模板
上传
商城模板
jQuery
手机
Thinkphp
微信
Vue.js
首 页
网页特效
整站源码
PHP实例
网站模版
工具箱
常用代码
论坛
游戏源码
资源分享
当前位置:
首页
»
精选常用代码
» 全屏的图片剪切轮播动画特效
全屏的图片剪切轮播动画特效
浏览:631次
-
评论:1次
-
发布时间:2021-05-27
Html
Css
Js
自定义文案
自定义文案详细信息
* { margin:0; padding:0; } ul,li { list-style:none; } .fullpage { width:100%; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; } .pc_page_swiper { position:relative; display:flex; align-items:center; justify-content:center; } .pc_page_swiper .swiper-container { /* position:absolute; */ } li { width:100%; position:absolute; /*一定要设置这个*/ top:0; left:0; overflow:hidden; z-index:4; } .pc_first_page_img { width:100%; height:100%; position:absolute; top:0; left:0; } .pc_second_page_img { width:100%; height:100%; position:relative; overflow:hidden; } .pc_first_page_img img,.pc_second_page_img img { width:100%; height:100%; } .pc_first_page_info { position:absolute; text-align:right; z-index:10; } .pc_first_page_info h3 { color:#FFFFFF; font-size:100px; margin-bottom:29px; } .pc_first_page_info h5 { color:#FFFFFF; font-size:48px; } .pc_second_page { width:100%; height:100%; display:flex; } .pc_first_page_arrow { width:20px; position:absolute; bottom:50px; z-index:10; cursor:pointer; animation-name:beat; /*动画名称*/ animation-duration:.5s; /*设置秒数*/ animation-timing-function:linear; /*速度曲线*/ animation-iteration-count:infinite; /*播放次数*/ animation-direction:alternate; /*逆向播放*/ animation-play-state:running; /*正在运行*/ } @keyframes beat { 0% { bottom:50px; } 100% { bottom:55px; } }.slide_show { position:relative; height:100%; width:100%; } .slide_show * { outline:none; } .slide_show li img { width:100%; overflow:hidden; -webkit-transition:all 3s cubic-bezier(0.7,0.5,0.3,1); transition:all 3s cubic-bezier(0.7,0.5,0.3,1); } .slide_show .pc_first_page_slide.slick-active img { -webkit-transform:scale(1.05); transform:scale(1.05); } li.one { z-index:4; } li.two { z-index:3; } li.three { z-index:2; } li.four { z-index:1; } li.current { /* clip:rect(0,1600px,970px,0); */ z-index:9; animation:mymove 1s linear 0s forwards; } @keyframes mymove { from { clip:rect(0,2000px,970px,0); } to { clip:rect(0,2000px,970px,2000px); } }.activeImg { -webkit-transform:scale(1.05); transform:scale(1.05); }
var num = 0; $('.pc_first_page_slide, #fullpage').height($(window).height()); function fn() { num++; if (num === $(".slide_show>ul>li").length) { num = 0; } $(".slide_show li").eq(num).show().find('img').addClass('activeImg'); $(".slide_show li").eq(num).siblings("li").find('img').removeClass('activeImg') $(".slide_show li").eq(num - 1).addClass('current').siblings("li").removeClass('current'); setTimeout(function() { $(".slide_show li").eq(num - 1).hide() }, 1000) } setInterval(fn, 2500);
↑上面代码改变,会自动显示代码结果
jQuery调用版本:
1.11.3
<!doctype html><html><head><meta charset="utf-8"><title>全屏的图片剪切轮播动画特效-www.sucainiu.com</title><script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script><style>
</style></head><body>
<script>
</script>
</body></html>
立即下载
收藏
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!
充值积分
充值会员
更多说明»
代码描述:jQuery全屏图片剪切轮播动画特效代码
jQuery tab切换
基础jQuery实现树状动画
讨论这个常用代码(1)
回答他人问题或分享心得会奖励牛币
Lv1 新人
wx***87
2021年11月09日
厉害
回复
文明上网,理性发言! 😉 阿里云幸运券,
戳我领取
发表评论
提交回复
我的积分余额:
0
已下载次数:
631
所需牛币:
5
开始下载
牛币获取:
签到、评论、充值
» 在线充值
(10牛币=1元)
成为VIP可永久免积分下载全部常用代码
» 查看详情
VIP
客服
签到
充值