<!DOCTYPE html>
<html>
<head>
<style>
.button {
display: inline-block;
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 span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '«';
position: absolute;
opacity: 0;
top: 0;
left: -20px;
transition: 0.5s;
}
.button:hover span {
padding-left: 25px;
}
.button:hover span:after {
opacity: 1;
left: 0;
}
.button a {text-decoration:none !important;color:#fff;}
</style>
</head>
<body>
<h2>Animated Button</h2>
<button class="button" style="vertical-align:middle"><span><a href="*">Hover</a> </span></button>
</body>
</html>
Hocam bu kodu ekledim altına kodun ama sadece alt çizgi gitti. Link yine mavi kaldı.
.button a {text-decoration:none !important;color:#fff;}
Daha önce bu kodla halletmiştim buna benzer bir butonu. Ama buda çalışmıyor.
.button a{
color:#FFFFFF;
}