Draggable+TweenMax实现转动旋钮控制滚动条滚动效果代码
代码语言:html
所属分类:拖放
代码描述:Draggable+TweenMax实现转动旋钮控制滚动条滚动效果代码,两者相互感应,拖动滚动条也能旋钮转动。
代码标签: Draggable TweenMa 转动 旋钮 控制 滚动条 滚动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ background-color: #26292f; } #knobBG, #knob { position:absolute; background-image: url('//repo.bfw.wiki/bfwrepo/icon/6603c77146ffc.png'); width:355px; height:355px; } #description { font-size:20px; } #knob { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWMAAAFjCAYAAADowmrhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTN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yDGAGIMgBgDiDEAYgwgxgCIMYAYAyDGAGIsxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiDIAYA4gxAGIMIMYAiDGAGAMgxgBiLMYAYgyAGAOIMQBiDCDGAIgxgBgDIMYAYgyAGAOIMQBiDCDGAIgxgBgDIMYAYgyAGAOIMQBiDCDGAIgxgBgDIMYAYgyAGAOIMQBiDCDGAIgxgBgDIMYAYgyAGAOIMQBiDCDGAIgxgBgDIMYAYgyAGAOIMQC341cBBgC3OLiy5NmkcwAAAABJRU5ErkJggg=='); z-index: 1; } .box { font-size:30px; padding: 10px; } #content .box { margin-left:425px; height: 335px; } #content{ height:355px; overflow: hidden; } .box1{ background-color: #88b6f7; } .box2{ background-color: #9a9bff; } .box3{ background-color: #bbfb94; } .box4{ background-color: #ed74c4; } .box5{ background-color: #eb984e; } .box6{ background-color: #a9eaf1; } .box7{ background-color: #dcecf1; } .box8{ background-color: pink; } .box9{ background-color: purple; } </style> </head> <body translate="n.........完整代码请登录后点击上方下载按钮下载查看
网友评论0