wap-notes

1. Media Query

Introduction:

Basic Syntax:

@media (condition) {
  /* CSS rules */
}

Common Conditions:

Example:

/* Default styles */
body {
  background-color: white;
}

/* Styles for screens wider than 600px */
@media (min-width: 600px) {
  body {
    background-color: lightgray;
  }
}

Use Cases:


2. Transition

Introduction:

Basic Syntax:

selector {
  transition: property duration timing-function delay;
}

Components:

Example:

.button {
  background-color: blue;
  transition: background-color 0.3s ease-in-out;
}

.button:hover {
  background-color: green;
}

Use Cases:


3. Transform

Introduction:

Basic Syntax:

selector {
  transform: transformation-function(value);
}

Common Transformation Functions:

Example:

.box {
  transform: scale(1.2) rotate(45deg);
}

Use Cases: