{"id":418509,"date":"2024-06-30T02:13:56","date_gmt":"2024-06-30T02:13:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=418509"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-30T02:13:56","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=418509","title":{"rendered":"<span>CSS \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0441 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/76b\/f42\/2f8\/76bf422f87af62595fe209b4081a321b.gif\" width=\"2420\" height=\"992\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/76b\/f42\/2f8\/76bf422f87af62595fe209b4081a321b.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0443\u043f\u0435\u0440-\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 CSS, \u043c\u043e\u0451 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044f \u0448\u0440\u0438\u0444\u0442\u0430 \u0438 \u0434\u0430\u043c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439 CSS. <\/p>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0432\u0430\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u0435\u0436\u0438\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/variable-fonts\" rel=\"noopener noreferrer nofollow\">\u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b<\/a>, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/?search=%40supports\" rel=\"noopener noreferrer nofollow\"><u>@supports<\/u><\/a> (<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@supports\" rel=\"noopener noreferrer nofollow\"><u>\u201cfeature queries\u201d<\/u><\/a>) \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d media queries \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/flexbox-gap\" rel=\"noopener noreferrer nofollow\"><u>gap<\/u><\/a><u>,<\/u> <a href=\"https:\/\/caniuse.com\/?search=row-gap\" rel=\"noopener noreferrer nofollow\"><u>row-gap<\/u><\/a>, \u0438 <u>\u00a0<\/u><a href=\"https:\/\/caniuse.com\/?search=column-gap\" rel=\"noopener noreferrer nofollow\"><u>column-gap<\/u><\/a> \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Grid \u0438 Flexbox.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/css-content-visibility\" rel=\"noopener noreferrer nofollow\"><u>content-visibility<\/u><\/a> \u0438\u043b\u0438 \u00ab\u043b\u0435\u043d\u0438\u0432\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u00bb \u0434\u043b\u044f HTML-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/:is\" rel=\"noopener noreferrer nofollow\"><u>\u00a0:is \u0438 :where<\/u> <\/a>\u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u044b \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435?<\/p>\n<p><a href=\"https:\/\/torquemag.io\/2021\/03\/new-css-features\/\" rel=\"noopener noreferrer nofollow\"><u>Latest CSS features (2021 edition)\u00a0<\/u><\/a><\/p>\n<p><a href=\"https:\/\/dev.to\/shubhracodes\/new-css-features-you-might-not-know-about-3em\" rel=\"noopener noreferrer nofollow\"><u>CSS Features that you might not know about <\/u><\/a><\/p>\n<p><strong>\u0412\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b<\/strong><\/p>\n<p>\u042d\u0442\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 <a href=\"https:\/\/docs.microsoft.com\/en-us\/typography\/opentype\/spec\/\" rel=\"noopener noreferrer nofollow\">OpenType<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B0%D1%80%D0%BD%D0%B8%D1%82%D1%83%D1%80%D0%B0_(%D1%82%D0%B8%D0%BF%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D0%BA%D0%B0)\" rel=\"noopener noreferrer nofollow\">\u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u044b<\/a> (font-family) \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044f (\u0448\u0438\u0440\u0438\u043d\u044b, \u0432\u0435\u0441\u0430 \u0438\u043b\u0438 \u043a\u0443\u0440\u0441\u0438\u0432\u0430). <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b\u0435, \u0447\u0435\u0440\u0435\u0437  <code>@font-face<\/code> <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@font-face\" rel=\"noopener noreferrer nofollow\"> CSS \u0441\u0441\u044b\u043b\u043a\u0443<\/a>:<\/p>\n<pre><code class=\"css\">@font-face { font-family: \"IBM Plex Sans Roman\"; src: url(\"https:\/\/s3-us-west-2.amazonaws.com\/s.cdpn.io\/85648\/IBMPlexSansVar-Roman.ttf\"); }<\/code><\/pre>\n<p>\u041e\u0434\u0438\u043d \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b, \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0439, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c: <code>font-weight: 234<\/code> .<\/p>\n<p><strong>\u041e\u0441\u0438 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong><\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 5 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0435\u0439, \u0441 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0431\u0443\u043a\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p>\u0412\u0435\u0441 (<strong>wght<\/strong>)\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0440\u0438\u043d\u0430 (<strong>wdth<\/strong>) <\/p>\n<\/li>\n<li>\n<p>\u041a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c (<strong>ital<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u0423\u0433\u043e\u043b \u043d\u0430\u043a\u043b\u043e\u043d\u0430 (<strong>slnt<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 (<strong>opsz<\/strong>)<\/p>\n<p>\u0438 <a href=\"https:\/\/rwt.io\/typography-tips\/variable-fonts-and-quirky-custom-axes\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043e\u0441\u0438<\/a>, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c88\/b6a\/a11\/c88b6aa115239f5dc65dc110b9497cf4.gif\" width=\"1014\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c88\/b6a\/a11\/c88b6aa115239f5dc65dc110b9497cf4.gif\"\/><figcaption><\/figcaption><\/figure>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043d\u0435 \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 5 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0435\u0439, \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430 \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/em><\/p>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043e\u0441\u044f\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/font-variation-settings\" rel=\"noopener noreferrer nofollow\"><u>font-variation-settings<\/u><\/a>, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>font-weight<\/code> \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0442\u0430\u0440\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432:<\/p>\n<pre><code class=\"css\">h1 { \u00a0font-weight: 100; \u00a0font-size: 10vw; \u00a0font-variation-settings: \"wght\" 100, \"wdth\" 85; }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\/\u0438\u043b\u0438 \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u044d\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Fonts\/Variable_Fonts_Guide\" rel=\"noopener noreferrer nofollow\"><u>MDN variable fonts guide<\/u><\/a><\/p>\n<p><a href=\"https:\/\/web.dev\/variable-fonts\/\" rel=\"noopener noreferrer nofollow\"><u>Variable fonts anatomy<\/u>\u00a0<\/a><\/p>\n<p><a href=\"https:\/\/dev.to\/luisaugusto\/it-s-time-to-start-using-variable-fonts-4e3p\" rel=\"noopener noreferrer nofollow\"><u>Why you should use variable fonts<\/u><\/a><\/p>\n<p><strong>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0441 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c<\/strong><\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61a9f3d2122cc8f6386968b3\" data-style=\"\" id=\"61a9f3d2122cc8f6386968b3\" width=\"\"><\/div>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a <code>font-variation-settings<\/code> \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0441 \u0448\u0430\u0433\u043e\u043c 100, \u043a\u0430\u043a \u0432 <code>font-weight<\/code>, \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043b\u0430\u0432\u043d\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"css\">h1 {   font-weight: 100;   font-size: 10vw;   font-variation-settings: \"wght\" 100, \"wdth\" 85; }  h1 span {   animation: wave 4000ms infinite both; }<\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044f \u043e\u0431\u0435\u0440\u043d\u0443\u043b\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u0432 <code>h1<\/code> \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <code>span<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u044d\u0444\u0444\u0435\u043a\u0442 \u0432\u043e\u043b\u043d\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e <code>: nth-child ()<\/code>. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<pre><code class=\"css\">h1 span:nth-child(1) {   animation-delay: var(--var-base-delay); }  h1 span:nth-child(2) {   animation-delay: calc(var(--var-base-delay) + 200ms); }  h1 span:nth-child(3) {   animation-delay: calc(var(--var-base-delay) + 400ms); }  h1 span:nth-child(4) {   animation-delay: calc(var(--var-base-delay) + 600ms); } \/* etc. till the last letter *\/<\/code><\/pre>\n<pre><code class=\"css\">\/* variable font wave animation *\/  @keyframes wave {   0% {     font-variation-settings: \"wght\" 100, \"wdth\" 80;   }   40% {     font-variation-settings: \"wght\" 200, \"wdth\" 85;   }   60% {     font-variation-settings: \"wght\" 500, \"wdth\" 95;   }   80% {     font-variation-settings: \"wght\" 700, \"wdth\" 90;   }   100% {     font-variation-settings: \"wght\" 789, \"wdth\" 100;   } }<\/code><\/pre>\n<p><strong>\u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0441\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438<\/strong><\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0441\u0432\u0435\u0442\u043b\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c, \u043a\u0430\u043a <a href=\"https:\/\/www.fontshop.com\/designers\/david-berlow\" rel=\"noopener noreferrer nofollow\">\u0414\u044d\u0432\u0438\u0434 \u0411\u0435\u0440\u043b\u043e\u0443<\/a>, \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 emoji):<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61a9f7f9cd09f7f6552eb465\" data-style=\"\" id=\"61a9f7f9cd09f7f6552eb465\" width=\"\"><\/div>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0436\u0435\u0447\u044c \u0432 \u0432\u0430\u0441 \u0438\u0441\u043a\u0440\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0430\u0448\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432. <\/p>\n<p>\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b:<\/p>\n<p><a href=\"https:\/\/fonts.google.com\/variablefonts\" rel=\"noopener noreferrer nofollow\"><u>Existing Google Variable Font\u00a0<\/u><\/a><\/p>\n<p><a href=\"https:\/\/play.typedetail.com\/\" rel=\"noopener noreferrer nofollow\"><u>Font Playground<\/u><\/a><\/p>\n<p><a href=\"https:\/\/v-fonts.com\/\" rel=\"noopener noreferrer nofollow\"><u>Variable Fonts<\/u><\/a><\/p>\n<p><a href=\"https:\/\/www.axis-praxis.org\/\" rel=\"noopener noreferrer nofollow\"><u>Axis Praxis<\/u><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/593725\/\"> https:\/\/habr.com\/ru\/articles\/593725\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0443\u043f\u0435\u0440-\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 CSS, \u043c\u043e\u0451 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044f \u0448\u0440\u0438\u0444\u0442\u0430 \u0438 \u0434\u0430\u043c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0431\u0437\u043e\u0440 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439 CSS. <\/p>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0432\u0430\u043c \u0437\u043d\u0430\u043a\u043e\u043c\u044b, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u0435\u0436\u0438\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/variable-fonts\" rel=\"noopener noreferrer nofollow\">\u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b<\/a>, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/?search=%40supports\" rel=\"noopener noreferrer nofollow\"><u>@supports<\/u><\/a> (<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@supports\" rel=\"noopener noreferrer nofollow\"><u>\u201cfeature queries\u201d<\/u><\/a>) \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d media queries \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/flexbox-gap\" rel=\"noopener noreferrer nofollow\"><u>gap<\/u><\/a><u>,<\/u> <a href=\"https:\/\/caniuse.com\/?search=row-gap\" rel=\"noopener noreferrer nofollow\"><u>row-gap<\/u><\/a>, \u0438 <u>\u00a0<\/u><a href=\"https:\/\/caniuse.com\/?search=column-gap\" rel=\"noopener noreferrer nofollow\"><u>column-gap<\/u><\/a> \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0430\u043a\u0435\u0442\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Grid \u0438 Flexbox.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/caniuse.com\/css-content-visibility\" rel=\"noopener noreferrer nofollow\"><u>content-visibility<\/u><\/a> \u0438\u043b\u0438 \u00ab\u043b\u0435\u043d\u0438\u0432\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u00bb \u0434\u043b\u044f HTML-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/:is\" rel=\"noopener noreferrer nofollow\"><u>\u00a0:is \u0438 :where<\/u> <\/a>\u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u044b \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435?<\/p>\n<p><a href=\"https:\/\/torquemag.io\/2021\/03\/new-css-features\/\" rel=\"noopener noreferrer nofollow\"><u>Latest CSS features (2021 edition)\u00a0<\/u><\/a><\/p>\n<p><a href=\"https:\/\/dev.to\/shubhracodes\/new-css-features-you-might-not-know-about-3em\" rel=\"noopener noreferrer nofollow\"><u>CSS Features that you might not know about <\/u><\/a><\/p>\n<p><strong>\u0412\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b<\/strong><\/p>\n<p>\u042d\u0442\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 <a href=\"https:\/\/docs.microsoft.com\/en-us\/typography\/opentype\/spec\/\" rel=\"noopener noreferrer nofollow\">OpenType<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%93%D0%B0%D1%80%D0%BD%D0%B8%D1%82%D1%83%D1%80%D0%B0_(%D1%82%D0%B8%D0%BF%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D0%BA%D0%B0)\" rel=\"noopener noreferrer nofollow\">\u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u044b<\/a> (font-family) \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u044f (\u0448\u0438\u0440\u0438\u043d\u044b, \u0432\u0435\u0441\u0430 \u0438\u043b\u0438 \u043a\u0443\u0440\u0441\u0438\u0432\u0430). <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u043c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b\u0435, \u0447\u0435\u0440\u0435\u0437  <code>@font-face<\/code> <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@font-face\" rel=\"noopener noreferrer nofollow\"> CSS \u0441\u0441\u044b\u043b\u043a\u0443<\/a>:<\/p>\n<pre><code class=\"css\">@font-face { font-family: \"IBM Plex Sans Roman\"; src: url(\"https:\/\/s3-us-west-2.amazonaws.com\/s.cdpn.io\/85648\/IBMPlexSansVar-Roman.ttf\"); }<\/code><\/pre>\n<p>\u041e\u0434\u0438\u043d \u0448\u0440\u0438\u0444\u0442-\u0444\u0430\u0439\u043b, \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0439, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c: <code>font-weight: 234<\/code> .<\/p>\n<p><strong>\u041e\u0441\u0438 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong><\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 5 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0435\u0439, \u0441 \u0447\u0435\u0442\u044b\u0440\u0435\u0445 \u0431\u0443\u043a\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p>\u0412\u0435\u0441 (<strong>wght<\/strong>)\u00a0<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0440\u0438\u043d\u0430 (<strong>wdth<\/strong>) <\/p>\n<\/li>\n<li>\n<p>\u041a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c (<strong>ital<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u0423\u0433\u043e\u043b \u043d\u0430\u043a\u043b\u043e\u043d\u0430 (<strong>slnt<\/strong>)<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 (<strong>opsz<\/strong>)<\/p>\n<p>\u0438 <a href=\"https:\/\/rwt.io\/typography-tips\/variable-fonts-and-quirky-custom-axes\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043e\u0441\u0438<\/a>, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u043d\u0435 \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 5 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0435\u0439, \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430 \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/em><\/p>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043e\u0441\u044f\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/font-variation-settings\" rel=\"noopener noreferrer nofollow\"><u>font-variation-settings<\/u><\/a>, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>font-weight<\/code> \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0442\u0430\u0440\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432:<\/p>\n<pre><code class=\"css\">h1 { \u00a0font-weight: 100; \u00a0font-size: 10vw; \u00a0font-variation-settings: \"wght\" 100, \"wdth\" 85; }<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\/\u0438\u043b\u0438 \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u044d\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Fonts\/Variable_Fonts_Guide\" rel=\"noopener noreferrer nofollow\"><u>MDN variable fonts guide<\/u><\/a><\/p>\n<p><a href=\"https:\/\/web.dev\/variable-fonts\/\" rel=\"noopener noreferrer nofollow\"><u>Variable fonts anatomy<\/u>\u00a0<\/a><\/p>\n<p><a href=\"https:\/\/dev.to\/luisaugusto\/it-s-time-to-start-using-variable-fonts-4e3p\" rel=\"noopener noreferrer nofollow\"><u>Why you should use variable fonts<\/u><\/a><\/p>\n<p><strong>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0441 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c<\/strong><\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61a9f3d2122cc8f6386968b3\" data-style=\"\" id=\"61a9f3d2122cc8f6386968b3\" width=\"\"><\/div>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a <code>font-variation-settings<\/code> \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0441 \u0448\u0430\u0433\u043e\u043c 100, \u043a\u0430\u043a \u0432 <code>font-weight<\/code>, \u043d\u0430\u0447\u0435\u0440\u0442\u0430\u043d\u0438\u0435 \u0448\u0440\u0438\u0444\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043b\u0430\u0432\u043d\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"css\">h1 {   font-weight: 100;   font-size: 10vw;   font-variation-settings: \"wght\" 100, \"wdth\" 85; }  h1 span {   animation: wave 4000ms infinite both; }<\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044f \u043e\u0431\u0435\u0440\u043d\u0443\u043b\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u0432 <code>h1<\/code> \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <code>span<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u044d\u0444\u0444\u0435\u043a\u0442 \u0432\u043e\u043b\u043d\u044b \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e <code>: nth-child ()<\/code>. \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<pre><code class=\"css\">h1 span:nth-child(1) {   animation-delay: var(--var-base-delay); }  h1 span:nth-child(2) {   animation-delay: calc(var(--var-base-delay) + 200ms); }  h1 span:nth-child(3) {   animation-delay: calc(var(--var-base-delay) + 400ms); }  h1 span:nth-child(4) {   animation-delay: calc(var(--var-base-delay) + 600ms); } \/* etc. till the last letter *\/<\/code><\/pre>\n<pre><code class=\"css\">\/* variable font wave animation *\/  @keyframes wave {   0% {     font-variation-settings: \"wght\" 100, \"wdth\" 80;   }   40% {     font-variation-settings: \"wght\" 200, \"wdth\" 85;   }   60% {     font-variation-settings: \"wght\" 500, \"wdth\" 95;   }   80% {     font-variation-settings: \"wght\" 700, \"wdth\" 90;   }   100% {     font-variation-settings: \"wght\" 789, \"wdth\" 100;   } }<\/code><\/pre>\n<p><strong>\u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0441\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438<\/strong><\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0441\u0432\u0435\u0442\u043b\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c, \u043a\u0430\u043a <a href=\"https:\/\/www.fontshop.com\/designers\/david-berlow\" rel=\"noopener noreferrer nofollow\">\u0414\u044d\u0432\u0438\u0434 \u0411\u0435\u0440\u043b\u043e\u0443<\/a>, \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 emoji):<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61a9f7f9cd09f7f6552eb465\" data-style=\"\" id=\"61a9f7f9cd09f7f6552eb465\" width=\"\"><\/div>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0436\u0435\u0447\u044c \u0432 \u0432\u0430\u0441 \u0438\u0441\u043a\u0440\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434\u0430 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0430\u0448\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0430\u0440\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432. <\/p>\n<p>\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b:<\/p>\n<p><a href=\"https:\/\/fonts.google.com\/variablefonts\" rel=\"noopener noreferrer nofollow\"><u>Existing Google Variable Font\u00a0<\/u><\/a><\/p>\n<p><a href=\"https:\/\/play.typedetail.com\/\" rel=\"noopener noreferrer nofollow\"><u>Font Playground<\/u><\/a><\/p>\n<p><a href=\"https:\/\/v-fonts.com\/\" rel=\"noopener noreferrer nofollow\"><u>Variable Fonts<\/u><\/a><\/p>\n<p><a href=\"https:\/\/www.axis-praxis.org\/\" rel=\"noopener noreferrer nofollow\"><u>Axis Praxis<\/u><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/593725\/\"> https:\/\/habr.com\/ru\/articles\/593725\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-418509","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/418509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=418509"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/418509\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=418509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=418509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=418509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}