how to set shadow for round image(css)

前端 未结 10 2049
暖寄归人
暖寄归人 2020-12-31 11:52

I\'m new to shadow in css can we set shadows for round image(i mean to a circle image).

if it is possible, please give me a code for this in css. thanks in advan

10条回答
  •  爱一瞬间的悲伤
    2020-12-31 12:17

    This thing worked for me. I wanted a rounded shadow around the image 32x32.

    
       
    
    

    CSS is like this.

            img.media-imgs
            {
                -webkit-border-radius: 20px;
            }
    
            img.media-imgs:hover
            {
                    -webkit-animation-name: greenPulse;
                    -webkit-animation-duration: 2s;
                    -webkit-animation-iteration-count: 1;
                    -webkit-box-shadow: 0 0 18px #91bd09;
            }
    

提交回复
热议问题