纯css实现收件箱新邮件收到数量提醒动画效果
代码语言:html
所属分类:悬停
代码描述:纯css实现收件箱新邮件收到数量提醒动画效果
代码标签: 收件箱 新邮件 ( 新 邮件 ) 收到 数量 提醒 动画 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> html, body { height: 100%; font-family: Arial, sans-serif; } html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { display: flex; background: #2c3e50; justify-content: center; align-items: center; } .mail { position: relative; width: 250px; height: 150px; border-radius: 0px 0px 20px 20px; } .mail:after { content: ''; position: absolute; right: 0; border-top: 75px solid transparent; border-left: 124px solid #2980b9; border-bottom: 75px solid #2980b9; border-right: 127px solid #2471A3; border-radius: 0px 0px 20px 20px; } .mail:before { content: ''; position: absolute; top: -150px; left: 0; border-top: 75px solid transparent; border-left: 124px solid transparent; border-bottom: 75px solid #07618B; border-right: 127px solid transparent; } .letter { position: absolute; background: #fff; left: 15px; top: -75px; width: 222px; height: 150px; border-radius: 15px 15px 0px 0px; } .letter:before { content: ''; position: absolute; top: 9px; left: 16px; width: 68px; height: 40px; background: linear-gradient( to bottom, #FFF, #FFF 50%, #B3B3B3 50%, #B3B3B3 ); background-size: 100% 18px; } .letter:after { content: ''; position: absolute; top: 60px; left: 0; width: 222px; height: 150px; border: 16px solid #E0E0E0; border-top-width: 12px; background-color: #E0E0E0; background: linear-gradient( to bottom, #E0E0E0, #E0E0E0 50%, #B3B3B3 50%, #B3B3B3 ); background-size: 100.........完整代码请登录后点击上方下载按钮下载查看
网友评论0