css实现小球在直线间穿越动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现小球在直线间穿越动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> main { background: linear-gradient( to bottom, hsl(48 100% 50%) 0.6rem, hsla(48 100% 50% / 0) 0.6rem 4rem ); background-size: 100% 4rem; } aside { background: linear-gradient( to bottom, hsl(43 100% 50%) 0.6rem, hsla(43 100% 50% / 0) 0.6rem 4rem ); background-position: 0rem 2rem; background-size: 100% 4rem; } main, aside, div { width: 100%; height: 100vh; grid-column: 1 / 2; grid-row: 1 / 2; display: flex; position: relative; } p { margin: auto; wid.........完整代码请登录后点击上方下载按钮下载查看
网友评论0