css布局热气腾腾的咖啡杯效果代码
代码语言:html
所属分类:动画
代码描述:使用css代码来布局一杯热气腾腾的咖啡效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { margin: auto; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } body { background: crimson; } .cup { top: 130px; } .top { width: 100px; height: 150px; top: -400px; } .one { width: 150px; height: 20px; background-color: deeppink; border: 7px solid #5E3F32; border-radius: 10px; top: 150px; left: -33px; } .two { width: 200px; height: 23px; background-color: deeppink; border: 7px solid #5E3F32; border-radius: 10px; top: 200px; left: -60px; z-index: 1; } .main { width: 150px; height: 200px; background-color: #A38C6B; border: 7px solid #5E3F32; border-radius: 10px; top: 40px; transform: perspective(500px) rotateX(-20deg); } .bottom { width: 160px; height: 30px; background-color: blanchedalmond; top: 240px; transform: perspective(500px) rotateX(-20deg); border: 7px solid #5E3F32; border-radius: 10px; overflow:none; } .sticker { width:150px; height:50px; left: -5px; background-color: #feca57; top:-100px; border: 5px solid #5E3F32 ; overflow:hidden; } .smoke { position: relative; display: flex; justify-content: center; z-index: 1; } span { position: relative; display: block; backgrou.........完整代码请登录后点击上方下载按钮下载查看
网友评论0