Professional Documents
Culture Documents
Self Check Module 4 Creative Web Design
Self Check Module 4 Creative Web Design
1. What is the purpose of CSS transitions, and how do they differ from animations?
CSS transitions are best suited for simple state changes, providing a smooth
transition between two states. Animations, on the other hand, are more powerful
and allow for complex, multi-step animations with greater control over timing
and keyframes.
3. How can you control the timing and easing of a CSS transition or animation?
In CSS transitions, you can control the timing using the transition property. The
transition property takes three values:
1. Property: Specifies the CSS property to which the transition should apply.
2. Duration: Specifies the time it takes for the transition to complete.
3. Timing Function: Specifies the acceleration curve of the transition.
7. What is the BEM methodology, and how does it contribute to better CSS
organization?
BEM, which stands for Block, Element, Modifier, is a naming convention and
methodology for writing maintainable and scalable CSS. It was developed by the
team at Yandex, a Russian search engine, to address the challenges of writing CSS
for large and complex web applications. BEM helps create a more organized and
modular structure for your stylesheets, making it easier to understand, maintain,
and scale your codebase.
8. Describe the benefits of using CSS Grid and Flexbox for layout over traditional
methods.
CSS Grid and Flexbox are two powerful layout tools introduced in CSS that offer
significant advantages over traditional layout methods. They provide more control,
flexibility, and simplicity in creating complex layouts. Here are the benefits of using
CSS Grid and Flexbox:
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
box-sizing: border-box;
.container {
display: grid;
grid-gap: 20px;
padding: 20px;
.item {
background-color: #3498db;
color: #fff;
padding: 20px;
text-align: center;
border-radius: 8px;
</style>
</head>
<body>
<div class="container">
<div class="item">Item 1</div>
</div>
</body>
</html>