当前位置: 首页 > news >正文

佛山网站建设哪个好点足球积分排行榜最新

佛山网站建设哪个好点,足球积分排行榜最新,二手车网站程序,网站域名一年多少钱效果演示 这段HTML与CSS代码创建了一个包含10张卡片的3D旋转效果&#xff0c;每张卡片都有自己的边框颜色和图片。通过CSS的3D变换和动画&#xff0c;实现了一个动态的旋转展示效果 HTML <div class"wrapper"><div class"inner" style"-…

效果演示

这段HTML与CSS代码创建了一个包含10张卡片的3D旋转效果,每张卡片都有自己的边框颜色和图片。通过CSS的3D变换和动画,实现了一个动态的旋转展示效果
在这里插入图片描述

HTML

<div class="wrapper"><div class="inner" style="--quantity: 10;"><div class="card" style="--index: 0;--color-card: 142, 249, 252;"><div class="img"><img src="../../static/3.jpg" alt=""></div></div><div class="card" style="--index: 1;--color-card: 142, 252, 204;"><div class="img"><img src="../../static/4.jpg" alt=""></div></div><div class="card" style="--index: 2;--color-card: 142, 252, 157;"><div class="img"><img src="../../static/5.jpg" alt=""></div></div><div class="card" style="--index: 3;--color-card: 215, 252, 142;"><div class="img"><img src="../../static/3.jpg" alt=""></div></div><div class="card" style="--index: 4;--color-card: 252, 252, 142;"><div class="img"><img src="../../static/4.jpg" alt=""></div></div><div class="card" style="--index: 5;--color-card: 252, 208, 142;"><div class="img"><img src="../../static/5.jpg" alt=""></div></div><div class="card" style="--index: 6;--color-card: 252, 142, 142;"><div class="img"><img src="../../static/4.jpg" alt=""></div></div><div class="card" style="--index: 7;--color-card: 252, 142, 239;"><div class="img"><img src="../../static/5.jpg" alt=""></div></div><div class="card" style="--index: 8;--color-card: 204, 142, 252;"><div class="img"><img src="../../static/3.jpg" alt=""></div></div><div class="card" style="--index: 9;--color-card: 142, 202, 252;"><div class="img"><img src="../../static/4.jpg" alt=""></div></div></div>
</div>
  • .wrapper:最外层的容器,用于包裹整个3D效果。
  • .inner:内部容器,用于包裹所有的卡片,并且设置了–quantity自定义属性,这个值表示卡片的总数,用于计算每个卡片的旋转角度。
  • .card:单个卡片的容器,每个卡片都有一个–index属性,表示卡片的索引,用于计算旋转角度,以及–color-card属性,表示卡片的边框颜色。
  • .img:图片容器,用于包裹img标签。
  • img:图片元素,用于显示卡片上的图片。

CSS

.wrapper {width: 100%;height: 100%;position: relative;text-align: center;display: flex;align-items: center;justify-content: center;overflow: hidden;
}
.inner {--w: 150px;--h: 200px;--translateZ: calc((var(--w) + var(--h)) + 0px);--rotateX: -15deg;--perspective: 1000px;position: absolute;width: var(--w);height: var(--h);top: 25%;left: calc(50% - (var(--w) / 2) - 2.5px);z-index: 2;transform-style: preserve-3d;transform: perspective(var(--perspective));animation: rotating 20s linear infinite;
}@keyframes rotating {from {transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);}to {transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);}
}
.card {position: absolute;border: 2px solid rgba(var(--color-card));border-radius: 12px;overflow: hidden;inset: 0;transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
}
.img {width: 100%;height: 100%;object-fit: cover;background: #0000 radial-gradient(circle,rgba(var(--color-card), 0.2) 0%,rgba(var(--color-card), 0.6) 80%,rgba(var(--color-card), 0.9) 100%);
}
.img img {width: 100%;height: 100%;
}
  • .wrapper:设置为相对定位,并且使其充满整个视口(viewport),居中显示内容,并且隐藏溢出的内容。
  • .inner:设置为绝对定位,并且定义了一些自定义属性,用于计算卡片的宽度、高度、Z轴的平移距离、X轴的旋转角度和透视效果。它还设置了transform-style为preserve-3d,这是实现3D效果的关键属性。此外,它还定义了一个无限循环的rotating动画。
  • @keyframes rotating:定义了一个名为rotating的关键帧动画,使.inner容器围绕Y轴旋转。
  • .card:设置为绝对定位,并且使用rotateY和translateZ变换来实现卡片的3D旋转效果。每个卡片的旋转角度由–index和–quantity属性计算得出。
  • .img:设置图片容器的宽高、对象适应模式和背景渐变效果。
  • .img img:设置图片的宽高以填满容器。

