Transitions create smooth changes between property values.
Example:
button {
transition: background 0.3s ease;
}
๐ง 38. Difference Between Transition and Animation Transition : Triggered by event
Simple effects
Animation : Can run automatically
Complex effects
Example:
@keyframes move {
from { left:0; }
to { left:100px; }
}
๐ง 39. What is transform Property? transform changes element shape or position.
Example:
div {
transform: rotate(45deg);
}
Common Functions: - rotate()
- scale()
- translate()
๐ง 40. What is overflow Property?
Controls content overflow behavior.
Values:
- visible
- hidden
- scroll
- auto
Example:
div {
overflow: scroll;
}
๐ง 41. Explain CSS Inheritance Some CSS properties automatically pass from parent to child.
Example:
body {
color: blue;
}
Child elements inherit text color. ๐ง 42. What is !important?
!important gives highest priority to a CSS rule.
Example:
p {
color: red !important;
}
๐ง 43. What are CSS Preprocessors? Preprocessors extend CSS functionality.
Popular Preprocessors:
- SASS
- SCSS
- LESS
Features:
โ Variables
โ Nesting
โ Functions
๐ง 44. Difference Between SCSS and SASS
SCSS : Uses braces
CSS-like syntax
SASS : No braces
Indentation syntax
SCSS Example:
$color: blue;๐ง 45. What is Bootstrap?
h1 {
color: $color;
}
Bootstrap is a popular CSS framework used for responsive web development.
Features:
โ Responsive grid system
โ Prebuilt components
โ Faster development
Example:
<button class="btn btn-primary">Double Tap โค๏ธ For Part-3
Click Me
</button>