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

后端 未结 7 2046
谎友^
谎友^ 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:47

    I prefer to generate such glows with a bit of stacking. The first image uses the following CSS filter rule:

    blur(5px) grayscale(1) sepia(1) saturate(10000%) invert(1)
    

    This gives you a somewhat larger than the base 'bottle' glow in blue.

    Then load a second copy of the image at the same coordinates, giving you the bottle with a transparent background atop the blurred blue 'halo' with a similar transparent background.

    0 讨论(0)
提交回复
热议问题