Advanced CSS - animations and modern CSS
Go beyond the exam: animations, CSS variables, modern layouts
A mini-course for the curious: transitions and animations, 2D transforms, @keyframes, CSS variables, calc/clamp functions, advanced CSS Grid and visual effects. The material goes beyond the scope of the INF.03 exam - for those who want to write truly modern CSS.
Course modules
M1 Transitions and animations 4 lessons
-
CSS transitions (transition)
How to create smooth transitions between an element's states. The transition-property, duration, timing-function and delay properties. Hover effects without JS.
-
2D transforms (transform)
translate, scale, rotate, skew - moving, scaling and rotating elements in the plane. transform-origin and combining transforms.
-
@keyframes and the animation property
Creating multi-step animations: the @keyframes definition, the animation-name, duration, iteration-count, direction, fill-mode properties.
-
Animation performance and prefers-reduced-motion
Why animate transform and opacity (GPU compositing). prefers-reduced-motion - accessibility. will-change - when to use it with care.
M2 Modern CSS 4 lessons
-
CSS variables (custom properties)
Custom properties: --name: value, var() with a fallback. Inheritance through the DOM, overriding in selectors, day/night themes. CSS without a preprocessor.
-
CSS functions: calc(), min(), max(), clamp()
Math in CSS without JavaScript: calc() for mixed units, min/max for adaptive values, clamp(min, ideal, max) - perfect for responsive typography.
-
Advanced CSS Grid
grid-template-areas with names, auto-fit and auto-fill, minmax() - responsive grids without media queries. repeat() with auto-fit as a modern alternative to manual breakpoints.
-
Container Queries - a new standard
@container and container-type: inline-size. The difference from media queries: reacting to the container's size, not the window's. Truly reusable components.
M3 Effects and details 4 lessons
-
Gradients: linear-gradient and radial-gradient
Creating color gradients: linear-gradient (direction, color stops), radial-gradient, a mention of conic-gradient. Uses: hero sections, buttons, gradient borders.
-
Filters, backdrop-filter and mix-blend-mode
filter: blur, brightness, contrast, grayscale, sepia - effects on elements. backdrop-filter: blurring the background behind an element. mix-blend-mode: blending layers.
-
Advanced pseudo-elements and decorations
::before and ::after with content and positioning - ornaments, quotes, icons. ::selection - styling selected text. Typographic decorations.
-
What next? Sass, Tailwind and CSS frameworks
A course summary and further growth paths: SCSS/Sass - a CSS preprocessor. Tailwind CSS - utility-first. CSS-in-JS. Where to keep learning.