+ 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...
6 Answers
+ 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
+ 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 {
.......................
.......................
}
+ 11
Check this:
https://code.sololearn.com/WuZ42KNm9V96/?ref=app
#I hope it helps.
+ 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..
+ 1
Also just added a small sample code for you.
https://code.sololearn.com/W35j8X401pjN/?ref=app