jQuery图片文字幻灯片动画切换

 时间:2024-11-05 12:46:25

1、新建html文档。

jQuery图片文字幻灯片动画切换

2、书写hmtl代艨位雅剖码。<div class="Yl-container">稆糨孝汶;</div><center>一页多个切换</center><div class="Yl-container2"></div><div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';"><p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p></div></body>

jQuery图片文字幻灯片动画切换

3、书写css代码。.Yl-container .Yl-wrapper .Yl-slide.Yl-2 .Y造婷用痃l-font1 { font-size: 36px; color: #fff; font-weight: 700; margin-top: 30px; }.Yl-container .Yl-wrapper .Yl-slide.Yl-2 .Yl-font2 { font-size: 36px; color: #fff; font-weight: 700; margin-top: 30px; }.Yl-container .Yl-pagination { width: 100%; height: 22px; position: absolute; bottom: 20px; z-index: 3; text-align: center; }.Yl-container .Yl-pagination span { display: inline-block; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 100%; margin: 0 8px; cursor: pointer; line-height: 6px; vertical-align: middle; transition: all 0.3s linear 0s; -webkit-transition: all 0.3s linear 0s; }.Yl-container .Yl-wrapper .Yl-slide .fadeInUp i { opacity: 0; display: inline-block; vertical-align: text-bottom; transform: translateY(120px); -webkit-transform: translateY(120px); transition: all 1s ease-in-out 0s; -webkit-transition: all 1s ease-in-out 0s; }.Yl-container .Yl-wrapper .Yl-slide .fadeInUp.act i { transform: translateY(0); -webkit-transform: translateY(0); opacity: 1; }.Yl-container .Yl-pagination-bullet-active { box-shadow: 0 0 12px rgba(255,255,255,0.8); background: transparent; }.Yl-container .Yl-pagination-bullet-active:after { content: ""; width: 7px; height: 7px; border-radius: 100%; display: inline-block; background: #fff; margin-top: 3px; }.Yl-container .Yl-Button { position: relative; z-index: 2; width: 1200px; height: 60px; margin: 0 auto; border-top: 1px rgba(255, 255, 255, 0.19) solid; text-align: center; margin-top: 50px; }.Yl-container .Yl-Button a { display: block; width: 278px; height: 48px; line-height: 48px; font-size: 26px; color: #111; text-align: center; margin: 0 auto; background: #fff; margin-top: 20px; font-weight: 700; border: 2px #fff solid; text-decoration: none; }.Yl-container .Yl-Button a:hover { background: #111; color: #fff; }.Yl-container .Yl-wrapper .Yl-slide .slideInLeft { position: relative; z-index: 1; }.Yl-container .Yl-wrapper .Yl-slide .slideInLeft i { display: inline-block; text-align: left; }.Yl-container .Yl-wrapper .Yl-slide .slideInLeft i b { opacity: 0; display: inline-block; white-space: nowrap; overflow: hidden; transition: all 0.6s ease-out 0s; -webkit-transition: all 0.6s ease-out 0s; width: 10%; }.Yl-container .Yl-wrapper .Yl-slide .slideInLeft.act i b { width: 100%; opacity: 1; }

jQuery图片文字幻灯片动画切换

4、书写并添加js代码。<script src="js/jquery-1.9.1.min.js"></script><script src="js/jquery.Yl.Slide.min.js"></script>

jQuery图片文字幻灯片动画切换

5、代码整体结构。

jQuery图片文字幻灯片动画切换

6、查看效果。

jQuery图片文字幻灯片动画切换
  • 怎样对幻灯片进行动画页面切换
  • 使用jquery来编写网站幻灯片左右切换效果
  • jQuery文章章节全屏动画切换
  • HTML实现图片幻灯片切换源代码使用教程
  • powerpoint幻灯片如何进行自定义动画
  • 热门搜索
    热爱祖国手抄报内容 幼儿园手抄报图片 数学手抄报一年级 创文明城市手抄报资料 关于梅花的手抄报 有关健康的手抄报 法制知识手抄报内容 十二生肖手抄报 关于传统文化的手抄报 快乐读书手抄报内容