您现在的位置是:网站首页> 编程资料编程资料
CSS3实现的渐变幻灯片效果css3中transform属性实现的4种功能详解CSS3.0(Cascading Style Sheet) 层叠级联样式表纯CSS3实现div按照顺序出入效果CSS3实现列表无限滚动/轮播效果css3 利用transform-origin 实现圆点分布在大圆上布局及旋转特效CSS3实现的侧滑菜单CSS3实现的3D隧道效果用CSS3画一个爱心css3 实现文字闪烁效果的三种方式示例代码六种css3实现的边框过渡效果
2023-10-17
356人已围观
简介 这篇文章主要介绍了CSS3实现的渐变幻灯片效果的示例代码,帮助大家更好的理解和使用CSS3,感兴趣的朋友可以了解下
实现效果

代码
html
css
body{ font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300; } .css-slideshow{ position: relative; max-width: 495px; height: 370px; margin: 5em auto .5em auto; } .css-slideshow figure{ margin: 0; max-width: 495px; height: 370px; background: #000; position: absolute; } .css-slideshow img{ box-shadow: 0 0 2px #666; } .css-slideshow figcaption{ position: absolute; top: 0; color: #fff; background: rgba(0,0,0, .3); font-size: .8em; padding: 8px 12px; opacity: 0; transition: opacity .5s; } .css-slideshow:hover figure figcaption{ transition: opacity .5s; opacity: 1; } .css-slideshow-attr{ max-width: 495px; text-align: right; font-size: .7em; font-style: italic; margin:0 auto; } .css-slideshow-attr a{ color: #666; } .css-slideshow figure{ opacity:0; } figure:nth-child(1) { animation: xfade 48s 42s infinite; } figure:nth-child(2) { animation: xfade 48s 36s infinite; } figure:nth-child(3) { animation: xfade 48s 30s infinite; } figure:nth-child(4) { animation: xfade 48s 24s infinite; } figure:nth-child(5) { animation: xfade 48s 18s infinite; } figure:nth-child(6) { animation: xfade 48s 12s infinite; } figure:nth-child(7) { animation: xfade 48s 6s infinite; } figure:nth-child(8) { animation: xfade 48s 0s infinite; } @keyframes xfade{ 0%{ opacity: 1; } 10.5% { opacity: 1; } 12.5%{ opacity: 0; } 98% { opacity: 0; } 100% { opacity: 1; } }以上就是CSS3实现的渐变幻灯片效果的详细内容,更多关于CSS3渐变幻灯片的资料请关注其它相关文章!
相关内容
- 纯CSS实现的下拉菜单CSS实现Hover下拉菜单的方法HTML+CSS3+JS 实现的下拉菜单利用纯css做一个下拉菜单功能的示例代码js+css3制作下拉城市菜单多选代码CSS中的导航栏和下拉菜单的实现HTML+CSS实现下拉菜单的实现纯CSS实现的大型下拉菜单的示例代码纯CSS实现下拉菜单的示例代码纯css3制作鼠标悬停波浪形状弹性下拉菜单特效源码纯CSS+HTML大型下拉菜单特效
- CSS border边框一半或者部分可见的实现代码在线CSS边框圆角效果代码工具css3图片边框border-image的用法使用CSS的border属性构建变形边框的方法总结border-radius以外的CSS圆角边框制作方法CSS3之边框多颜色Border-color属性使用示例
- 我叫mt乌鸦之神进化成女德的方法_手机游戏_游戏攻略_
- 天天飞车分数与金币换算方法_分数与金币如何换算_手机游戏_游戏攻略_
- 天天飞车无限刷金币钻石方法详解_刷金币刷钻石攻略心得_手机游戏_游戏攻略_
- 全民英雄矮人直升机怎么刷 紫卡突破需要多少钱详细介绍_手机游戏_游戏攻略_
- 天天飞车车辆隐身小技巧_天天飞车攻略心得_手机游戏_游戏攻略_
- 天天飞车男爵和北极光哪个最好_男爵和北极光有哪些区别_手机游戏_游戏攻略_
- 全民英雄紫卡碎片如何获得 魔能碎片系统详细介绍_手机游戏_游戏攻略_
- 天天飞车元旦后无限油新方法介绍_烧饼无限油修改方法分享_手机游戏_游戏攻略_








