lume vue实现按钮模拟三维空间光照阴影效果代码
代码语言:html
所属分类:三维
代码描述:lume vue实现按钮模拟三维空间光照阴影效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/lume.global.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.2.2.min.js"></script>
<!-- Tween.js is a lib for animating numbers based on "easing curves". -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tween.min.js"></script>
<!-- pep.js provides the pointer events (pointermove, pointerdown, etc) -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/pep.js"></script>
<style>
body, html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
font-family: sans-serif;
touch-action: none;
}
lume-node {
text-align: center;
}
#bg {
background: #62b997;
}
button {
width: 100%;
height: 100%;
white-space: nowrap;
border-radius: 0px;
border: 1px solid #494455;
background: #e96699;
color: #494455;
outline: none;
}
button:focus,
button:hover {
background: #eb4b89;
color: #0a3359;
border-color: #0a3359;
}
</style>
</head>
<body touch-action="none&quo.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0