jquery实现rgb三原色拖动改变值生成新的颜色效果代码
代码语言:html
所属分类:拖放
代码描述:jquery实现rgb三原色拖动改变值生成新的颜色效果代码,点击拖动rgb三色的值进行调整会生成新的rgb颜色。
代码标签: jquery rgb 三原色 拖动 改变 值 生成 新 颜色
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap"); html, body { height: 100%; cursor: default; } body { background-color: black; color: white; font-family: "Poppins", sans-serif; font-size: 10px; line-height: 12px; } #container { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; } #picker { display: flex; justify-content: center; align-items: center; width: 100px; height: 100px; position: relative; } #picker p { position: absolute; margin: 0; transition: opacity 0.2s ease-in-out; } #picker p#color { bottom: 0px; } #picker p#title { top: 0px; } #picker #copy { background: transparent; position: absolute; width: 25px; height: 25px; border-radius: 50%; } .circle { position: absolute; width: 40px; height: 40px; ba.........完整代码请登录后点击上方下载按钮下载查看
网友评论0