css实现三维卡片轮换轮播效果代码
代码语言:html
所属分类:幻灯片
代码描述:css实现三维卡片轮换轮播效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
<style>
.icon-cards {
position: relative;
width: 60vw;
height: 40vw;
max-width: 380px;
max-height: 250px;
margin: 0;
color: white;
perspective: 1000px;
transform-origin: center;
}
.icon-cards__content {
position: absolute;
width: 100%;
height: 100%;
transform-origin: center;
transform-style: preserve-3d;
transform: translateZ(-30vw) rotateY(0);
-webkit-animation: carousel 10s infinite cubic-bezier(0.77, 0, 0.175, 1) forwards;
animation: carousel 10s infinite cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.icon-cards__content.step-animation {
-webkit-animation: carousel 8s infinite steps(1) forwards;
animation: carousel 8s infinite steps(1) forwards;
}
.icon-cards__item {
position: absolute;
top: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0