What do you know about...
Animation vs. transition
Animations are typically used for more complex and interactive effects, while transitions are typically used for simpler and more subtle effects. However, both animations and transitions can be used in a variety of ways to enhance the user experience on a website.
What do you know about...
Animation-fill-mode
The animation-fill-mode property is used to specify how an element should be styled before and after an animation is applied. Here is an example code for an animation-fill-mode:
/* Apply an animation with a fill mode */ div { animation-name: example; animation-duration: 2s; animation-fill-mode: forwards; } /* Define the keyframe animation */ @keyframes example { from {transform: scale(1);} to {transform: scale(2);} }
What do you know about...
Scale
The scale property is used to increase or decrease the size of an element. Here is an example code for a scale:
/* Increase the size of an element */ div { transform: scale(2); }
What do you know about...
Animation-delay
The animation-delay property is used to specify the length of time before an animation begins. Here is an example code for an animation-delay:
/* Apply an animation with a delay */ div { animation-name: example; animation-delay: 2s; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
What do you know about...
Transition-property
The transition-property property is used to specify which CSS properties should be transitioned. Here is an example code for a transition-property:
/* Apply a transition to the background color and font size */ button { transition-property: background-color, font-size; }
What do you know about...
Transition-delay
The transition-delay property is used to specify the length of time before a transition begins. Here is an example code for a transition-delay:
/* Apply a transition with a delay of 1 second */ button { transition: background-color 0.5s ease 1s; }
What do you know about...
Perspective
The perspective property is used to create a 3D effect on an element by defining the distance between the element and the user. Here is an example code for a perspective:
/* Create a 3D effect */ div { transform: perspective(100px) rotateY(45deg); }
What do you know about...
Transitions
CSS transitions are used to create smooth and gradual changes to an element's style. They can be used to add subtle visual effects to a website, such as changing the color of a button on hover. Here is an example code for a transition:
/* Apply a transition to an element */ button { transition: background-color 0.5s ease; } /* Change the background color on hover */ button:hover { background-color: #4CAF50; }
What do you know about...
Translate
The translate property is used to move an element in the x and/or y direction. Here is an example code for a translate:
/* Move an element to the right */ div { transform: translateX(50px); }
What do you know about...
Animation-name
The animation-name property is used to specify the name of the keyframe animation that should be applied to an element. Here is an example code for an animation-name:
/* Apply an animation */ div { animation-name: example; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
What do you know about...
Animation-iteration-count
The animation-iteration-count property is used to specify how many times an animation should repeat. Here is an example code for an animation-iteration-count:
/* Apply an animation that repeats */ div { animation-name: example; animation-duration: 2s; animation-iteration-count: infinite; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
What do you know about...
Animation-timing-function
The animation-timing-function property is used to specify the speed of an animation. Here is an example code for an animation-timing-function:
/* Apply an animation with a different timing function */ div { animation-name: example; animation-duration: 2s; animation-timing-function: ease-in-out; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
What do you know about...
Transition transform
The transition property can also be used to transition transforms. Here is an example code for a transition of transforms:
/* Apply a transition to a transform */ button { transition: transform 0.5s ease; } button:hover { transform: scale(1.2); }
What do you know about...
Transition shorthand
The transition shorthand property is used to apply all transition properties at once. Here is an example code for a transition shorthand:
/* Apply all transition properties */ button { transition: all 0.5s ease; }
What do you know about...
Animation-play-state
The animation-play-state property is used to pause or resume an animation. Here is an example code for an animation-play-state:
/* Apply an animation that can be paused */ div { animation-name: example; animation-duration: 2s; animation-play-state: paused; } /* Define the keyframe animation */ @keyframes example { from {transform: scale(1);} to {transform: scale(2);} }
What do you know about...
Skew
The skew property is used to slant an element along the x and/or y axis. Here is an example code for a skew:
/* Skew an element along the x-axis */ div { transform: skewX(30deg); }
What do you know about...
Transition event triggers
Transitions can be triggered by different events, such as hover or focus. Here is an example code for a transition triggered by hover:
/* Apply a transition on hover */ button { transition: background-color 0.5s ease; } button:hover { background-color: #4CAF50; }
What do you know about...
Animation-duration
The animation-duration property is used to specify the length of time it takes for an animation to complete. Here is an example code for an animation-duration:
/* Apply an animation */ div { animation-name: example; animation-duration: 2s; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
What do you know about...
Transform
The transform property is used to modify an element's appearance using 2D or 3D transformations, such as rotation, scaling, and skewing. Here is an example code for a transform:
/* Rotate an element */ div { transform: rotate(45deg); }
What do you know about...
Animations
CSS animations are used to create dynamic and engaging web designs. Animations can be used to draw attention to specific elements, provide feedback to users, and make a website more visually interesting. Here is an example code for an animation:
/* Keyframe animation */ @keyframes example { from {transform: rotate(0deg);} to {transform: rotate(360deg);} } /* Apply the animation to an element */ div { animation-name: example; animation-duration: 2s; animation-iteration-count: infinite; }
What do you know about...
Animation-direction
The animation-direction property is used to specify whether an animation should play forward or backward. Here is an example code for an animation-direction:
/* Apply an animation that plays in reverse */ div { animation-name: example; animation-duration: 2s; animation-direction: reverse; } /* Define the keyframe animation */ @keyframes example { from {background-color: red;} to {background-color: yellow;} }
Web Development Courses
-
Build professional projects for your portfolio
-
Master CSS, HTML and JavaScript
-
Learn to use popular frontend frameworks and libraries such as Vue.js, React.js, Bootstrap and Tailwind CSS
Web Development Quizzes
-
Flexible study option that you can access anytime
-
Helps you identify areas that need improvement.
-
Topics such as HTML, CSS, JavaScript, responsive design, accessibility, and more
Frontend Developer Challenges
-
Suitable for frontend web developers of all levels
-
Encourages you to think outside the box
-
A great way to practice and apply your knowledge in a real-world context
Free Website Templates
-
Saves you time and effort by providing ready-to-use templates
-
Strong foundation for building your own custom websites
-
Perfect for learners who want to experiment with different designs and layouts
Frontend HTML Snippets
-
Saves you time and effort by providing ready-to-use code
-
Wide range of components, such as navbar, carousel, modal, and more
-
Library of HTML code snippets to streamline your frontend web development workflow
Frontend Tech Terminology
-
Suitable for learners of all levels
-
Comprehensive glossary of frontend web development terms
-
Covers key concepts and terminology related to HTML, CSS, JavaScript, responsive design, accessibility, and more
Bootstrap Utility API Guide
-
A comprehensive guide to Bootstrap's utility API
-
Provides practical examples and code snippets
-
A valuable resource for building responsive and accessible websites with Bootstrap