- index.html
- style.css
HTML
1
2
<!DOCTYPE html>
lang="en"
CSS
1
2
@keyframes rotate {
to {
GoalsCompleted 0 out of 2
- Create an animation
ding
containing the following keyframes:33%
with atranslateX(-15px)
transformation;66%
with atranslateX(15px)
transformation. - Then assign this animation to the bell
.bell
with a duration of1s
.