{"id":830,"date":"2025-02-04T16:52:43","date_gmt":"2025-02-04T14:52:43","guid":{"rendered":"https:\/?p=830"},"modified":"2026-02-02T19:56:20","modified_gmt":"2026-02-02T17:56:20","slug":"floating-color-gradient","status":"publish","type":"post","link":"https:\/\/webliumhub.com\/en\/effects\/floating-color-gradient","title":{"rendered":"Animation for text \u2014 floating color gradient"},"content":{"rendered":"<p>Add <strong>effectiveness <\/strong>our headings in Weblium using a simple CSS snippet.<br>This code allows you to create bright, dynamic text with a smooth gradient color change. It is perfect for headlines and important accents on a web page, attracting the attention of users.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-palette-color-4-background-color has-background has-large-font-size is-layout-flow wp-block-column-is-layout-flow\" style=\"border-radius:15px;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--70)\">\n<h2 class=\"wp-block-heading gradtitle has-palette-color-8-color has-text-color has-link-color wp-elements-0dd5fea6829cfe21aaae1160376487bf\" id=\"the-beautiful-gradient-text\" style=\"font-size:clamp(50.171px, 3.136rem + ((1vw - 3.2px) * 3.893), 100px);letter-spacing:-2px;line-height:0.9\"><strong>the beautiful gradient text<\/strong><\/h2>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\" id=\"\u044f\u043a-\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438\">How to install:<\/h2>\n\n\n\n<p>Copy the code and upload it to the HEAD of the site.<br>Add class <strong>.wl-flowtext<\/strong> to your elements<br>Enjoy!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"css\" class=\"language-css\">&lt;!-- \u0410\u043d\u0456\u043c\u0430\u0446\u0456\u044f \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0443 &mdash; floating color gradient\nhttps:\/effects\/floating-color-gradient --&gt;\n\n&lt;style&gt;\n:root {\n  --clr-1: #00c2ff;\n  --clr-2: #33ff8c;\n  --clr-3: #ffc640;\n  --clr-4: #e54cff;\n  --blur: 2rem;\n}\n.aurora {position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 2;mix-blend-mode: darken;pointer-events: none;overflow: hidden}\n.aurora__item {position: absolute;width: 60vw;height: 60vw;background: var(--clr-1);border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%;filter: blur(var(--blur));mix-blend-mode: overlay}\n.aurora__item:nth-of-type(1) {top: -50%;animation: aurora-border 6s ease-in-out infinite,aurora-1 12s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(2) {background: var(--clr-3);right: 0;top: 0;animation: aurora-border 6s ease-in-out infinite,aurora-2 12s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(3) {background: var(--clr-2);left: 0;bottom: 0;animation: aurora-border 6s ease-in-out infinite,aurora-3 8s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(4) {background: var(--clr-4);right: 0;bottom: -50%;animation: aurora-border 6s ease-in-out infinite,aurora-4 24s ease-in-out infinite alternate}\n@keyframes aurora-1 {0% {top: 0;right: 0}50% {top: 100%;right: 75%}75% {top: 100%;right: 25%}100% {top: 0;right: 0}}\n@keyframes aurora-2 {0% {top: -50%;left: 0%}60% {top: 100%;left: 75%}85% {top: 100%;left: 25%}100% {top: -50%;left: 0%}}\n@keyframes aurora-3 {0% {bottom: 0;left: 0}40% {bottom: 100%;left: 75%}65% {bottom: 40%;left: 50%}100% {bottom: 0;left: 0}}\n@keyframes aurora-4 {0% {bottom: -50%;right: 0}50% {bottom: 0;right: 40%}90% {bottom: 50%;right: 25%}100% {bottom: -50%;right: 0}}\n@keyframes aurora-border {0% {border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%}25% {border-radius: 47% 29% 39% 49% \/ 61% 19% 66% 26%}50% {border-radius: 57% 23% 47% 72% \/ 63% 17% 66% 33%}75% {border-radius: 28% 49% 29% 100% \/ 93% 20% 64% 25%}100% {border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%}}\n&lt;\/style&gt;\n\n&lt;script&gt;\ndocument.querySelectorAll(&#039;.wl-flowtext .w-text-content&#039;).forEach(title =&gt; {\n  title.style.position = &#039;relative&#039;;\n  let aurora = document.createElement(&#039;div&#039;);\n  aurora.className = &#039;aurora&#039;;\n  aurora.innerHTML = &#039;&lt;div class=&quot;aurora__item&quot;&gt;&lt;\/div&gt;&#039;.repeat(4);\n  title.appendChild(aurora);\n});\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<style>\n\n:root {\n  --clr-1: #00c2ff;\n  --clr-2: #33ff8c;\n  --clr-3: #ffc640;\n  --clr-4: #e54cff;\n  --blur: 2rem;\n}\n\n.aurora {position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 2;mix-blend-mode: darken;pointer-events: none;overflow: hidden}\n.aurora__item {position: absolute;width: 60vw;height: 60vw;background: var(--clr-1);border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%;filter: blur(var(--blur));mix-blend-mode: overlay}\n.aurora__item:nth-of-type(1) {top: -50%;animation: aurora-border 6s ease-in-out infinite,aurora-1 12s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(2) {background: var(--clr-3);right: 0;top: 0;animation: aurora-border 6s ease-in-out infinite,aurora-2 12s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(3) {background: var(--clr-2);left: 0;bottom: 0;animation: aurora-border 6s ease-in-out infinite,aurora-3 8s ease-in-out infinite alternate}\n.aurora__item:nth-of-type(4) {background: var(--clr-4);right: 0;bottom: -50%;animation: aurora-border 6s ease-in-out infinite,aurora-4 24s ease-in-out infinite alternate}\n@keyframes aurora-1 {0% {top: 0;right: 0}50% {top: 100%;right: 75%}75% {top: 100%;right: 25%}100% {top: 0;right: 0}}\n@keyframes aurora-2 {0% {top: -50%;left: 0%}60% {top: 100%;left: 75%}85% {top: 100%;left: 25%}100% {top: -50%;left: 0%}}\n@keyframes aurora-3 {0% {bottom: 0;left: 0}40% {bottom: 100%;left: 75%}65% {bottom: 40%;left: 50%}100% {bottom: 0;left: 0}}\n@keyframes aurora-4 {0% {bottom: -50%;right: 0}50% {bottom: 0;right: 40%}90% {bottom: 50%;right: 25%}100% {bottom: -50%;right: 0}}\n@keyframes aurora-border {0% {border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%}25% {border-radius: 47% 29% 39% 49% \/ 61% 19% 66% 26%}50% {border-radius: 57% 23% 47% 72% \/ 63% 17% 66% 33%}75% {border-radius: 28% 49% 29% 100% \/ 93% 20% 64% 25%}100% {border-radius: 37% 29% 27% 27% \/ 28% 25% 41% 37%}}\n<\/style>\n\n<script>\ndocument.querySelectorAll('.gradtitle strong').forEach(title => {\n  title.style.position = 'relative';\n  let aurora = document.createElement('div');\n  aurora.className = 'aurora';\n  aurora.innerHTML = '<div class=\"aurora__item\"><\/div>'.repeat(4);\n  title.appendChild(aurora);\n});\n<\/script>\n\n\n\n<p>\u041c\u0430\u0454\u0442\u0435 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 \u0447\u0438 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457? \u2014 \u0441\u043f\u0456\u043b\u043a\u0443\u0454\u043c\u043e\u0441\u044c \u0442\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454\u043c\u043e \u0432 <a href=\"https:\/\/t.me\/webliumchat\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/t.me\/webliumhub\" rel=\"noreferrer noopener\">\u043d\u0430\u0448\u043e\u043c\u0443 \u043a\u043e\u043c\u044e\u043d\u0456\u0442\u0456<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u0414\u043e\u0434\u0430\u0454\u043c\u043e \u0435\u0444\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u0456 \u043d\u0430\u0448\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c \u0443 Weblium \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e CSS \u0441\u043d\u0456\u043f\u0435\u0442\u0443.\u0426\u0435\u0439 \u043a\u043e\u0434 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u044f\u0441\u043a\u0440\u0430\u0432\u0438\u0439, \u0434\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u0456\u0437 \u043f\u043b\u0430\u0432\u043d\u0438\u043c \u0433\u0440\u0430\u0434\u0456\u0454\u043d\u0442\u043d\u043e\u044e \u0437\u043c\u0456\u043d\u043e\u044e \u043a\u043e\u043b\u044c\u043e\u0440\u0456\u0432. \u0412\u0456\u043d \u0447\u0443\u0434\u043e\u0432\u043e \u043f\u0456\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0456\u0432 \u0442\u0430 \u0432\u0430\u0436\u043b\u0438\u0432\u0438\u0445 \u0430\u043a\u0446\u0435\u043d\u0442\u0456\u0432 \u043d\u0430 \u0432\u0435\u0431\u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456, \u043f\u0440\u0438\u0432\u0435\u0440\u0442\u0430\u044e\u0447\u0438 \u0443\u0432\u0430\u0433\u0443 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432. the beautiful gradient text \u042f\u043a \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438: \u0421\u043a\u043e\u043f\u0456\u044e\u0439\u0442\u0435 \u043a\u043e\u0434, \u0442\u0430 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0432 HEAD \u0441\u0430\u0439\u0442\u0443.\u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u043a\u043b\u0430\u0441 .wl-flowtext \u0432\u0430\u0448\u0438\u043c \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043cEnjoy! \u041c\u0430\u0454\u0442\u0435 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 [&hellip;]<\/p>","protected":false},"author":1,"featured_media":836,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_gspb_post_css":"","footnotes":""},"categories":[16],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-effects"],"blocksy_meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":10,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":1081,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/posts\/830\/revisions\/1081"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/media\/836"}],"wp:attachment":[{"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webliumhub.com\/en\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}