css实现一个磁盘旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现一个磁盘旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html, body {
width: 100%;
height: 100%;
min-height: 100%;
margin: 0;
}
.container {
background-color: #3C3C3C;
display: flex;
justify-content: center;
align-items: center;
justify-item: center;
height: 100%;
}
.mixtape-container {
background: black;
width: 350px;
height: 175px;
transform: rotate(-3deg);
border-radius: 10px;
padding: 15px;
position: relative;
border: 1px solid #101010;
box-shadow: 0 10px 38px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.22);
border-bottom: 4px solid #111;
}
.mixtape-container:hover {
transform: rotate(0deg);
}
.mixtape-inner {
background: #101010;
display: flex;
width: 100%;
height: 65%;
border-radius: 30px/5px;
justify-content: center;
align-items: flex-end;
}
.mixtape-inner-middle {
background: black;
height: 60px;
width: 60%;
margin-bottom: 20px;
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0