{"id":53949,"date":"2021-11-16T03:01:41","date_gmt":"2021-11-15T17:01:41","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=53949"},"modified":"2021-11-15T06:50:57","modified_gmt":"2021-11-14T20:50:57","slug":"animated-linear-gradient-border-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-linear-gradient-border-primer-tutorial\/","title":{"rendered":"Animated Linear Gradient Border Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/animated_linear_gradient_border.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Animated Linear Gradient Border Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/animated_linear_gradient_border.jpg\" title=\"Animated Linear Gradient Border Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Animated Linear Gradient Border Primer Tutorial<\/p><\/div>\n<p>Over a few days now at this blog, we&#8217;ve been trialling a CSS styling idea for when we use HTML iframe elements to allow the reader to try a web application as they read the blog posting content.  This CSS styling, we hope, brings attention to this, as a blog post feature they should pay attention to.<\/p>\n<p>As such &#8230;<\/p>\n<ul>\n<li>we wanted something colourful &#8230;<\/li>\n<li>we wanted something impactive &#8230;<\/li>\n<li>we wanted something animated<\/li>\n<\/ul>\n<p> &#8230; and so we looked up <a target=_blank title='Animated linear gradient border Google search' href='https:\/\/www.google.com\/search?q=animated+linear+gradient+border&#038;rlz=1C5CHFA_enAU973AU973&#038;oq=animated+linear+gradient+border&#038;aqs=chrome..69i57j0i22i30.8388j1j4&#038;sourceid=chrome&#038;ie=UTF-8'>animated linear gradient border<\/a> and lobbed onto <a target=_blank title='Excellent link' href='https:\/\/codepen.io\/bibby0912\/pen\/mErWyA'>this favoured excellent link<\/a> (thanks) and onto some CSS styling code that worked for us, and that we are going to embellish the &#8220;code&#8221; element (via <i>&lt;code class=&#8221;container demo animated&#8221;&gt; &#8230; &lt;\/code&gt;<\/i> HTML, or, in the case of iframe styling <i>&lt;div class=&#8221;container demo animated&#8221;&gt;&lt;iframe&gt;&lt;\/iframe&gt;&lt;\/div&gt;<\/i> HTML) with, below, and placed into <font size=1>(good ol&#8217;)<\/font> WordPress Twenty Ten theme&#8217;s header.php &#8230;<\/p>\n<p>&lt;style&gt;<br \/>\n<code class=\"container demo animated\"><br \/>\n    \/* Thanks to https:\/\/codepen.io\/bibby0912\/pen\/mErWyA for basis of idea below ...<br \/>\n    applied at https:\/\/www.rjmprogramming.com.au\/ITblog\/marquee-placeholder-primer-tutorial\/ *\/<br \/>\n<br \/> <br \/>\n    .container {<br \/>\n      height: 100%;<br \/>\n      width: 100%;<br \/>\n      border: 8px solid transparent;<br \/>\n      box-sizing: border-box;<br \/>\n      padding: 1rem;<br \/>\n      overflow: visible;<br \/>\n      display:flex;<br \/>\n    }<br \/>\n<br \/>\n    .demo {<br \/>\n      background-image:<br \/>\n        linear-gradient(white, white),<br \/>\n        linear-gradient(270deg, #00D7B9, #B95DD7 50%, #FFB367 100%);<br \/>\n<br \/>\n      background-repeat: no-repeat;<br \/>\n      background-origin: padding-box, border-box;<br \/>\n    }<br \/>\n<br \/>\n    .animated {<br \/>\n      background-image:<br \/>\n        linear-gradient(white, white),<br \/>\n        linear-gradient(180deg, green, lightblue 50%, yellow);<br \/>\n<br \/>\n      background-repeat: no-repeat;<br \/>\n      background-size: 100% 100%, 100% 200%;<br \/>\n      background-position: 0 0, 0 100%;<br \/>\n      background-origin: padding-box, border-box;<br \/>\n      animation: highlight 1s infinite alternate;<br \/>\n    }<br \/>\n<br \/>\n    @keyframes highlight {<br \/>\n      100% {<br \/>\n        background-position: 0 0, 0 0;<br \/>\n      }<br \/>\n    }<br \/>\n<\/code><br \/>\n&lt;\/style&gt;<\/p>\n<p>We hope it grabbed your attention!<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d53949' onclick='var dv=document.getElementById(\"d53949\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/linear-gradient\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d53949' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Over a few days now at this blog, we&#8217;ve been trialling a CSS styling idea for when we use HTML iframe elements to allow the reader to try a web application as they read the blog posting content. This CSS &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-linear-gradient-border-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12,37],"tags":[84,3856,161,218,224,281,576,587,3743,2020,997,1212,1319],"class_list":["post-53949","post","type-post","status-publish","format-standard","hentry","category-animation","category-elearning","category-tutorials","tag-animation-2","tag-attention","tag-border","tag-code","tag-colour","tag-css","tag-html","tag-iframe","tag-impact","tag-linear-gradient","tag-programming","tag-styling","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53949"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=53949"}],"version-history":[{"count":5,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53949\/revisions"}],"predecessor-version":[{"id":53954,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/53949\/revisions\/53954"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=53949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=53949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=53949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}