css3 - 这个效果用 CSS 可以实现吗?border-image
PHP中文网
PHP中文网 2017-04-17 11:36:37
0
7
541

不想切整张图片,只把两个小球单独切出来,因为小球有闪动的效果。用了border-radius: 50%;画出一个圆,但border-image的小球仍然已正方形来排列。

代码放在jsbin上
http://jsbin.com/redolerota/1/edit?html,...

PHP中文网
PHP中文网

认证0级讲师

reply all(7)
伊谢尔伦

demo

大家讲道理

Just use CSS to draw~
https://jsbin.com/vozetu/

刘奇

The round bottom and the small ball border are divided into two layers. For the small ball border layer, use :after to cover it. You don’t need border-image. . .

阿神

No, just practical pictures, where can you get so many things?

Ty80

border-image does not seem to support rounded corners, or you can try canvas drawing

刘奇

Draw it on canvas

迷茫

Try z-index layering

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template