爱心表白html页面
代码语言:html
所属分类:表白
代码描述:爱心表白html页面,修改姓名向爱的人表白吧
代码标签: 页面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> *{ margin: 0; padding:0; } html,body{ width:100%; height:100%; /*text-align: center;*/ background-color: #ffc5b3; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); -webkit-transform:translate(-50%,-50%); -ms-transform:translate(-50%,-50%); -moz-transform:translate(-50%,-50%); -o-transform:translate(-50%,-50%); background-image: radial-gradient(#ffeded, #ffc7c7); } .textCon{ -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; width:700px; height:60px; margin:50px auto; } .text{ font-size:48px; } .heart{ width:80px; height:80px; background-color:#cc2a5d; margin:200px auto; position: relative; transform: rotate(45deg); animation: heart 1s ease-in infinite; } .heart::before, .heart::after{ content:''; width:100%; height:100%; background-color:#cc2a5d; border-radius: 50%; } .heart::before{ position: absolute; top:0; left:0; transform: translateX(-50%); } .heart::after{ position: absolute; top:0; left:0; transform: translateY(-50%); } @keyframes heart{ 0%{ transform: scale(0.8) rotate(45deg); opacity: 0.8; } 50%{ transform: scale(1) rotate(45deg); opacity: 1; } 100%{ transform: scale(0.8) rotate(45deg); opacity: 0.8; } } .textCon .item{ position: absolute; opacity: 0; background-color:#cc2a5d; transform: rotate(45deg); animation: hearts 3s ease-in infinite; } .textCon .item::before, .textCon .item::after{ content:''; width:100%; height:100%; background-color:#cc2a5d; position: absolute; top:0; left:0; border-radius: 50%; } .textCon .item::before{ transform: translateX(-50%); } .textCon .item::after{ transform: translateY(-50%); } @keyframes hearts{ 0%{ opacity: 0; transform: translateY(0%) rotate(45deg); } 20%{ opacity: 0.8; transform: translateY(-20%) rotate(45deg); } 100%{ opacity: 0; transform: translateY(-1000%) rotate(45deg); } } .days-label { font-size: 30px; } .seconds { margin-top: 10px; font-size: 32px; font-family: "Monda_bo", Georgia, sans-serif; width: auto; text-align: center; } .seconds-label { margin-top: 32px; font-size: 32px; font-family: "Monda_no", Georgia, sans-serif; width: auto; text-align: center; } .container { position: absolute; } .days { font-size: 40px; width: auto; text-align: center; } .words { font-size: 50px; font-family: 'Regular', cursive; width: auto; text-align: center; } </style> </head> <body> <div class="textCon"> <div class="words">我的honey,</div> <div class="words">今天是认识你的第</div> <div class="days"> <span class="days-number">123</span> <span class="days-label">天</span> </div> <div class="seconds">15 hours 24 minutes 30 seconds</div> </div> <div class="heart"></div> <script > var arr = "2019-05-29 18:06:00".split(/[- :]/);//改这里 var box = do.........完整代码请登录后点击上方下载按钮下载查看
网友评论0