Hello, we are trying animate our button like the one on this link: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_buttons_animate1
Here is the code we are trying to use. What are we doing wrong?
`#button {
border-radius: 4px;
background-color: #f4511e;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
#button .x-btn:span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
#button .x-btn:span:after {
content: ‘\00bb’;
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
#button .x-btn:hover span {
padding-right: 25px;
}
#button .x-btn:hover span:after {
opacity: 1;
right: 0;
}`
We are using Pro on www.ripplesofgrace.com