Created
April 30, 2024 08:15
-
-
Save geekelo/a31da59665ee5f6d38e84a8b8b6979b9 to your computer and use it in GitHub Desktop.
btn-img-logo-transition-anmation in css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ALL BUTTONS HOVER STYLES AND TRANSITIONS */ | |
.workBtns, | |
.formBtn { | |
transition-property: background-color, color; | |
transition-duration: 0.4s; | |
transition-delay: 0.1s, 0.2s; | |
} | |
.workBtns:hover, | |
.formBtn:hover { | |
background-color: #6070ff; | |
color: #fff; | |
} | |
a.workBtns:hover { | |
color: #fff; | |
} | |
/* ANIMATIONS AND TRANSITIONS */ | |
img { | |
transition: transform 5s; | |
} | |
img:hover { | |
transform: scale(1.03); | |
} | |
.formFields::placeholder { | |
transition: transform 0.3s; | |
} | |
.formFields:hover::placeholder { | |
transform: translate(2px); | |
} | |
.logoRotate { | |
animation-duration: 3s; | |
animation-name: rotate; | |
animation-iteration-count: 1; | |
animation-direction: alternate; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment