Transformations using CSS are a feature that came with the arrival of the CSS3 standard. Using them allows you to move, rotate, and distort elements. Both in 2D and 3D. This is a whole new facet for working with elements on pages, visuals wise.
Transformations are a basis for creating animations of all types, from small interface animations, to complex multi-stage animations.
As you take the course, you'll learn about the following topics:
Many of the lessons in this course will include a practice section with web view. It's a good idea to do more than just complete the task. Once you've completed the task successfully, try experimenting with the code and the features you've learned.
Practice segments in this course are built around screenshot testing. Unlike other courses, this one doesn't check against the values you specify, but rather takes a screenshot of the page with your styles and compares it to the screenshots from the teacher's solution. You can easily see how the page should look at different viewport resolutions.
You can see screenshots of the styles from the teacher's solution in the directory __tests_/_image_snapshots__.
Practise tasks are checked by comparing screenshots. Each exercise contains a reference solution, which is where the screenshot comes from. After you click the “Check” button, the tests will automatically take a screenshot of your solution and overlay it on the reference image. If the images differ by more than 7%, the tests give an error. There are two kinds of errors:
Expected the image to be the same size as the snapshot (1280x863), but it was different. The system tells you that the image sizes do not match. Most likely, there's a problem with the indentation/height or line spacing.
Expected image to match or be a close match to snapshot but was different from snapshot. The screenshots are the same size, but there are inconsistencies between the images. The permissible threshold is 7%.
If you have one of these errors, a screenshot will automatically be generated inside the system and can be found in
/__tests__/__image_snapshots__/__diff_output__/. You can navigate to this directory using the left panel inside the exercise.
The screenshot consists of three parts:
Look at the spot highlighted in red. It's smaller in the left image than in the right one. Therefore, when the images were superimposed, there were some clear differences. This difference affects the position of the other elements. So always move from the top to the bottom of the image. It's possible that fixing one error will fix all the others.
Another opportunity to apply the skills learned in the course is to use the CodePen service. You can create your own pen, where you can experiment with properties.
Additionally, there'll be examples that are loaded from CodePen in each lesson of the course. They're available for review, and you can make edits in real time and monitor the result. Don't miss out on this opportunity.
Don't forget to practice all the time, that way your content skills will allow you to quickly and skillfully design all the content on a page or app.
The Hexlet support team or other students will answer you.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.
Programming courses for beginners and experienced developers. Start training for free
Our graduates work in companies:
From a novice to a developer. Get a job or your money back!
Sign up or sign in
Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.