Last active
June 4, 2018 08:05
-
-
Save AndreaBarghigiani/b67775c6dbd9c2f77b727bcf35ed7cc7 to your computer and use it in GitHub Desktop.
Ecco tutti i blocchi di codice presentati nella terza lezione del corso "Landing page animate con i CSS" https://skillsandmore.org/corso/landing-page-animate-con-i-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
@keyframes change-background{ | |
from{ | |
background-color: #fff; | |
} | |
to{ | |
background-color: #000; | |
} | |
} |
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
.box{ | |
animation: change-background 3s; | |
animation: change-background 3s ease-in; | |
animation: change-background 3s forwards; | |
animation: change-background 5s ease-in-out 2s backwards; | |
animation: 3s linear 5s backwards infinite alternate change-background; | |
background-color: #FBC02D; | |
border-radius: 10px; | |
} |
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
@keyframes change-background{ | |
0%{ | |
background-color: #FF0400; | |
} | |
50%{ | |
background-color: #4CAF50; | |
} | |
100%{ | |
background-color: #1600EE; | |
} | |
} |
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
.box{ | |
... | |
animation-name: change-background; | |
} |
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
.box{ | |
... | |
animation-duration: 600ms; | |
} |
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
.box{ | |
... | |
animation-timing-function: ease-in-out; | |
} |
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
.box{ | |
... | |
animation-delay: 450ms; | |
} |
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
.box{ | |
... | |
animation-iteration-count: 0.5; | |
} |
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
.box{ | |
... | |
animation-direction: reverse; | |
} |
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
.box{ | |
animation: | |
animation-name | |
animation-duration | |
animation-timing-function | |
animation-delay | |
animation-iteration-count | |
animation-direction | |
animation-fill-mode | |
animation-play-state | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment