gsap实现拖动滑竿改变重力模拟弹跳动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现拖动滑竿改变重力模拟弹跳动画效果代码,结合了InertiaPlugin+Draggable3+DrawSVGPlugin3插件。
代码标签: gsap 拖动 滑竿 改变 重力 模拟 弹跳 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap" rel="stylesheet">
<style>
:root {
--ui-blue: #99dff4;
--current-ui: #ffb300;
--background: #0e0e0e;
--range-gradient: 50%;
--weight: 400;
}
body {
font-family: "Orbitron", sans-serif;
font-weight: 400 900;
background: var(--background);
color: var(--current-ui);
display: grid;
place-content: center;
height: 100vh;
}
.wrapper {
position: relative;
width: 1080px;
height: 600px;
display: grid;
place-content: center;
}
.range-key {
position: absolute;
left: 0;
top: 0;
}
.right-border {
position: absolute;
right: 0;
top: 0;
}
.dial-wrapper {
position: relative;
width: 466px;
height: 466px;
z-index: 3;
display: grid;
place-content: center;
}
.dial-ui {
position: absolute;
top: 0;
left: 0;
}
.dial-numbers {
pointer-events: none;
position: relative;
text-align: center;
line-height: 1;
}
.number {
font-size: 100px;
}
.units {
color: var(--ui-blue);
font-weight: 400;
display: block;
font-size: 25px;
letter-spac.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0