{"id":1327,"date":"2023-04-16T14:01:07","date_gmt":"2023-04-16T11:01:07","guid":{"rendered":"https:\/\/notes.profidev.online\/?p=1327"},"modified":"2023-04-14T14:03:47","modified_gmt":"2023-04-14T11:03:47","slug":"loader-7","status":"publish","type":"post","link":"https:\/\/notes.profidev.online\/ru\/loader\/1327\/","title":{"rendered":"Loader"},"content":{"rendered":"<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"692\" height=\"388\" src=\"https:\/\/notes.profidev.online\/wp-content\/uploads\/2023\/04\/vokoscreenng-2023-04-14_13-00-06.gif\" alt=\"Loader\" class=\"wp-image-1328\"\/><\/figure>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">&lt;div class=&quot;pl&quot;&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__dot&quot;&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;pl__text&quot;&gt;Loading&hellip;&lt;\/div&gt;\n&lt;\/div&gt;<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">* {\n  border: 0;\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n\n:root {\n  --bg: #454954;\n  --fg: #e3e4e8;\n  --fg-t: rgba(227, 228, 232, 0.5);\n  --primary1: #255ff4;\n  --primary2: #5583f6;\n  --trans-dur: 0.3s;\n  font-size: calc(16px + (20 - 16) * (100vw - 320px) \/ (1280 - 320));\n}\n\nbody {\n  background-color: var(--bg);\n  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));\n  color: var(--fg);\n  font: 1em\/1.5 &quot;Varela Round&quot;, Helvetica, sans-serif;\n  height: 100vh;\n  min-height: 360px;\n  display: grid;\n  place-items: center;\n  transition: background-color var(--trans-dur), color var(--trans-dur);\n}\n\n.pl {\n  box-shadow: 2em 0 2em rgba(0, 0, 0, 0.2) inset, -2em 0 2em rgba(255, 255, 255, 0.1) inset;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n  transform: rotateX(30deg) rotateZ(45deg);\n  width: 15em;\n  height: 15em;\n}\n.pl, .pl__dot {\n  border-radius: 50%;\n}\n.pl__dot {\n  animation-name: shadow;\n  box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.5);\n  top: calc(50% - 0.75em);\n  left: calc(50% - 0.75em);\n  width: 1.5em;\n  height: 1.5em;\n}\n.pl__dot, .pl__dot:before, .pl__dot:after {\n  animation-duration: 2s;\n  animation-iteration-count: infinite;\n  position: absolute;\n}\n.pl__dot:before, .pl__dot:after {\n  content: &quot;&quot;;\n  display: block;\n  left: 0;\n  width: inherit;\n  transition: background-color var(--trans-dur);\n}\n.pl__dot:before {\n  animation-name: pushInOut1;\n  background-color: var(--bg);\n  border-radius: inherit;\n  box-shadow: 0.05em 0 0.1em rgba(255, 255, 255, 0.2) inset;\n  height: inherit;\n  z-index: 1;\n}\n.pl__dot:after {\n  animation-name: pushInOut2;\n  background-color: var(--primary1);\n  border-radius: 0.75em;\n  box-shadow: 0.1em 0.3em 0.2em rgba(255, 255, 255, 0.4) inset, 0 -0.4em 0.2em #2e3138 inset, 0 -1em 0.25em rgba(0, 0, 0, 0.3) inset;\n  bottom: 0;\n  clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);\n  height: 3em;\n  transform: rotate(-45deg);\n  transform-origin: 50% 2.25em;\n}\n.pl__dot:nth-child(1) {\n  transform: rotate(0deg) translateX(5em) rotate(0deg);\n  z-index: 5;\n}\n.pl__dot:nth-child(1), .pl__dot:nth-child(1):before, .pl__dot:nth-child(1):after {\n  animation-delay: 0s;\n}\n.pl__dot:nth-child(2) {\n  transform: rotate(-30deg) translateX(5em) rotate(30deg);\n  z-index: 4;\n}\n.pl__dot:nth-child(2), .pl__dot:nth-child(2):before, .pl__dot:nth-child(2):after {\n  animation-delay: -0.1666666667s;\n}\n.pl__dot:nth-child(3) {\n  transform: rotate(-60deg) translateX(5em) rotate(60deg);\n  z-index: 3;\n}\n.pl__dot:nth-child(3), .pl__dot:nth-child(3):before, .pl__dot:nth-child(3):after {\n  animation-delay: -0.3333333333s;\n}\n.pl__dot:nth-child(4) {\n  transform: rotate(-90deg) translateX(5em) rotate(90deg);\n  z-index: 2;\n}\n.pl__dot:nth-child(4), .pl__dot:nth-child(4):before, .pl__dot:nth-child(4):after {\n  animation-delay: -0.5s;\n}\n.pl__dot:nth-child(5) {\n  transform: rotate(-120deg) translateX(5em) rotate(120deg);\n  z-index: 1;\n}\n.pl__dot:nth-child(5), .pl__dot:nth-child(5):before, .pl__dot:nth-child(5):after {\n  animation-delay: -0.6666666667s;\n}\n.pl__dot:nth-child(6) {\n  transform: rotate(-150deg) translateX(5em) rotate(150deg);\n  z-index: 1;\n}\n.pl__dot:nth-child(6), .pl__dot:nth-child(6):before, .pl__dot:nth-child(6):after {\n  animation-delay: -0.8333333333s;\n}\n.pl__dot:nth-child(7) {\n  transform: rotate(-180deg) translateX(5em) rotate(180deg);\n  z-index: 2;\n}\n.pl__dot:nth-child(7), .pl__dot:nth-child(7):before, .pl__dot:nth-child(7):after {\n  animation-delay: -1s;\n}\n.pl__dot:nth-child(8) {\n  transform: rotate(-210deg) translateX(5em) rotate(210deg);\n  z-index: 3;\n}\n.pl__dot:nth-child(8), .pl__dot:nth-child(8):before, .pl__dot:nth-child(8):after {\n  animation-delay: -1.1666666667s;\n}\n.pl__dot:nth-child(9) {\n  transform: rotate(-240deg) translateX(5em) rotate(240deg);\n  z-index: 4;\n}\n.pl__dot:nth-child(9), .pl__dot:nth-child(9):before, .pl__dot:nth-child(9):after {\n  animation-delay: -1.3333333333s;\n}\n.pl__dot:nth-child(10) {\n  transform: rotate(-270deg) translateX(5em) rotate(270deg);\n  z-index: 5;\n}\n.pl__dot:nth-child(10), .pl__dot:nth-child(10):before, .pl__dot:nth-child(10):after {\n  animation-delay: -1.5s;\n}\n.pl__dot:nth-child(11) {\n  transform: rotate(-300deg) translateX(5em) rotate(300deg);\n  z-index: 6;\n}\n.pl__dot:nth-child(11), .pl__dot:nth-child(11):before, .pl__dot:nth-child(11):after {\n  animation-delay: -1.6666666667s;\n}\n.pl__dot:nth-child(12) {\n  transform: rotate(-330deg) translateX(5em) rotate(330deg);\n  z-index: 6;\n}\n.pl__dot:nth-child(12), .pl__dot:nth-child(12):before, .pl__dot:nth-child(12):after {\n  animation-delay: -1.8333333333s;\n}\n.pl__text {\n  font-size: 0.75em;\n  max-width: 5rem;\n  position: relative;\n  text-shadow: 0 0 0.1em var(--fg-t);\n  transform: rotateZ(-45deg);\n}\n\n\/* Animations *\/\n@keyframes shadow {\n  from {\n    animation-timing-function: ease-in;\n    box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3);\n  }\n  25% {\n    animation-timing-function: ease-out;\n    box-shadow: 0.1em 0.1em 0 0.1em black, 0.8em 0 0.8em rgba(0, 0, 0, 0.5);\n  }\n  50%, to {\n    box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3);\n  }\n}\n@keyframes pushInOut1 {\n  from {\n    animation-timing-function: ease-in;\n    background-color: var(--bg);\n    transform: translate(0, 0);\n  }\n  25% {\n    animation-timing-function: ease-out;\n    background-color: var(--primary2);\n    transform: translate(-71%, -71%);\n  }\n  50%, to {\n    background-color: var(--bg);\n    transform: translate(0, 0);\n  }\n}\n@keyframes pushInOut2 {\n  from {\n    animation-timing-function: ease-in;\n    background-color: var(--bg);\n    clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);\n  }\n  25% {\n    animation-timing-function: ease-out;\n    background-color: var(--primary1);\n    clip-path: polygon(0 25%, 100% 25%, 100% 100%, 0 100%);\n  }\n  50%, to {\n    background-color: var(--bg);\n    clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);\n  }\n}<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1328,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[16],"class_list":["post-1327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-loader","tag-htmlcss"],"_links":{"self":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/comments?post=1327"}],"version-history":[{"count":1,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1327\/revisions"}],"predecessor-version":[{"id":1329,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/1327\/revisions\/1329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media\/1328"}],"wp:attachment":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media?parent=1327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/categories?post=1327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/tags?post=1327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}