纯css实现多边形组成的狐狸变螃蟹动物变形动画效果代码
代码语言:html
所属分类:动画
代码描述:纯css实现多边形组成的狐狸变螃蟹动物变形动画效果代码
代码标签: css 多边形 狐狸 变 螃蟹 动物 变形 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100vw; height: 100vh; background-color: #bbe3e3; } .wrapper { position: relative; width: 50vw; height: 50vw; max-width: 100vh; max-height: 100vh; } .pl { width: 100%; height: 100%; position: absolute; } .pl:hover { opacity: 0.5; } .castShadow { height: 40px; width: 320px; background-color: black; filter: blur(10px); border-radius: 50%; opacity: 0.45; animation: animateShadow 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(1) { animation: transform1 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(2) { animation: transform2 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(3) { animation: transform3 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(4) { animation: transform4 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(5) { animation: transform5 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(6) { animation: transform6 3s infinite alternate cubic-bezier(0.93, 0, 0.27, 1); } .wrapper .pl:nth-child(7) { animation: transform7 3s infinite alternate cubic-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0