css实现彩色原子围绕图片360旋转效果代码
代码语言:html
所属分类:动画
代码描述:css实现彩色原子围绕图片360旋转效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
body {
background: #333;
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
perspective: 1200px;
}
.box {
position: relative;
transform-style: preserve-3d;
animation: hovering 1s infinite alternate-reverse ease-in-out;
}
.logo {
display: block;
margin-top: 50px;
margin-left: 50px;
width: 300px;
height: 300px;
position: relative;
}
.logo:after {
position: absolute;
top: 0;
left: 0;
content: "";
background: url("//repo.bfw.wiki/bfwrepo/icon/60b2c443baaca.png") no-repeat 50% 50%;
background-size: contain;
width: 300px;
height: 300px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0