首页 技术 正文
技术 2022年11月6日
0 收藏 747 点赞 425 浏览 1570 个字

效果体验:http://hovertree.com/texiao/css3/10/

一般做图片切换效果,都会使用JS或者jQuery脚本,今天发现,其实只用CSS也可以实现。试试效果吧。

效果图:
css3全屏背景图片切换特效

代码如下:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>纯CSS3实现全屏背景切换焦点图效果 - 何问起</title>
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/css3/10/css/style.css" rel="external nofollow" media="all" />
</head>
<body>
<div class="slider">
<ul class="clearfix">
<li><a href="http://hovertree.com/texiao/css3/10/#bg1" rel="external nofollow" >图片切换1</a></li>
<li><a href="http://hovertree.com/texiao/css3/10/#bg2" rel="external nofollow" >图片切换2</a></li>
<li><a href="http://hovertree.com/texiao/css3/10/#bg3" rel="external nofollow" >图片切换3</a></li>
<li><a href="http://hovertree.com/texiao/css3/10/#bg4" rel="external nofollow" >图片切换4</a></li>
<li><a href="http://hovertree.com/texiao/css3/10/#bg5" rel="external nofollow" >图片切换5</a></li>
</ul>
</div>
<div class="hovertreecontent">
<h1>何问起 纯CSS3实现全屏背景切换焦点图效果</h1>
<a href="http://hovertree.com/h/bjaf/8c5uhche.htm" rel="external nofollow" rel="external nofollow" target="_blank">原文</a> <a href="http://hovertree.com/" rel="external nofollow" target="_blank">首页</a> <a href="http://hovertree.com/texiao/" rel="external nofollow" target="_blank">特效</a>
</div>
<img src="http://hovertree.com/texiao/css3/10/images/bg1.jpg" alt="美图" class="bg slideLeft" id="bg1" />
<img src="http://hovertree.com/texiao/css3/10/images/bg2.jpg" alt="美图" class="bg slideBottom" id="bg2" />
<img src="http://hovertree.com/texiao/css3/10/images/bg3.jpg" alt="美图" class="bg zoomIn" id="bg3" />
<img src="http://hovertree.com/texiao/css3/10/images/bg4.jpg" alt="美图" class="bg zoomOut" id="bg4" />
<img src="http://hovertree.com/texiao/css3/10/images/bg5.jpg" alt="美图" class="bg rotate" id="bg5" /></body>
</html>

转自:http://hovertree.com/h/bjaf/8c5uhche.htm

更多特效:http://www.cnblogs.com/roucheng/p/texiao.html

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,071
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,549
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,397
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,174
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,809
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,889