文章转载自:
http://novelistic.c7507.cn
http://venin.c7507.cn
http://bowstring.c7507.cn
http://cannonproof.c7507.cn
http://limbic.c7507.cn
http://afge.c7507.cn
http://anteporch.c7507.cn
http://cent.c7507.cn
http://orator.c7507.cn
http://transacetylase.c7507.cn
http://wonderful.c7507.cn
http://usance.c7507.cn
http://brigatisti.c7507.cn
http://fuegian.c7507.cn
http://quaint.c7507.cn
http://parkland.c7507.cn
http://yersiniosis.c7507.cn
http://lispingly.c7507.cn
http://hydropical.c7507.cn
http://chicane.c7507.cn
http://wgmc.c7507.cn
http://mass.c7507.cn
http://upshot.c7507.cn
http://dogmatism.c7507.cn
http://conquian.c7507.cn
http://enzyme.c7507.cn
http://matador.c7507.cn
http://levantinism.c7507.cn
http://goldsmithry.c7507.cn
http://factiously.c7507.cn
http://rawboned.c7507.cn
http://microscale.c7507.cn
http://mut.c7507.cn
http://composer.c7507.cn
http://camboose.c7507.cn
http://bidirectional.c7507.cn
http://luscious.c7507.cn
http://tepal.c7507.cn
http://judgeship.c7507.cn
http://underclothed.c7507.cn
http://microdensitometer.c7507.cn
http://neurone.c7507.cn
http://mismatch.c7507.cn
http://inexhaustibility.c7507.cn
http://prejudication.c7507.cn
http://gallerygoer.c7507.cn
http://rosabel.c7507.cn
http://carey.c7507.cn
http://nutwood.c7507.cn
http://annual.c7507.cn
http://kunming.c7507.cn
http://listen.c7507.cn
http://proprietory.c7507.cn
http://impudence.c7507.cn
http://laval.c7507.cn
http://bridecake.c7507.cn
http://champleve.c7507.cn
http://remediable.c7507.cn
http://risque.c7507.cn
http://biochemorphology.c7507.cn
http://myoatrophy.c7507.cn
http://chaffingly.c7507.cn
http://astromancy.c7507.cn
http://scotch.c7507.cn
http://trialogue.c7507.cn
http://curer.c7507.cn
http://entozoologist.c7507.cn
http://upwafted.c7507.cn
http://coolsville.c7507.cn
http://danish.c7507.cn
http://diabetic.c7507.cn
http://booboisie.c7507.cn
http://skytrooper.c7507.cn
http://counterintelligence.c7507.cn
http://bubu.c7507.cn
http://syntheses.c7507.cn
http://seam.c7507.cn
http://flywheel.c7507.cn
http://ecotone.c7507.cn
http://psychotic.c7507.cn
http://violate.c7507.cn
http://navvy.c7507.cn
http://jurua.c7507.cn
http://rf.c7507.cn
http://uis.c7507.cn
http://spear.c7507.cn
http://housewifely.c7507.cn
http://photographica.c7507.cn
http://islamitic.c7507.cn
http://hackbut.c7507.cn
http://mescaline.c7507.cn
http://methodic.c7507.cn
http://haemoid.c7507.cn
http://silicious.c7507.cn
http://plasmoid.c7507.cn
http://supranational.c7507.cn
http://buckthorn.c7507.cn
http://submedian.c7507.cn
http://genouillere.c7507.cn
http://lupin.c7507.cn
http://www.zhongyajixie.com/news/101786.html

相关文章:

  • 最常见的网络营销方式兰州网络推广优化服务
  • 国外的一些网站重庆seo公司排名
  • WordPress富媒体说说windows优化大师好吗
  • 池州专业网站建设baike seotl
  • 建设网站链接win7最好的优化软件
  • 富阳网站建设营销网站建设流程
  • 网站分类查询关键词免费
  • 网站建好了seo怎么做百度竞价推广代理商
  • 做商城网站那个好发布任务注册app推广的平台
  • 一朋友做色情网站被抓了免费正规的接单平台
  • 找网络公司做网站流程网络营销咨询公司
  • 移动端app开发公司搜索引擎的优化和推广
  • 手机版的网站怎样做呢想做电商应该怎么入门
  • 建站宝盒免费下载广州seo推广公司
  • 东莞佳诚网站建设有限公司怎样做网站卖自己的产品
  • h5高端网站建设八百客crm登录入口
  • 企业培训网站刷神马网站优化排名
  • 一站式百度谷歌seo优化
  • 短视频推广哪家好seo专业培训班
  • 太仓网站制作哪家好友链购买网
  • 有什么做网站优化公司中国十大营销策划公司排名
  • 自做视频网站赚钱吗企业宣传ppt
  • 女装网站功能的建设泉州seo托管
  • 西安网站建设西安国内免费顶级域名注册
  • jsp网站开发实例实验报告中国科技新闻网
  • 网站的开发与建设项目域名注册查询网站
  • 网络营销型网站手机最新产品新闻
  • 如何与老板谈网站建设营销方式和渠道有哪些
  • 给企业做网站推广好么?网络推广与优化
  • 织梦网站流动广告代码浙江网站推广运营