{"id":6237,"date":"2015-08-17T12:15:58","date_gmt":"2015-08-17T09:15:58","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=6237"},"modified":"2017-12-19T13:50:12","modified_gmt":"2017-12-19T11:50:12","slug":"html5-css3-text-animation-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/","title":{"rendered":"HTML5 and CSS3 Text Animation Example"},"content":{"rendered":"<p>In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation&#8217;s style, as well as possible intermediate waypoints.<\/p>\n<p>There are three key advantages to CSS animations over traditional script-driven animation techniques:<\/p>\n<p>1. They&#8217;re easy to use for simple animations; you can create them without even having to know JavaScript.<br \/>\n2. The animations run well, even under moderate system load. Simple animations can often perform poorly in JavaScript (unless they&#8217;re well made). The rendering engine can use frame-skipping and other techniques to keep the performance as smooth as possible.<br \/>\n3. Letting the browser control the animation sequence lets the browser optimize performance and efficiency by, for example, reducing the update frequency of animations running in tabs that aren&#8217;t currently visible.<br \/>\n[ulp id=&#8217;tgm4cmEWcKUikZNn&#8217;]<\/p>\n<h2>1. Basics<\/h2>\n<h3>1.1 Initial Document Setup<\/h3>\n<p>Go ahead and create a new html document and add the basic sytnax in it like so:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;title&gt;HTML5 &amp; CSS3 Text Animation Example&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!-- STYLE SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\n&lt;\/style&gt;\r\n\r\n&lt;!-- HTML SECTION --&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Because we&#8217;re considering only text animation in this example, the HTML section will only contain text elements inside respective tags, while the animation itself will be triggered in CSS where we&#8217;ll be working with <code>animation<\/code> and <code>keyframes<\/code> properties.<\/p>\n<h3>1.2 Understanding CSS Animations<\/h3>\n<p>To create a CSS animation sequence, you style the element you want to animate with the animation property or its sub-properties. This lets you configure the timing, duration,  and other details of how the animation sequence should progress. This does not configure the actual appearance of the animation, which is done using the <code>@keyframes<\/code> at-rule as described in Defining the animation sequence using keyframes below.<\/p>\n<p>The sub-properties of the animation property are:<\/p>\n<p><code>animation-delay<\/code><br \/>\nConfigures the delay between the time the element is loaded and the beginning of the animation sequence.<br \/>\n<code>animation-direction<\/code><br \/>\nConfigures whether or not the animation should alternate direction on each run through the sequence or reset to the start point and repeat itself.<br \/>\n<code>animation-duration<\/code><br \/>\nConfigures the length of time that an animation should take to complete one cycle.<br \/>\n<code>animation-iteration-count<\/code><br \/>\nConfigures the number of times the animation should repeat; you can specify infinite to repeat the animation indefinitely.<br \/>\n<code>animation-name<\/code><br \/>\nSpecifies the name of the @keyframes at-rule describing the animation&#8217;s keyframes.<br \/>\n<code>animation-play-state<\/code><br \/>\nLets you pause and resume the animation sequence.<br \/>\n<code>animation-timing-function<\/code><br \/>\nConfigures the timing of the animation; that is, how the animation transitions through keyframes, by establishing acceleration curves.<br \/>\n<code>animation-fill-mode<\/code><br \/>\nConfigures what values are applied by the animation before and after it is executing.<\/p>\n<p><strong>Defining the animation sequence using keyframes<\/strong><\/p>\n<p>Once you&#8217;ve configured the animation&#8217;s timing, you need to define the appearance of the animation. This is done by establishing two or more keyframes using the @keyframes at-rule. Each keyframe describes how the animated element should render at a given time during the animation sequence.<\/p>\n<p>Since the timing of the animation is defined in the CSS style that configures the animation, keyframes use a percentage to indicate the time during the animation sequence at which they take place. 0% indicates the first moment of the animation sequence, while 100% indicates the final state of the animation. Because these two times are so important, they have special aliases: from and to. Both are optional. If from\/0% or to\/100% is not specified, the browser starts or finishes the animation using the computed values of all attributes.<\/p>\n<h3>1.3 A Basic Application<\/h3>\n<p>Let&#8217;s now show a basic text animation using the knowledge above. Firstly, add a line of code containing text in HTML.<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n&lt;div&gt;This is just modified text.&lt;\/div&gt;\r\n<\/pre>\n<p>In CSS, as you can see below, I&#8217;ve added a simple color change animation from green to red:<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE  SECTION --&gt;\r\n&lt;style type=\"text\/css\"&gt;\r\nbody {\r\n    font-family: \"BarnaulGrotesk\";\r\n}\r\ndiv {\r\n    font-size: 2em; \/*increased font size*\/\r\n    color: green;   \/*set a font color to green*\/\r\n    -webkit-animation-name: basic; \/* Chrome, Safari, Opera *\/\r\n    -webkit-animation-duration: 4s; \/* Chrome, Safari, Opera *\/\r\n    animation-duration: 4s; \/*set how long will the animation run*\/\r\n    animation-name: basic;  \/*give the animation a name to refer later in keyframes*\/\r\n}\r\n@keyframes basic {         \/*refer to our current keyframe: basic*\/\r\n    from {color: green;}    \/*start animation with this property and value*\/\r\n    to {color: red;}        \/*end the animation with this property and value*\/\r\n}\r\n&lt;\/style&gt;\r\n<\/pre>\n<p>Well, you can see the real animation in an image, but the transition looks like this:<br \/>\n<figure id=\"attachment_6245\" aria-describedby=\"caption-attachment-6245\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations1.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations1.jpg\" alt=\"Basic Text Animation\" width=\"820\" height=\"181\" class=\"size-full wp-image-6245\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations1.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations1-300x66.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-6245\" class=\"wp-caption-text\">Basic Text Animation<\/figcaption><\/figure><\/p>\n<h2>2. Cases and Examples<\/h2>\n<h3>2.1 Changing Text Position<\/h3>\n<p>Text position animation can be a useful one on pages. Let&#8217;s see how we can implement it in CSS.<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n&lt;div class=\"ex1\"&gt;This is just modified text.&lt;\/div&gt;\r\n<\/pre>\n<pre class=\"brush:css\">\r\n.ex1 {\r\n    font-size: 2em;\r\n    color: green;\r\n    position: relative;         \/*changed position to relative*\/\r\n    -webkit-animation-name: example-1;\r\n    -webkit-animation-duration: 4s;\r\n    animation-duration: 4s;\r\n    animation-name: example-1;\r\n}\r\n@keyframes example-1 {\r\n    from {left: 0px;}   \/*defined left value to 0px initially*\/\r\n    to {left: 200px;}   \/*defined left value to 200px to move the text*\/\r\n}\r\n<\/pre>\n<figure id=\"attachment_6252\" aria-describedby=\"caption-attachment-6252\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations3.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations3.jpg\" alt=\"Changing Text Position using CSS3 Keyframes\" width=\"820\" height=\"186\" class=\"size-full wp-image-6252\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations3.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations3-300x68.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-6252\" class=\"wp-caption-text\">Changing Text Position using CSS3 Keyframes<\/figcaption><\/figure>\n<h3>2.2 Using Percentage Keyframes<\/h3>\n<p>Alternatively to the <code>from<\/code>&#8211;<code>to<\/code> keywords used inside keyframes, you could also use percentages to define the different states. Look at the example below, where we use 0%, 25%, 75%, and 100% to define different behaviour to the color of the text:<\/p>\n<pre class=\"brush:css\"> \r\n@keyframes example-2 {\r\n    0%   {color: red;}\r\n    25%  {color: yellow;}\r\n    50%  {color: blue;}\r\n    100% {color: green;}\r\n}\r\n<\/pre>\n<p>You can see a live preview <a href=\"http:\/\/www.w3schools.com\/css\/tryit.asp?filename=trycss3_animation2\" target=\"_blank\">here<\/a> of how this looks like (the live view contains a rectangular, but it is basically the same animation on text), as you might imagine images cannot illustrate animations).<\/p>\n<h3>2.3 Multiple Animations at Once<\/h3>\n<p>Not only can you have various text animations one by one, but also a group of them in one single run of the animation. Here we&#8217;re considering an animation of two positions and color at the same time. Set up a new example on your html with the class of <code>ex3<\/code> and give it the following CSS properties:<\/p>\n<pre class=\"brush:css\">\r\n .ex3 {\r\n    font-size: 2em;\r\n    color: green;\r\n    position: relative;\r\n    -webkit-animation-name: example-3;\r\n    -webkit-animation-duration: 4s;\r\n    animation-duration: 3s; \/*changed duration to 3s*\/\r\n    animation-name: example-3;\r\n}\r\n\r\n@keyframes example-3 {  \/*applying multiple animations*\/\r\n    0%   {color: indianred; left: 0px; top: 0px;}\r\n    25%  {color: magenta; left: 50px; top: 10px;}\r\n    50%  {color: peru; left: 100px; top: 15px;}\r\n    100% {color: forestgreen; left: 150px; top: 20px;}\r\n}\r\n<\/pre>\n<p>Below is a gif where you can see all our four examples in action!<br \/>\n<figure id=\"attachment_6259\" aria-describedby=\"caption-attachment-6259\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations4.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations4.gif\" alt=\"Multiple Animations At Once\" width=\"480\" height=\"360\" class=\"size-full wp-image-6259\" \/><\/a><figcaption id=\"caption-attachment-6259\" class=\"wp-caption-text\">Multiple Animations At Once<\/figcaption><\/figure><\/p>\n<h3>2.4 animation-<code>property<\/code> variations<\/h3>\n<p>There are also some fancy animation properties you can play with. These are properties that we&#8217;ve exaplained above:<\/p>\n<pre class=\"brush:css\">\r\n.ex4 {\r\n    font-size: 2em;\r\n    margin-top: 1em;\r\n    color: black;\r\n    position: relative;\r\n    animation-name: example-4;\r\n    -webkit-animation-name: example-4;\r\n    animation-duration: 5s;\r\n    animation-timing-function: linear; \/*how the animation transitions through keyframes*\/\r\n    animation-delay: 1s;        \/*delay the start of an animation*\/\r\n    animation-iteration-count: 2; \/*play the animation two times*\/\r\n    animation-direction: alternate;  \/*alternate direction on each run through the sequence*\/\r\n}\r\n\r\n@keyframes example-4 {  \/*applying multiple animations*\/\r\n    0%   {left: 0px; top: 0px;}\r\n    30%  {left: 100px; top: 0px;}\r\n    60%  {left: 100px; top: 50px;}\r\n    90%  {left: 0px; top: 50px;}\r\n    100%  {left: 0px; top: 0px;}\r\n}\r\n<\/pre>\n<p>The result would be (look at the last text element):<br \/>\n<figure id=\"attachment_6262\" aria-describedby=\"caption-attachment-6262\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations5.gif\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/text-animations5.gif\" alt=\"Other Animation-Properties\" width=\"480\" height=\"360\" class=\"size-full wp-image-6262\" \/><\/a><figcaption id=\"caption-attachment-6262\" class=\"wp-caption-text\">Other Animation-Properties<\/figcaption><\/figure><\/p>\n<h3>2.5 Animation Shorthand Property<\/h3>\n<p>The same animation effect as above can be achieved by using the shorthand animation property:<\/p>\n<pre class=\"brush:css\">\r\n.class {\r\n    animation: example 5s linear 2s infinite alternate;\r\n}\r\n<\/pre>\n<p>Notice the order in which vlaues are applied is name, duration, timing-function, delay, iteration-count and direction.<\/p>\n<h2>3. Conclusion<\/h2>\n<p>To conclude, CSS3 animations are an important part of CSS3, which account for various elements transitions. Text animations are among the most used ones, because of its usability. It is in general easy to animate text using the <code>animate<\/code> properties we talked in this article. Possibilities are endless on the aspect of what you can create\/animate using simple properties like left\/right\/top\/bottom, margins, padding, color, bg-color, alignment etc. Keyframes, on the other hand, make it possible to track your animations on as many timeframes as you need. Setting percentages will help you have a better control over the animation. Try out and see what you can come up with!<\/p>\n<h2>4. Download<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/HTML5-CSS3-Text-Animation.zip\"><strong>HTML5 &amp; CSS3 Text Animation<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation&#8217;s style, as well &hellip;<\/p>\n","protected":false},"author":75,"featured_media":914,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-6237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabiocimo\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-17T09:15:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T11:50:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabio Cimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabiocimo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio Cimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\"},\"author\":{\"name\":\"Fabio Cimo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\"},\"headline\":\"HTML5 and CSS3 Text Animation Example\",\"datePublished\":\"2015-08-17T09:15:58+00:00\",\"dateModified\":\"2017-12-19T11:50:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\"},\"wordCount\":1044,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"articleSection\":[\"HTML5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\",\"name\":\"HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"datePublished\":\"2015-08-17T09:15:58+00:00\",\"dateModified\":\"2017-12-19T11:50:12+00:00\",\"description\":\"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/html5\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML5 and CSS3 Text Animation Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\",\"name\":\"Fabio Cimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"caption\":\"Fabio Cimo\"},\"description\":\"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.\",\"sameAs\":[\"https:\/\/www.facebook.com\/fabiocimo\",\"https:\/\/al.linkedin.com\/in\/fabiocimo\",\"https:\/\/x.com\/fabiocimo\",\"https:\/\/www.youtube.com\/fabiocimo1\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026","description":"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to","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:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/","og_locale":"en_US","og_type":"article","og_title":"HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026","og_description":"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to","og_url":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/fabiocimo","article_published_time":"2015-08-17T09:15:58+00:00","article_modified_time":"2017-12-19T11:50:12+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","type":"image\/jpeg"}],"author":"Fabio Cimo","twitter_card":"summary_large_image","twitter_creator":"@fabiocimo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Fabio Cimo","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/"},"author":{"name":"Fabio Cimo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22"},"headline":"HTML5 and CSS3 Text Animation Example","datePublished":"2015-08-17T09:15:58+00:00","dateModified":"2017-12-19T11:50:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/"},"wordCount":1044,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","articleSection":["HTML5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/","url":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/","name":"HTML5 and CSS3 Text Animation Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","datePublished":"2015-08-17T09:15:58+00:00","dateModified":"2017-12-19T11:50:12+00:00","description":"In this example, we will be going through CSS3 text animations. CSS animations make it possible to animate transitions from one CSS style configuration to","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/html5-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/html5\/html5-css3-text-animation-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"HTML5","item":"https:\/\/www.webcodegeeks.com\/category\/html5\/"},{"@type":"ListItem","position":3,"name":"HTML5 and CSS3 Text Animation Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22","name":"Fabio Cimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","caption":"Fabio Cimo"},"description":"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.","sameAs":["https:\/\/www.facebook.com\/fabiocimo","https:\/\/al.linkedin.com\/in\/fabiocimo","https:\/\/x.com\/fabiocimo","https:\/\/www.youtube.com\/fabiocimo1"],"url":"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/6237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=6237"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/6237\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/914"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=6237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=6237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=6237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}