How to show random color on hover in CSS?

前端 未结 5 1584
清歌不尽
清歌不尽 2021-01-17 16:00

I have this CSS code that only displays one color (blue) when there\'s a mouse hover.

.MenuBox {
    transition: all 1.0s ease;
    -moz-border-radius:30px;
         


        
5条回答
  •  一个人的身影
    2021-01-17 16:53

    i think you can achieve this using jquery or Javascript since you dont have these kinds of features with CSS

    you can dynamically assign class names using jquery on each hover activity and append various colors to that class

    Regards Arjun

提交回复
热议问题