纯CSS 3D立方体轮播

代码语言:html

所属分类:幻灯片

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>纯CSS 交互式3D立方体轮播</title>
<style>
   .photo-cube__control{z-index:2}.photo-cube__control:nth-of-type(1):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(1){opacity:1}.photo-cube__control:nth-of-type(2):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(2){opacity:1}.photo-cube__control:nth-of-type(3):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(3){opacity:1}.photo-cube__control:nth-of-type(4):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(4){opacity:1}.photo-cube__control:nth-of-type(5):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(5){opacity:1}.photo-cube__control:nth-of-type(6):checked~.photo-cube__indicators .photo-cube__indicator:nth-of-type(6){opacity:1}.photo-cube__control:nth-of-type(1):checked~.photo-cube{transform:rotateX(0deg) rotateY(0deg)}.photo-cube__control:nth-of-type(6):checked~.photo-cube{transform:rotateX(90deg) rotateY(0deg)}.photo-cube__control:nth-of-type(3):checked~.photo-cube{transform:rotateX(180deg) rotateY(0deg)}.photo-cube__control:nth-of-type(5):checked~.photo-cube{transform:rotateX(270deg) rotateY(0deg)}.photo-cube__control:nth-of-type(4):c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0