CSS fade out horizontal rule / line styled div effect without images

后端 未结 5 876
故里飘歌
故里飘歌 2020-12-14 04:07

I\'m a big fan of minimal use of images and was wondering if anyone had a tactic (or if it\'s possible) to create this kind of thing with pure static CSS?

http://ww

5条回答
  •  失恋的感觉
    2020-12-14 04:36

    You can use CSS3's stops and the :after pseudo-element to achieve such an effect. The trick is to add a border to the


    element by using the :after pseudo-element and position it in the center of the initial gradient with a soft color that ends with the gradient.

    Here is a quick demo, and another demo using some color.

提交回复
热议问题