{"id":15252,"date":"2019-02-02T06:46:14","date_gmt":"2019-02-02T06:46:14","guid":{"rendered":"http:\/\/webartdevelopers.com\/?p=15252"},"modified":"2020-11-17T07:41:14","modified_gmt":"2020-11-17T07:41:14","slug":"infinite-svg-triangle-fusion","status":"publish","type":"post","link":"https:\/\/webartdevelopers.com\/blog\/infinite-svg-triangle-fusion\/","title":{"rendered":"INFINITE SVG TRIANGLE FUSION"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong><u><em>Author:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul><li>Rob DiMarzo<\/li><li>December 16, 2018<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>Made with:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul><li>HTML (Pug) \/ CSS (SCSS)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>About the code:<\/em><\/u><\/strong><\/h4>\n\n\n\n<p>This is a nice and simple Background Animations in which triangles are created and Triangles are destroyed.<br>And so on and so forth. I am creating 60 SVGs that each contain 4 triangles (polygons). Each polygon loops through a color and animates outward from the center point of its parent SVG every 1 second. The entire animation repeats infinitely every 4 seconds.<br>Each\u00a0<code>div<\/code>\u00a0has a\u00a0<code>clip-path<\/code>\u00a0to create a hexagon mask. When the hexagons are snapped together, the expanding triangles bleed evenly into the triangles of the adjacent hexagons until they disappear.<br>I used CSS Grid as a starting point, but I was still left with a bunch of well-mannered hexagons with empty space in between. To &#8220;connect&#8221; the hexagons, I identified the\u00a0<code>nth-children<\/code>\u00a0that corresponds to a row and moved them up and over via\u00a0<code>transform: translate;<\/code><\/p>\n\n\n\n<p><strong><em>Compatible browsers:<\/em><\/strong> Chrome, Firefox, Opera, Safari<\/p>\n\n\n\n<p><strong><em>Dependencies:<\/em><\/strong> &#8211;<\/p>\n\n\n<a href=\"https:\/\/codepen.io\/robdimarzo\/share\/zip\/VqjvqR\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Download<\/span><\/a>\n\n\n<a href=\"https:\/\/codepen.io\/robdimarzo\/pen\/VqjvqR\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Demo and Code<\/span><\/a>\n<!-- AddThis Advanced Settings generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"Author: Rob DiMarzo December 16, 2018 Made with: HTML (Pug) \/ CSS (SCSS) About the code: This is a nice and simple Background Animations in which triangles are created and Triangles are destroyed.And so on and so forth. I am creating 60 SVGs that each contain 4 triangles (polygons). Each polygon loops through a color and animates outward from the center point of its parent SVG every 1 second. The entire animation repeats infinitely every 4 seconds.Each\u00a0div\u00a0has a\u00a0clip-path\u00a0to create a hexagon mask. When the hexagons are snapped together, the expanding triangles bleed evenly into the triangles of the adjacent hexagons until they disappear.I used CSS Grid as a starting point, but I was still left with a bunch of well-mannered <!-- AddThis Advanced Settings generic via filter on get_the_excerpt -->","protected":false},"author":1,"featured_media":15264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4346],"tags":[1077,4361,4362,20,4360,4358],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15252"}],"collection":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/comments?post=15252"}],"version-history":[{"count":3,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15252\/revisions"}],"predecessor-version":[{"id":23387,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15252\/revisions\/23387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media\/15264"}],"wp:attachment":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media?parent=15252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/categories?post=15252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/tags?post=15252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}