3d铅笔手写效果
代码语言:html
所属分类:三维
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sketchpad</title>
<style>
#mfPreviewBar {
display: none !important;
}
html,
body {
position: fixed;
overflow: hidden;
}
body {
background-color: #f7f4f0;
cursor: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/605067/cursor.png"), auto;
font-family: 'Galano Grotesque Semi Bold';
margin: 0;
overflow: hidden;
}
button {
font-family: 'Galano Grotesque Semi Bold';
}
.colours {
bottom: 90px;
display: none;
left: 50%;
list-style-type: none;
padding-left: 0;
position: absolute;
transform: translateX(-50%);
z-index: 10;
}
@media (min-width: 1024px) {
.colours {
display: flex;
}
}
.colours li {
border-radius: 50%;
display: inline-block;
height: 14px;
margin: 0 12px;
width: 14px;
}
.colours li:nth-child(1) {
background-color: #100c08;
}
.colours li:nth-child(2) {
background-color: #759BA9;
}
.colours li:nth-child(3) {
background-color: #77dd77;
}
.colours li:nth-child(4) {
background-color: #ff6961;
}
.colours li:nth-child(5) {
background-color: #ffd1dc;
}
.pencil__border {
bottom: 0;
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
z-index: 3;
}
.pencil__border div:nth-child(1), .pencil__border div:nth-child(2) {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.pencil__border div:nth-child(1):before, .pencil__border div:nth-child(1):after, .pencil__border div:nth-child(2):before, .pencil__border div:nth-child(2):after {
background-color: #FF851B;
content: "";
opacity: .98;
position: absolute;
}
.pencil_.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0