html5 背景图片自动换,网站背景图片自动切换特效css代码
body {
background: #000;
background-attachment: fixed;
word-wrap: break-word;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
background-repeat: no-repeat
}
ul {
list-style: none
}
.cb-slideshow li:nth-child(1) span {
background-image: url(/wp-content/uploads/2019/03/timg.jpg)
}
.cb-slideshow li:nth-child(2) span {
background-image: url(/wp-content/uploads/2019/06/45.jpg)
}
.cb-slideshow li:nth-child(3) span {
background-image: url()
}
.cb-slideshow li:nth-child(4) span {
background-image: url()
}
.cb-slideshow li:nth-child(5) span {
background-image: url()
}
.cb-slideshow li:nth-child(6) span {
background-image: url()
}
.cb-slideshow,.cb-slideshow:after {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -2
}
.cb-slideshow:after {
content: ''
}
.cb-slideshow li span {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
color: transparent;
background-size: cover;
background-position: 50% 50%;
background-repeat: none;
opacity: 0;
z-index: -2;
-webkit-backface-visibility: hidden;
-webkit-animation: imageAnimation 36s linear infinite 0s;
-moz-animation: imageAnimation 36s linear infinite 0s;
-o-animation: imageAnimation 36s linear infinite 0s;
-ms-animation: imageAnimation 36s linear infinite 0s;
animation: imageAnimation 36s linear infinite 0s
}
.cb-slideshow li:nth-child(2) span {
-webkit-animation-delay: 6s;
-moz-animation-delay: 6s;
-o-animation-delay: 6s;
-ms-animation-delay: 6s;
animation-delay: 6s
}
.cb-slideshow li:nth-child(3) span {
-webkit-animation-delay: 12s;
-moz-animation-delay: 12s;
-o-animation-delay: 12s;
-ms-animation-delay: 12s;
animation-delay: 12s
}
.cb-slideshow li:nth-child(4) span {
-webkit-animation-delay: 18s;
-moz-animation-delay: 18s;
-o-animation-delay: 18s;
-ms-animation-delay: 18s;
animation-delay: 18s
}
.cb-slideshow li:nth-child(5) span {
-webkit-animation-delay: 24s;
-moz-animation-delay: 24s;
-o-animation-delay: 24s;
-ms-animation-delay: 24s;
animation-delay: 24s
}
.cb-slideshow li:nth-child(6) span {
-webkit-animation-delay: 30s;
-moz-animation-delay: 30s;
-o-animation-delay: 30s;
-ms-animation-delay: 30s;
animation-delay: 30s
}
@-webkit-keyframes imageAnimation {
0% {
opacity: 0;
-webkit-animation-timing-function: ease-in
}
8% {
opacity: 1;
-webkit-transform: scale(1.05);
-webkit-animation-timing-function: ease-out
}
17% {
opacity: 1;
-webkit-transform: scale(1.1) rotate(0)
}
25% {
opacity: 0;
-webkit-transform: scale(1.1) rotate(0)
}
100% {
opacity: 0
}
}
1
2
3
4
5
6
html5 背景图片自动换,网站背景图片自动切换特效css代码相关推荐
- html css背景图居中显示,网站背景图居中自适应以及拉伸填充CSS代码解决方法
写这篇水文呢,也是最近在自己在魔改一个主题用作新做的班级网站. 发现模版的背景图片以及其他地方的图片显示只能在电脑端看到,而在移动端不能够自适应.顺便也整理出来. 首先是图片的居中自适应: 需要先给C ...
- 图片瀑布流Html,真的!!!两行css代码实现瀑布流,html,css最简单的瀑布流实现方式且没有缺点...
两行css如下: .waterfall-container { /*分几列*/ column-count: 2; } .waterfall-item { /*不留白,不知道什么意思可以取消这个样式试试 ...
- 间隔一段时间重复自动登录网站、定时自动登录网站的软件 —— 定时执行专家,无需复杂编程,简单配置即可使用
常常有网友在网上发帖求助,想找一个定时自动登录网页(网站)的软件,大致需求如下: 1.打开网页 → 2.填写用户名.密码 → 3.点击登录按钮 → 4.登录成功 另外,还有诸如:要求间隔是每3个小时自 ...
- html打开百度自动搜索,网站添加百度自动推送代码的方法
今天有用户过来询问网站如何添加百度自动推送的代码以增加网站的收录数量,所以就水了这篇博文,如果你有此需求的话,不防按照此文章的方法来获取一下百度的推送代码. 百度自动推送代码的作用图 获取百度推送代码 ...
- node.js+puppeteer创建定时任务自动登录网站截取图片
1.什么是puppeteer? puppeteer是google开源的一套利用nodejs实现的自动爬取网站,实现自动化操作的工具包,使用puppeteer可以实现网站数据爬取.UI自动化测试.学习p ...
- 自动监控网站消息动态并邮件通知 [附代码]
目录 背景 思路 实现 背景 我们可能有时需要关注某个网站的通知更新,以便进行后续操作.比如,时常查看官网的报名通知.但如果手动去看,比较麻烦也容易忘记,所以如果有程序自动监控就比较方便. 思路 定时 ...
- 文件夹自动生成html画廊,【桌面自动生成文件夹】桌面自动生成网站_桌面自动生成tmp文件-系统城...
2017-01-26 13:59:36 浏览量:11190 有的用户发现自己的电脑系统中,总是会在桌面上生成一个名称为MobileFile的文件夹.其实,这个MobileFile文件夹是QQ相关的文件 ...
- 调用bing图片html代码,网站背景调用必应Bing每日图片教程附接口
本次为大家带来的是为网站背景调用必应Bing每日图片教程附接口 微软的必应搜索的每日图片的内容也是非常好看非常美的 小编突发奇想把必应每日更新的图片应用到网站背景 然后就能每天自动换很好看的网站背景了 ...
- css背景图不失真_CSS背景background图片
1.后盾图片语法 bac千克round-image:url() 引入后援图片 background-repeat:no-repeat 设置后盾图片可否重复平铺 background-position: ...
最新文章
- MSLicensing​中断远程桌面连接
- HDU 4286 Data Handler [栈,双端队列]
- linux pprof工具安装,google perftools工具介绍
- 第二章:09流程控制[3for]
- 130242014018-郑志良-第2次实验
- java cas volatile_每日一个知识点:Volatile 和 CAS 的弊端之总线风暴
- 最佳的MongoDB客户端管理工具
- 学Python可以用来干什么?就业情况究竟怎么样?
- Android 系统(216)---Android坐标分析过程
- Android运行时权限,设置帮助类BaseActivity;电话权限,短信权限,
- Extjs利用iframe无弹窗导出下载文件
- [C++/CLI编程宝典][3]C++/CLI能做什么
- 按键精灵定位坐标循环_关于按键精灵win10抓抓截图问题
- Excel VBA使用总结
- 实施工程师面试技巧 –立哥经验
- 【IoT】创业:产品雷达图 - 如何明智地权衡产品?
- [日推荐]『识花草』做个辛勤的小园丁
- open_table和opened_table的区别
- STM32例程分享-01-OLED模块(IIC)
- Linux安装-CentOS6.x