纯css布局实现小树发芽的动画效果
代码语言:html
所属分类:布局界面
代码描述:纯css布局实现小树发芽的动画效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .plant-wrap { background-color: #b5deff; height: 300px; width: 600px; min-width: 600px; border: 7px solid #EEEEEE; display: block; position: absolute; overflow: hidden; z-index: 10; } .plant-wrap:before { height: 20px; width: 600px; background: white; z-index: 10; transform: translateY(270px) skew(-40deg, 0); } .window-frame { height: 300px; width: 300px; border: 2px solid black; transform: translateY(270px) skew(-40deg, 0); } .clouds { animation: clouds 20s infinite; animation-direction: alternate-reverse; background: white; width: 220px; height: 50px; border-radius: 50%; z-index: 9; transform: translate(350px, 30px); } .clouds:before { background: white; width: 220px; height: 50px; border-radius: 50%; transform: translate(-170px, 20px); } .sun { background: yellow; display: inline-block; position: absolute; width: 200px; height: 200px; border-radius: 50%; z-index: 8; } .sun-ray { width: 170px; height: 600px; background: orange; display: inline-block; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0