{"id":468,"date":"2025-10-16T00:31:00","date_gmt":"2025-10-15T21:31:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=468"},"modified":"2025-10-17T10:50:34","modified_gmt":"2025-10-17T07:50:34","slug":"blinking-text-css-animation","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/","title":{"rendered":"Blinking Text With HTML and CSS Only"},"content":{"rendered":"<p>I&#8217;m presenting a very simple way of making a <a href=\"https:\/\/texteditor.com\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">fancy text<\/a> blinking using only <a href=\"\/articles\/how-to-improve-your-html-and-css-skills\/\">HTML and CSS3<\/a>. Adjust the values, setting a different blinking speed and colors.<\/p>\n<p><span class=\"blinking aligncenter\" style=\"font-weight: bold;font-size: 1.5em;\">I Am Blinking!<\/span><\/p>\n<style>.blinking{animation:blinkingText 1.2s infinite;}@keyframes blinkingText{0%{ color: #000; }49%{ color: #000; }60%{ color: transparent; }99%{ color:transparent; }100%{ color: #000; }}<\/style>\n<p><!--more--><strong>I&#8217;m using a span tag and assigning the blinking class to it.<\/strong><\/p>\n<pre><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">span<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"blinking\"<\/span>&gt;<\/span>Am I blinking?<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">span<\/span>&gt;<\/span>\n<\/pre>\n<h2>And finally the CSS code:<\/h2>\n<pre><span style=\"font-style: italic;\">.blinking<\/span>{\n    animation:blinkingText <span style=\"color: #cd0000; font-style: italic;\">1.2<span style=\"color: #0100b6; font-weight: bold;\">s<\/span><\/span> infinite;\n}\n@keyframes blinkingText{\n    0%{     <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #c5060b; font-style: italic;\">#000<\/span>;    }\n    49%{    <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #c5060b; font-style: italic;\">#000<\/span>; }\n    60%{    <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #06960e; font-weight: bold;\">transparent<\/span>; }\n    99%{    <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>:<span style=\"color: #06960e; font-weight: bold;\">transparent<\/span>;  }\n    100%{   <span style=\"color: #6d79de; font-weight: bold;\">color<\/span>: <span style=\"color: #c5060b; font-style: italic;\">#000<\/span>;    }\n}\n<\/pre>\n<p>See the <a rel=\"nofollow\" href=\"https:\/\/texteditor.com\/html\/editor\/?html=%27%3Ch1%20class=%22blinking%22%20style=%22text-align:%20center;%22%3EI%20AM%20BLINKING!%3C\/h1%3E&#038;css=.blinking%7B%0A%20%20%20%20animation:blinkingText%201.2s%20infinite;%0A%7D%0A@keyframes%20blinkingText%7B%0A%20%20%20%200%25%7B%20%20%20%20%20color:%20#000;%20%20%20%20%7D%0A%20%20%20%2049%25%7B%20%20%20%20color:%20#000;%20%7D%0A%20%20%20%2060%25%7B%20%20%20%20color:%20transparent;%20%7D%0A%20%20%20%2099%25%7B%20%20%20%20color:transparent;%20%20%7D%0A%20%20%20%20100%25%7B%20%20%20color:%20#000;%20%20%20%20%7D%0A%7D\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">live demo at TextEditor.com<\/a>.<br \/>\nAnother way of doing this is changing the opacity the same way I&#8217;m changing the text color.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m presenting a very simple way of making a fancy text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed and colors. I Am Blinking!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2,4],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-articles","category-css","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Blinking text effect with HTML - CSS animation. No JavaScript<\/title>\n<meta name=\"description\" content=\"I&#039;m presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Blinking text effect with HTML - CSS animation. No JavaScript\" \/>\n<meta property=\"og:description\" content=\"I&#039;m presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-15T21:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-17T07:50:34+00:00\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"Blinking Text With HTML and CSS Only\",\"datePublished\":\"2025-10-15T21:31:00+00:00\",\"dateModified\":\"2025-10-17T07:50:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\"},\"wordCount\":81,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"articleSection\":[\"Articles\",\"CSS\",\"HTML\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\",\"url\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\",\"name\":\"Blinking text effect with HTML - CSS animation. No JavaScript\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"datePublished\":\"2025-10-15T21:31:00+00:00\",\"dateModified\":\"2025-10-17T07:50:34+00:00\",\"description\":\"I'm presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blinking Text With HTML and CSS Only\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Blinking text effect with HTML - CSS animation. No JavaScript","description":"I'm presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/","og_locale":"en_GB","og_type":"article","og_title":"Blinking text effect with HTML - CSS animation. No JavaScript","og_description":"I'm presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO","og_url":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2025-10-15T21:31:00+00:00","article_modified_time":"2025-10-17T07:50:34+00:00","author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"Blinking Text With HTML and CSS Only","datePublished":"2025-10-15T21:31:00+00:00","dateModified":"2025-10-17T07:50:34+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/"},"wordCount":81,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"articleSection":["Articles","CSS","HTML"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/","url":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/","name":"Blinking text effect with HTML - CSS animation. No JavaScript","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"datePublished":"2025-10-15T21:31:00+00:00","dateModified":"2025-10-17T07:50:34+00:00","description":"I'm presenting a very simple way of making a text blinking using only HTML and CSS3. Adjust the values, setting a different blinking speed. DEMO","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/blinking-text-css-animation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/blinking-text-css-animation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Blinking Text With HTML and CSS Only"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":2,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":2234,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/468\/revisions\/2234"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}