TweenMax+Draggable实现的一个拖动换色滑块效果代码
代码语言:html
所属分类:拖放
代码描述:TweenMax+Draggable实现的一个拖动换色滑块效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html> <head> <style> body { background-color: #222; overflow: hidden; /* text-align:center; */ display: flex; align-items: center; justify-content: center; } body, html { height: 100%; width: 100%; margin: 0; padding: 0; } svg { width: 800px; height: 600px; visibility: hidden; } .sliderLabel { text-anchor: start; fill: #FFFCF9; font-family: 'Questrial', serif; font-size: 27px; letter-spacing: 0.3px; user-select: none; -moz-user-select: none; } .valueProp { text-anchor: start; fill: #FFFCF9; font-size: 44px; } .dragger { -webkit-tap-highlight-color: transparent; } </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/TweenMax.min.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/Draggable.1.20.3.js"></script> </head> <body> <svg viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet"> <defs> <rect id="panel" x="158" y="231" width="500" height="13.........完整代码请登录后点击上方下载按钮下载查看
网友评论0