.btn:hover {
background: #e63a23;
}
.btn {
…
transition: all 0.3s ease-in-out;
}
.chevron:hover {
transform: translate (-50%, 25px);
} .chevron {
…
transition: all 0.3s ease-in-out;
}
.img-wrapper:hover {
transform: scale(1.05);
}
.img-wrapper {
...
transition: all 0.3s ease-in-out;
}
@keyframes chevron-animation {
...
}
@keyframes chevron-animation {
from {
...
}
to {
...
}
}
@keyframes chevron-animation {
0% {
...
}
100% {
...
}
}
@keyframes chevron-animation {
0% {
...
}
50% {
...
}
100% {
...
}
}
@keyframes chevron-animation {
0%, 100% {
...
}
50% {
...
}
}
@keyframes chevron-animation {
0%,
100% {
transform: translate(-50%, 0);
}
50% {
transform: translate(-50%, 10px);
}
}
.chevron {
...
animation: chevron-animation infinite 2s ease-in-out;
}
.chevron:hover {
animation: none;
}
.chevron:hover {
animation-play-state: paused;
}
.chevron img {
transition: all 0.5s ease-in-out;
}
.chevron:hover img {
transform: translateY(25px);
}
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100">
<rect width="56" height="100" fill="#403F4C"></rect>
<path d="M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100" fill="none" stroke="#706f7d" stroke-width="2"></path>
<path d="M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34" fill="none" stroke="#595867" stroke-width="2"></path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100">
<rect width="56" height="100" fill="#403F4C"></rect>
<path d="M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100" fill="none" stroke="#706f7d" stroke-width="2"></path>
<path class=”animation” d="M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34" fill="none" stroke="#595867" stroke-width="2"></path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="100">
<style>
.animation {
animation: blinking 2s infinite;
}
@keyframes blinking {
0%, 100% {
stroke: #706f7d;
}
50% {
stroke: #82828c;
}
}
</style>
...
</svg>