css实现台球滚动动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现台球滚动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> .ball { display: inline-block; width: 100%; height: 100%; margin: 0; border-radius: 50%; position: relative; -webkit-transform-style: preserve-3d; } .ball:before { content: ""; position: absolute; border-radius: 50%; width: 100%; height: 100%; top: 0; left: 0; -webkit-filter: blur(0); opacity: 1; background: radial-gradient(circle at 50% 80%, #3D3D3D, #000000); } .ball:after { content: ""; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; border-radius: 50%; box-shadow: -40px 10px 70px 10px rgba(0, 0, 0, 0.5) inset; z-index: 2; } .ball .number { position: absolute; width: 100%; height: 100%; z-index: 1; border-rad.........完整代码请登录后点击上方下载按钮下载查看
网友评论0