How to give outer glow to an object in a transparent png using CSS3?

后端 未结 7 2043
谎友^
谎友^ 2021-02-02 06:03

I\'m working on a project where I need to make modifications in more then 500 images to give outerglow on hover effect. I will need to modify each image to give

7条回答
  •  不知归路
    2021-02-02 06:40

    Actually you can do this with the blur CSS3 filter. Just stack 2 images on top of each other and apply the following style to one of it:

    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    

    To change color of the other image, you can play with other filters like the hue-rotate, sephia etc.

提交回复
热议问题