css布局实现一个面包机烤面包动画效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现一个面包机烤面包动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { background: #f5f5f5; height: 100vh; display: flex; align-items: center; flex-direction: column; justify-content: center; } .oven { width: 40vw; display: flex; align-items: center; flex-direction: column; justify-content: center; position: relative; overflow: hidden; } .back { width: 89%; background: #65c7bf; height: 6vw; border-top-right-radius: 2.5vw; border-top-left-radius: 2.5vw; } .top_holder { width: 100%; height: 10vw; perspective: 60vw; margin-top: -5vw; overflow: hidden; } .top { width: 100%; background: #5cada6; height: 20vw; transform: rotateX(50deg); } .front { width: 100%; background: #65c7bf; height: 35vw; border-radius: 1vw; margin-top: -1vw; z-index: 4; overflow: hidden; flex-direction: column; justify-content: space-between; align-items: center; position: relative; display: flex; padding: 2vw; } .front .knob_row { width: 93%; height: 4vw; display: flex; justify-content: space-between; align-items: center; } .front .knob_row .three_knob_holder { display: flex; justify-content: space-between; align-items: center; } .front .knob_row .timer { width: 6vw; height: 68%; border: 0.1vw solid #8e8d8d; background: #a5a5a5b8; border-radius: 0.3vw; text-align: center; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0