css大风车动画效果代码
代码语言:html
所属分类:动画
代码描述:css大风车动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style> * { margin: 0 auto; padding: 0; } html, body { height: 100%; display: flex; justify-content: center; align-items: center; background: rgb(21, 95, 95); } main { width: 800px; height: 500px; /* border:1px solid white; */ position: relative; overflow: hidden; transition: 1s; } .caodi { width: 500px; height: 400px; background: yellowgreen; border-top-right-radius: 70%; position: absolute; bottom: -220px; } .caodi::after { content: ""; width: 500px; height: 400px; background: greenyellow; border-top-left-radius: 70%; position: absolute; right: -350px; top: 40px; } #ganzi { width: 5px; height: 0; border-top: 0px solid transparent; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 200px solid white; z-index: 777; position: absolute; } .gz-ls { width: 5px; height: 0; border-top: 0px solid transparent; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 250px solid rgb(78, 77, 77); position: absolute; top: 66px; left: 123px; transform-origin: 50% 100%; transform: rotate(-140deg); opacity: 0.3; transition: 1s; } .gz-rs { width: 0px; height: 0; border-top: 0px solid transparent; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 250px solid rgb(78, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0