html5长按动画效果(HTML5自定义元素播放焦点图动画的实现)
类别:Web前端 浏览量:2369
时间:2021-10-06 01:01:07 html5长按动画效果
HTML5自定义元素播放焦点图动画的实现这是一款基于HTML5的焦点图动画,它和其他焦点图不同的地方在于,它播放的不仅仅是图片,而是可以自定义控制的网页元素。它不仅在图片间切换有过渡动画效果,而且在切换时图片中的元素也将出现动画效果,比如图中的文字移动、打散、重新组合等。这款HTML5动画图片播放器算得上是高端大气上档次。
HTML代码
<li class="parallax-bg" id="slider-wrap"> <li class="slider parallax-bg" id="slider"> <li class="slider-sections sandbox"> <section class="first"> <img alt="Kendo UI" src="images/home-banner-1.jpg" alt="html5长按动画效果(HTML5自定义元素播放焦点图动画的实现)" border="0" />
CSS代码:
这里列出的是这个焦点图相关的核心CSS代码。
.slider section {display: none;} .slider section.first {display: block;} .slider-sections, .slider-sections section {width: 861px; height: 335px;} .slider-sections {margin: 0 auto; position: relative;} .slider-sections section {position: absolute; top: 0; left: 0px; } .header-content h2 { font:400 32px/1.2 "microsoft yahei", Tahoma, arial, sans-serif; color: #fff; margin: 0 0 26px; } .header-content p { margin: 0 0 30px; } .header-content .centered-content { padding-top: 30px; padding-bottom: 10px; } .button { float: left; width: auto !important; list-style: none; } .button a, .button button, .button input { /* Standard black button */ font-size: 15px; /*font-family: 'lucida sans',arial,helvetica,sans-serif;*/ line-height: 18px; color: #fff !important; text-decoration: none; padding: 5px 14px 6px 13px; display: block; width: auto; position: relative; z-index: 2; border: none; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; background: #313131; /* Old browsers */ background: -moz-linear-gradient(top, #313131 0%, #222222 100%); /* FF3.6+ */ background: -webkit-linear-gradient(top, #313131 0%,#222222 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #313131 0%,#222222 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, #313131 0%,#222222 100%); /* IE10+ */ background: linear-gradient(top, #313131 0%,#222222 100%); /* W3C */ -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } .button a:hover, .button input:hover, .button button:hover, .button a:focus, .button input:focus, .button button:focus { background: #464646; /* Old browsers */ background: -moz-linear-gradient(top, #464646 0%, #393939 100%); /* FF3.6+ */ background: -webkit-linear-gradient(top, #464646 0%,#393939 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #464646 0%,#393939 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, #464646 0%,#393939 100%); /* IE10+ */ background: linear-gradient(top, #464646 0%,#393939 100%); /* W3C */ } header .header-content .button a, #content .button a:hover { text-decoration: none; } .header-content .beta-ribbons { position: absolute; height: 120px; width: 85px; text-indent: -200px; overflow: hidden; background: url(../images/kendo-ribbons.jpg" alt="html5长按动画效果(HTML5自定义元素播放焦点图动画的实现)" border="0" />
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持开心学习网。
您可能感兴趣
- html5长图拖动(html5 拖拽及用 js 实现拖拽功能的示例代码)
- html5弹出窗口(Html5页面上如何禁止手机虚拟键盘弹出)
- 用于播放视频文件的html5元素(html5自动播放mov格式视频的实例代码)
- html5+canvas动画(解析html5 canvas实现背景鼠标连线动态效果代码)
- 制作共用的头部和底部html5界面(html5移动端价格输入键盘的实现)
- html5中datalist标签
- html5div例子(html5 外链式实现加减乘除的代码)
- html5定位地理位置(html5 制作地图当前定位箭头的方法示例)
- h5抽奖的弹框制作(html5实现九宫格抽奖可固定抽中某项奖品)
- html5 video 事件(HTML5通过navigator.mediaDevices.getUserMedia调用手机摄像头问题)
- html5canvas怎么改扇形起始角(HTML5 Canvas实现放大镜效果示例)
- html5入门布局(吃透移动端 Html5 响应式布局)
- html5 postMessage(html5关于外链嵌入页面通信问题postMessage解决跨域通信)
- html5封闭ios(Html5 页面适配iPhoneX就是那么简单)
- html5长按动画效果(HTML5实现移动端弹幕动画效果)
- html5复制修改(HTML5实现无刷新修改URL的方法)
- 以后显卡多了一个新选择,N卡和A卡外又多了个I卡(以后显卡多了一个新选择)
- 读卖乐园的彩灯(读卖乐园的彩灯)
- 新疆80后在淘宝卖干果 以前是 不务正业 如今帮乡亲致富(新疆80后在淘宝卖干果)
- 弄清楚了销 售 买 卖这四个字,母婴生意做起来就没那么难了(弄清楚了销售买)
- 数读 买首饰金是 投资黄金 吗 买金容易卖金难(数读买首饰金是)
- 销 售 买 卖 你真的了解这四个字了吗(销售买)
热门推荐
- laravel框架两表联查(Laravel 使用查询构造器配合原生sql语句查询的例子)
- js如何解决iphone异形屏适配(Html5适配iphoneX刘海屏的简单实现)
- python怎么在csv修改数据(python 编写输出到csv的操作)
- react基础知识详解(如何深入理解React的ref 属性)
- ExtJs 中Viewport 的使用
- sql 多列求和 当某列有null值时的处理
- laravel 开发自定义组件(解决Laravel blade模板转义html标签的问题)
- apache服务器常用配置(优化Apache服务器性能的方法小结)
- laravel自定义实现服务提供者(laravel http 自定义公共验证和响应的方法)
- ExtJs 中Viewport 的使用
排行榜
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9