+ 2

How to make hover buttons in html and css??

I know how to make simple buttons but now I want to know how to add some hover animations in buttons...

1st May 2019, 11:46 AM
<html>SAMEER POSWAL</html>
<html>SAMEER POSWAL</html> - avatar
5 Réponses
+ 8
Hello sameer poswal If you want to add some hover effect on the button. You have to use :hover selector (Process) First style your button with CSS Example Button { name: value; } Then Use again the Button and this time add :hover Example Button:hover{ Name: value; } The value you put in the second one will show hover effect Hope this will help you
1st May 2019, 1:37 PM
Ujjawal Raj
Ujjawal Raj - avatar
+ 22
The :hover selector is used to select the element when you put your mouse over it. So first normally add CSS to your button. (assuming id of my button is button) #button { ......................... ........................ ....................... } and then add your hover animation to your button so when you put your mouse over the button you can see the desired output. #button:hover { ....................... ....................... }
1st May 2019, 12:01 PM
Nova
Nova - avatar
+ 11
1st May 2019, 12:20 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
Thanks to all of you for helping me to make hover buttons especially ujjawal i liked his suggestion the most but no grudges for remaining persons but personally I liked ujjawal's most..
2nd May 2019, 7:19 AM
<html>SAMEER POSWAL</html>
<html>SAMEER POSWAL</html> - avatar
+ 1
Also just added a small sample code for you. https://code.sololearn.com/W35j8X401pjN/?ref=app
1st May 2019, 1:30 PM
Dragonxiv
Dragonxiv - avatar