css实现小球粘性融合分离动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现小球粘性融合分离动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style> * { padding: 0; margin: 0; } body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #000; } .effect { position: relative; width: 320px; height: 320px; /* 对比度 */ filter: contrast(10); background: #fff; border-radius: 50%; } .blackball, .redball { position: absolute; top: 50%; left: 50%; padding: 10px; border-radius: 50%; filter: blur(5px); transform: translate(-50%, -50%); } .blackball { width: 100px; height: 100px; background: #000; margin: 0 auto; } .redball { width: 60p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0