css实现大风车旋转景色动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现大风车旋转景色动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> .mill, .near, .landscape, body { display: flex; flex-flow: row wrap; } .mill { justify-content: flex-end; } .near, body { justify-content: center; } .mill, body { align-items: center; } .mill-shell { display: flex; justify-content: center; align-items: center; } .star:nth-of-type(1) { left: calc( 50 * 1px); animation-duration: 1 1s; } .star:nth-of-type(2) { left: calc( 50 * 2px); animation-duration: 1 2s; } .star:nth-of-type(3) { left: calc( 50 * 3px); animation-duration: 1 3s; } .star:nth-of-type(4) { left: calc( 50 * 4px); animation-duration: 1 4s; } .star:nth-of-type(5) { left: calc( 50 * 5px); animation-duration: 1 5s; } .star:nth-of-type(6) { left: calc( 50 * 6px); animation-duration: 1 6s; } .star:nth-of-type(7) { left: calc( 50 * 7px); animation-duration: 1 7s; } .star:nth-of-type(8) { left: calc( 50 * 8px); animation-duration: 1 8s; } .star:nth-of-type(9) { left: calc( 50 * 9px); animation-duration: 1 9s; } .star:nth-of-type(10) { left: calc( 50 * 10px); animation-duration: 1 10s; } body { background: #2a3e4b; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0