'Instagram icon with hover effect
I have the following instagram icon and when I hover the mouse I would like the background to become white and the icon to become colored
In Footer.js :
<a href="https://www.instagram.com/">
<FaInstagram className='instagram'/>
</a>
In Footer.css:
.instagram{
font-size: 2rem ;
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
color: #fff;
margin: 10px;
border-radius: 20%;
}
.instagram:hover{
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
background-clip: text;
border-radius: 20%;
transform: scale(1.5);
color:transparent;
}
https://codesandbox.io/s/musing-framework-j5564?file=/src/App.js
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
