单个div+css布局实现机械手臂效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css布局实现机械手臂效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> #collect { width: 100px; aspect-ratio: 2; border-radius: 0 50px 50px 0; box-shadow: -100px 0 0 20px #2f4459; background: #2f4459; margin: auto auto auto 0; position: relative; } #collect:before { content:""; position: absolute; inset: 0 -120px 0 calc(100% - 50px); border-radius: 50px; background: radial-gradient(#2f4459 15%,#fff 16% 34%,#2f4459 35% 70%,#0000 72%) 0 0 /50px 50px no-repeat #748da3; transform-origin: 25px 50%; rotate: -30deg; } #collect:after { content:""; position: absolute; left: 154px; top: -59px; asp.........完整代码请登录后点击上方下载按钮下载查看
网友评论0