jquery+css实现编辑器复制粘贴删除分享按钮点击动画效果代码
代码语言:html
所属分类:其他
代码描述:jquery+css实现编辑器复制粘贴删除分享按钮点击动画效果代码
代码标签: jquery css 编辑器 复制 粘贴 删除 分享 按钮 点击 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { width: 100%; height: 100%; margin: 4%; overflow: hidden; background: #a3fcff; } .container { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 92%; height: 115px; max-width: 510px; padding: 0 24px; background: #41484b; border-radius: 10px; box-shadow: rgba(0, 0, 0, 0.25) 0 16px 36px; transform: translate3d(0, 0, 0); } .container > button { position: relative; display: block; width: 25%; height: 100%; border: none; background: transparent; cursor: pointer; z-index: 99; outline: none; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-user-select: none; -webkit-touch-callout: none; } .container > button > div { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; } .cut:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 2px; height: 2px; background: #41484b; z-index: 2; border-radius: 100%; } .cut.is-active .top { -webkit-animation: cut-top 0.8s ease-out; animation: cut-top 0.8s ease-out; } .cut.is-active .bottom { -webkit-animation: cut-bottom 0.8s ease-out; animation: cut-bottom 0.8s ease-out; } .cut .top, .cut .bottom { display: block; width: 42px; height: 6px; background: white; } .cut .top:before, .cut .bottom:before { content: ""; position: absolute; top: -5px; left: -5px; width: 8px; height: 8px; background: #41484b; border: 4px solid white; border-radius: 100%; } .cut .top:after, .cut .bottom:after { content: ""; position: absolute; top: 0; right: -4px; width: 8px; height: 6px; background: white; border-radius: 1px; } .cut .top { transform: rotate(45deg) translateZ(0); box-shadow: #41484b 0 -2px 0 1px; z-index: 1; } .cut .top:after { transform: skewX(-45deg); } .cut .bottom { transform: rotate(-45deg) translateZ(0); } .cut .bottom:after { transform: skewX(45deg); } .copy.is-active .bottom { -webkit-animation: copy 0.8s ease-out; animation: copy 0.8s ease-out; } .copy .top, .copy .bottom { background: #41484b; top: -10px; left: -12px; } .copy .top { width: 29px; height: 34px; border-top: 4px solid white; border-left: 4px solid white; border-radius: 4px 0; } .copy .bottom { width: 32px; height: 38px; border: 4px solid white; border-radius: 4px; transform: translate(9px, 10px); } .delete.is-active .top { -webkit-animation: delete 0.8s ease-out; animation: delete 0.8s ease-out; } .delete .top { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; top: -31px; width: 30px; height: 4px; background: white; z-index: 1; } .delete .top:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; top: -2px; width: 18px; height: 6px; background: white; border-radius: 8px; } .delete .bottom { top: 8px; width: 26px; height: 30px; background: white; border-radius: 0 0 6px 6px; } .share.is-active .line:nth-child(2):before { -webkit-animation: share-top 0.8s linear; animation: share-top 0.8s linear; } .share.is-active .line:nth-child(3):before { -webkit-animation: share-bottom 0.8s linear; animation: share-bottom 0.8s linear; } .share .circles { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; right: 26px; width: 12px; height: 12px; background: white; border-radius: 100%; } .share .circles:before, .share .circles:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 12px; height: 12px; background: white; border-radius: 100%; } .share .circles:before { top: -28px; left: 26px; } .share .circles:after { bottom: -28px; left: 26px; } .share .line { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 36px; height: 3px; background: transparent; overflow: hidden; } .share .line:nth-child(2) { bottom: 14px; transform: rotate(-30deg); } .share .line:nth-child(3) { top: 15px; transform: rotate(30deg); } .share .line:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0