您现在的位置是:html5 3免费单机炸金花D旋转木马幻灯片播放代码素材 >>正文
html5 3免费单机炸金花D旋转木马幻灯片播放代码素材
投其所好网25694人已围观
简介支持鼠标拖动旋转,插入mp4视频和图片幻灯片播放一、css样式* { margin: 0; padding: 0;}html,body { height: 100%;}body { overf...
支持鼠标拖动旋转,插入mp4视频和图片幻灯片播放
一、css样式
一、css样式
* { margin: 0; padding: 0;}html,body { height: 100%;}body { overflow: hidden; display: flex; background: #111; perspective: 1000px; transform-style: preserve-3d;}#drag-container, #spin-container { position: relative; display: flex; margin: auto; transform-style: preserve-3d; transform: rotateX(-10deg);}#drag-container img, #drag-container video { transform-style: preserve-3d; position: absolute; left: 0; top: 0; width: 100%; height: 100%; line-height: 200px; font-size: 50px; text-align: center; box-shadow: 0 0 8px #fff; -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0005);}#drag-container img:hover, #drag-container video:hover { box-shadow: 0 0 15px #fffd; -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0007);}#drag-container p { font-family: Serif; position: absolute; top: 100%; left: 50%; transform: translate(-50%,-50%) rotateX(90deg); color: #fff;}#ground { width: 900px; height: 900px; position: absolute; top: 100%; left: 50%; transform: translate(-50%,-50%) rotateX(90deg); background: -webkit-radial-gradient(center center, farthest-side , #9993, transparent);}#carousel-container { width: 100%; height: 100%;}@keyframes spin { from{ transform: rotateY(0deg); } to{ transform: rotateY(360deg); }}@keyframes spinRevert { from{ transform: rotateY(360deg); } to{ transform: rotateY(0deg); }}
二、
html5 3D旋转木马幻灯片播放代码素材,免费单机炸金花3D旋转木马动画特效。html代码
<!DOCTYPE html><html lang="en" ><head><meta charset="UTF-8"><title>html5 3D旋转木马幻灯片播放 - bokequ.com</title><link rel="stylesheet" href="css/style.css"></head><body><div id="drag-container"> <div id="spin-container"> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-206395.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-1391498.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-1382731.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-1758144.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-1382734.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-1462636.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> <a target="_blank" href="img/pexels-photo-139829.jpeg" rel="noopener"> <img src="http://www.bokequ.com/show/carousel/img/pexels-photo-139829.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" alt=""> </a> <video controls autoplay="autoplay" loop> <source src="http://img.ilequ.com/user_files/43/publish/video/28735789_1609040045.mp4" type="video/mp4"> </video> <!-- Dòng chữ ở giữa vòng xoay --> <p>3D旋转木马(博客趣)</p> </div> <div id="ground"></div></div><script type="text/javascript" src="http://www.bokequ.com/show/carousel/js/script.js"></script></body></html>
html5 3D旋转木马幻灯片播放代码演示地址3D旋转木马演示
html5免费单机炸金花基于css3制作多张图片环形布局,Tags:
相关文章
wordpress主题导航菜单添加小图标
html5 3免费单机炸金花D旋转木马幻灯片播放代码素材wordpress头部导航添加图标字体的方法很多,最常见的是要安装插件。wordpress主题后台安装过插件会变的很卡,这里介绍WordPress主题导航菜单添加个性图标字体方法(适合一些响应式设计的...
阅读更多
申请/注册新域名需要注意哪些细节
html5 3免费单机炸金花D旋转木马幻灯片播放代码素材1、选择合适的域名:一个容易记忆与自己内容定位或业务相关的域名,是网站成功的开始。域名建议首选com且简短易记。域名不要过长,难记难写容易混淆等,确保域名与你的品牌、产品、服务、行业相关,这样可能提高...
阅读更多
web前端CSS传统布局position属性
html5 3免费单机炸金花D旋转木马幻灯片播放代码素材一、定位布局在使用定位布局前,先了解一下定位属性的用法。CSS2 提供了 position 属性来实现元素的绝对定位和相对定位。属性说明static默认值,无定位。absolute绝对定位,使用 to...
阅读更多