{"id":418,"date":"2023-03-08T13:45:13","date_gmt":"2023-03-08T10:45:13","guid":{"rendered":"https:\/\/notes.profidev.online\/?p=418"},"modified":"2023-03-29T00:07:08","modified_gmt":"2023-03-28T21:07:08","slug":"ikonki","status":"publish","type":"post","link":"https:\/\/notes.profidev.online\/ru\/elements\/418\/","title":{"rendered":"Animated icons"},"content":{"rendered":"<figure class=\"wp-block-video\"><video height=\"266\" style=\"aspect-ratio: 935 \/ 266;\" width=\"935\" controls src=\"https:\/\/notes.profidev.online\/wp-content\/uploads\/2023\/03\/vokoscreenng-2023-03-08_11-44-08.webm\"><\/video><\/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;link rel=&quot;stylesheet&quot; href=&quot;\/\/maxcdn.bootstrapcdn.com\/font-awesome\/4.3.0\/css\/font-awesome.min.css&quot;&gt;\n\n&lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;icon-box&quot;&gt;\n  &lt;span class=&quot;icon-box__inner m--left&quot;&gt;\n    &lt;i class=&quot;fa fa-twitter&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n  &lt;span class=&quot;icon-box__inner m--right&quot;&gt;\n    &lt;i class=&quot;fa fa-twitter&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n&lt;\/a&gt;\n&lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;icon-box&quot;&gt;\n  &lt;span class=&quot;icon-box__inner m--left&quot;&gt;\n    &lt;i class=&quot;fa fa-codepen&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n  &lt;span class=&quot;icon-box__inner m--right&quot;&gt;\n    &lt;i class=&quot;fa fa-codepen&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n&lt;\/a&gt;\n&lt;a class=&quot;icon-box&quot;&gt;\n  &lt;span class=&quot;icon-box__inner m--left&quot;&gt;\n    &lt;i class=&quot;fa fa-dribbble&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n  &lt;span class=&quot;icon-box__inner m--right&quot;&gt;\n    &lt;i class=&quot;fa fa-dribbble&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n&lt;\/a&gt;\n&lt;a href=&quot;#&quot; target=&quot;_blank&quot; class=&quot;icon-box&quot;&gt;\n  &lt;span class=&quot;icon-box__inner m--left&quot;&gt;\n    &lt;i class=&quot;fa fa-facebook&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n  &lt;span class=&quot;icon-box__inner m--right&quot;&gt;\n    &lt;i class=&quot;fa fa-facebook&quot;&gt;&lt;\/i&gt;\n  &lt;\/span&gt;\n&lt;\/a&gt;\n\/\/\u0410\u0432\u0442\u043e\u0440: Nikolay Talanov. @suez<\/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;}\">*, *:before, *:after {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n\nhtml, body {\n  font-size: 62.5%;\n}\n\n.icon-box {\n  position: relative;\n  display: inline-block;\n  vertical-align: top;\n  width: 10rem;\n  height: 10rem;\n  margin: 5rem;\n  background: #0c0c0c;\n  overflow: hidden;\n  font-size: 0;\n  text-decoration: none;\n  border-radius: 50%;\n}\n.icon-box:before {\n  content: &quot;&quot;;\n  position: absolute;\n  left: 16.6666666667%;\n  top: 0;\n  margin-left: -1px;\n  width: 2px;\n  height: 0.6rem;\n  background: #fff;\n  transition: transform 0.5s;\n  transform: rotate(-30deg) translate(0.6833333333rem, -1rem);\n}\n.icon-box:hover:before {\n  -webkit-animation: slice 0.5s;\n          animation: slice 0.5s;\n}\n.icon-box__inner {\n  position: relative;\n  display: inline-block;\n  vertical-align: top;\n  overflow: hidden;\n  width: 50%;\n  height: 100%;\n  transform: rotate(-30deg);\n  font-size: 6rem;\n  color: #fff;\n}\n.icon-box__inner .fa {\n  position: absolute;\n  top: 50%;\n  transform: translate(-50%, -50%) rotate(30deg);\n}\n.icon-box__inner.m--left {\n  transform-origin: 100% 50%;\n}\n.icon-box__inner.m--left .fa {\n  left: 100%;\n}\n.icon-box__inner.m--right {\n  transform-origin: 0 50%;\n  transition: transform 0.5s;\n}\n.icon-box:hover .icon-box__inner.m--right {\n  transition: transform 0.5s 0.1s;\n  transform: rotate(-30deg) translate(0.5rem, 1rem);\n}\n.icon-box__inner.m--right .fa {\n  left: 0;\n}\n\n@-webkit-keyframes slice {\n  to {\n    transform: rotate(-30deg) translate(0.6833333333rem, 16rem);\n  }\n}\n\n@keyframes slice {\n  to {\n    transform: rotate(-30deg) translate(0.6833333333rem, 16rem);\n  }\n}<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":421,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[16,33],"class_list":["post-418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elements","tag-htmlcss","tag-icons"],"_links":{"self":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/418","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=418"}],"version-history":[{"count":0,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media\/421"}],"wp:attachment":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}