gsap实现变形拼图谜题效果代码
代码语言:html
所属分类:其他
代码描述:gsap实现变形拼图谜题效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,700"> <style> body { background-color: hsl(28, 42%, 91%); text-align: center; font-size: 18px; font-family: Montserrat, sans-serif; } svg { margin: 0 auto; display: block; } path { stroke: none; opacity:0.8; } #puzzle1, #puzzle3, #puzzle5, #puzzle7, #puzzle9 { fill: hsl(16, 54%, 67%); } #puzzle2, #puzzle4, #puzzle6, #puzzle8 { fill: hsl(11, 37%, 47%); } .checkbox { text-align: center; appearance: none; height: 1rem; width: 1rem; border: 3px solid hsl(28, 42%, 81%); border-radius: 50%; cursor: pointer; background: radial-gradient( circle at center, hsl(28, 42%, 91%) 50%, transparent 50% ); background-repeat: no-repeat; background-position: center; background-size: 0.8rem 0.8rem; vertical-align: middle; } .checkbox:checked { background: radial-gradient( circle at center, hsl(16, 54%, 67%) 50%, transparent 50% ); background-repeat: no-repeat; background-position: center; background-size: 0.7rem; } label { font-size: 0.7rem; font-weight:bold; letter-spacing: 0.0625em; vertical-align: middle; } h1 { font-size: 1.4rem; letter-spacing: 0.0625em; text-transform: uppercase; margin-top:0px; } button { display: inline-block; padding: 10px 20px; background-color: hsl(16, 54%, 67%); color: #fff; border: none; text-transform: uppercase; letter-spacing: 0.0625em; border-radius: 34px; text-decoration: none; cursor: pointer; font-size: 1rem; font-weight:bold; transition: background-color 0.4s ease; } button:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0