js实现一个增减计数器效果代码
代码语言:html
所属分类:表单美化
代码描述:js实现一个增减计数器效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; outline: none; } .container { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f1f1f1; } .box { position: relative; width: 130px; height: 130px; border-radius: 27px; background-color: #00a8e8; box-shadow: inset 0px 20px 40px 5px rgba(255, 255, 255, 0.5); filter: blur(.25px); cursor: pointer; transition: transform 0.5s ease-in-out; } .box:hover { transform: scale(1.025); } .minus-box { background-color: #ef233c; } .count { display: flex; justify-content: center; align-items: center; height: 100%; font-size: 52px; color: #ffffff; text-align: center; font-family: "Open Sans", sans-serif; font-weight: 800; box-shadow: unset 0px 10px 5px 0px rgba(41, 41, 41, 0.2);.........完整代码请登录后点击上方下载按钮下载查看
网友评论0