css小熊送爱心表白效果代码
代码语言:html
所属分类:表白
代码描述:css小熊送爱心表白效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { display: grid; place-items: center; height: 100vh; padding: 0; margin: 0; background-color: pink; overflow: hidden; } .main { position: absolute; top: 20%; } .head { height: 50vmin; width: 60vmin; background-color: white; border-radius: 50%; } .head:before, .head:after { content: ""; display: block; height: 20vmin; width: 25vmin; background:radial-gradient(circle at 50% 70%, rgba(251, 111, 145, 1) 50%, rgba(255, 255, 255, 1) 50%); border-radius: 50% 50% 100% 0% / 50% 100% 0% 50% ; position: relative; z-index: -1; } .head:before { top: -5vmin; left: -6vmin; transform: rotate(-45deg); } .head:after { top: -43vmin; left: 45vmin; transform: rotate(45deg); } .eye1, .eye2 { height: 10vmin; width: 10vmin; background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 242, 255, 1) 70%); border-radius: 50%; position: relative; } .eye1 { top: -5vmin; left:10vmin; } .eye2 { top: -15vmin; left: 40vmin; } .eye1:before, .eye2:before { content: ""; display: block; height: 4vmin; width: 3.5vmin; background-color: white; border-radius: 50%; position: relative; left: 2.5vmin; top: 1vmin; } .eye1:after, .eye2:after { content: ""; display: block; height: 2vmin; width: 2vmin; background-color: white; border-radius: 50%; position: relative; left: 6.5vmin; } .nose { height: 5vmin; width: 5vmin; background-color: black; border-radius: 61% 39% 0% 100% / 52% 41% 59% 48%; transform: rotate(40deg); position: relative; top: -25vmin; left: 27vmin; } .mouth { height: 5vmin; width: 5vmin; background-color: white; border-radius: 50%; border-bottom: 5px solid black; border-left: 5px solid black; position: relative; top: -25vmin; left: 29.5vmin; transform: rotate(-50deg); } .mouth:before { content: ""; display: block; height: 5vmin; width: 5vmin; background-color: white; border-radius: 50%; border-bottom: 5px solid black; border-right: 5px solid black; position: relative; top: -4vmin; left: -4vmin; transform: rotate(90deg); } .heart { height: 20vmin; width: 20vmin; background-color: red; transfo.........完整代码请登录后点击上方下载按钮下载查看
网友评论0