Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make the shiny glow effect around an icon/image? (Pics provided inside)

Before mouse over:

enter image description hereenter image description here

after mouse over:

enter image description hereenter image description here

Seems like the glow effect will change its shape according to the image shape. Is this a NSShadow? How to implement this in code? Any clues or examples? Thanks a lot.

like image 312
Li Fumin Avatar asked Feb 25 '23 07:02

Li Fumin


1 Answers

I could with iOS but I think the same applies:

  • set zero offset for the shadow
  • blur it enough
  • give right size
  • and choose white as color.
like image 154
Nick Weaver Avatar answered Feb 26 '23 21:02

Nick Weaver