Transition only for the border on hover, but not for background

后端 未结 2 684
感动是毒
感动是毒 2021-02-07 12:29

Here I have some CSS:

    #image-edges-beneath:hover{
    background-color: blue;
    }

    #image-edges:hover{
      background-color: blue;
          


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-02-07 12:38

    You can do border effect in a lots of way. Apply the below css to the class which you gonna apply border effect and change the border style on any event occurs.

     -webkit-transition:  border 3s ease;
     -moz-transition:  border 3s ease;
     -o-transition:  border 3s ease;
     -ms-transition: border 3s ease;
     transition: border 3s ease; 
    

    Also refer these links for advance border effects

    https://codepen.io/giana/pen/yYBpVY

    http://cssdeck.com/labs/10-crazy-effects-with-css3-border-transitions

提交回复
热议问题