css实现纸鸟在空中展翅飞翔动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现纸鸟在空中展翅飞翔动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background:#eef; height:100vh; overflow:hidden; display:flex; justify-content:center; align-items:center } #sky { margin-top:-60px; perspective:400px; filter:drop-shadow(0px 150px 10px rgba(0,0,0,0.2)) } @-moz-document url-prefix() { #sky { filter:none } }#sky div { transform-style:preserve-3d } #sky .bird { -webkit-animation:fly 10000ms linear infinite; animation:fly 10000ms linear infinite } #sky .bird .wind { position:absolute; left:50%; width:4px; height:200px; margin-left:-2px; border-radius:999px; overflow:hidden } #sky .bird .wind:nth-child(1) { transform:translate3d(26px,-35px,-28px) rotateY(90deg) } #sky .bird .wind:nth-child(1)::before { content:""; position:absolute; width:4px; height:300px; background:rgba(100,200,41,0.3); border-radius:999px; transform:translateY(-300px); -webkit-animation:wind 2251ms 1140ms linear infinite; animation:wind 2251ms 1140ms linear infinite } #sky .bird .wind:nth-child(2) { transform:translate3d(-169px,-123px,54px) rotateY(90deg) } #sky .bird .wind:nth-child(2)::before { content:""; position:absolute; width:4px; height:300px; background:rgba(100,200,186,0.3); border-radius:999px; transform:translateY(-300px); -webkit-animation:wind 2099ms 3202ms linear infinite; animation:wind 2099ms 3202ms linear infinite } #sky .bird .wind:nth-child(3) { transform:translate3d(-155px,-47px,74px) rotateY(90d.........完整代码请登录后点击上方下载按钮下载查看
网友评论0