{"id":1962,"date":"2016-11-20T16:08:10","date_gmt":"2016-11-20T16:08:10","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1962"},"modified":"2016-11-20T16:30:27","modified_gmt":"2016-11-20T16:30:27","slug":"create-css-loader-animation","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/create-css-loader-animation\/","title":{"rendered":"How to Create Loader Animation with CSS"},"content":{"rendered":"<p>A loader is a very useful element for every web project. Basically, we use the loader during page or content loading. When we use Ajax to update parts of a web page, some time needs to get the respective content. At this situation, preloader is a perfect choice for notifying the user to wait.<\/p>\n<p>You can use an image as a preloader or create CSS loader. If you want to make <b>loader animation with CSS<\/b>, this tutorial will help you to create simple and lightweight loader animation. Here we&#8217;ll provide a short CSS code snippet for creating a simple loader with CSS and HTML.<\/p>\n<h2>Loader Style 1<\/h2>\n<p>The following CSS generates a spinner loader. You can change the loader color and size as per your website layout.<\/p>\n<p><b>CSS Code:<\/b><\/p>\n<pre><span style=\"color:#bf4f24\">.loader<\/span> {\r\n    <span style=\"color:#691c97\">border-top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">16<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#4285F4<\/span>;\r\n    <span style=\"color:#691c97\">border-right<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">16<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#EA4335<\/span>;\r\n    <span style=\"color:#691c97\">border-bottom<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">16<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#FBBC05<\/span>;\r\n    <span style=\"color:#691c97\">border-left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">16<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">solid<\/span> <span style=\"color:#811f24;font-weight:700\">#34A853<\/span>;\r\n    <span style=\"color:#691c97\">border-radius<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">50<span style=\"color:#794938\">%<\/span><\/span>;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">120<span style=\"color:#794938\">px<\/span><\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">120<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-animation<span style=\"color:#794938\">:<\/span> rotate <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">s<\/span><\/span> linear infinite;\r\n    animation<span style=\"color:#794938\">:<\/span> rotate <span style=\"color:#811f24;font-weight:700\">2<span style=\"color:#794938\">s<\/span><\/span> linear infinite;\r\n}\r\n@keyframes rotate {\r\n    0% { transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">deg<\/span><\/span>); }\r\n    100% { transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">360<span style=\"color:#794938\">deg<\/span><\/span>); }\r\n}\r\n@-webkit-keyframes rotate {\r\n    0% { -webkit-transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">0<span style=\"color:#794938\">deg<\/span><\/span>); }\r\n    100% { -webkit-transform<span style=\"color:#794938\">:<\/span> rotate(<span style=\"color:#811f24;font-weight:700\">360<span style=\"color:#794938\">deg<\/span><\/span>); }\r\n}\r\n<\/pre>\n<p><b>HTML Code:<\/b><\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"loader\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<\/pre>\n<h2>Loader Style 2<\/h2>\n<p>The following CSS generates an animated loader. You can change the loader color and size as per your website layout.<\/p>\n<p><b>CSS Code:<\/b><\/p>\n<pre><span style=\"color:#bf4f24\">.loader<\/span>, <span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:before<\/span>, <span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">background<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#000000<\/span>;\r\n    -webkit-animation<span style=\"color:#794938\">:<\/span> animate <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">s<\/span><\/span> infinite ease-in-out;\r\n    animation<span style=\"color:#794938\">:<\/span> animate <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">s<\/span><\/span> infinite ease-in-out;\r\n    <span style=\"color:#691c97\">width<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1<span style=\"color:#794938\">em<\/span><\/span>;\r\n    <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">4<span style=\"color:#794938\">em<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.loader<\/span> {\r\n    <span style=\"color:#691c97\">color<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">#000000<\/span>;\r\n    <span style=\"color:#691c97\">text-indent<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-9999<span style=\"color:#794938\">em<\/span><\/span>;\r\n    <span style=\"color:#691c97\">margin<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">88<span style=\"color:#794938\">px<\/span><\/span> <span style=\"color:#b4371f\">auto<\/span>;\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">relative<\/span>;\r\n    <span style=\"color:#691c97\">font-size<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">11<span style=\"color:#794938\">px<\/span><\/span>;\r\n    -webkit-transform<span style=\"color:#794938\">:<\/span> translateZ(<span style=\"color:#811f24;font-weight:700\">0<\/span>);\r\n    -ms-transform<span style=\"color:#794938\">:<\/span> translateZ(<span style=\"color:#811f24;font-weight:700\">0<\/span>);\r\n    transform<span style=\"color:#794938\">:<\/span> translateZ(<span style=\"color:#811f24;font-weight:700\">0<\/span>);\r\n    -webkit-animation-delay<span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-0.16<span style=\"color:#794938\">s<\/span><\/span>;\r\n    animation-delay<span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-0.16<span style=\"color:#794938\">s<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:before<\/span>, <span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">position<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#b4371f\">absolute<\/span>;\r\n    <span style=\"color:#691c97\">top<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n    <span style=\"color:#691c97\">content<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#0b6125\">''<\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:before<\/span> {\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-1.5<span style=\"color:#794938\">em<\/span><\/span>;\r\n    -webkit-animation-delay<span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-0.32<span style=\"color:#794938\">s<\/span><\/span>;\r\n    animation-delay<span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">-0.32<span style=\"color:#794938\">s<\/span><\/span>;\r\n}\r\n<span style=\"color:#bf4f24\">.loader<\/span><span style=\"color:#bf4f24\">:after<\/span> {\r\n    <span style=\"color:#691c97\">left<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">1.5<span style=\"color:#794938\">em<\/span><\/span>;\r\n}\r\n@-webkit-keyframes animate {\r\n    0%, 80%, 100% {\r\n        <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n        <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">4<span style=\"color:#794938\">em<\/span><\/span>;\r\n    }\r\n    40% {\r\n        <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">-2<span style=\"color:#794938\">em<\/span><\/span>;\r\n        <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">em<\/span><\/span>;\r\n    }\r\n}\r\n@keyframes animate {\r\n    0%, 80%, 100% {\r\n          <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span>;\r\n          <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">4<span style=\"color:#794938\">em<\/span><\/span>;\r\n    }\r\n    40% {\r\n        <span style=\"color:#691c97\">box-shadow<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">0<\/span> <span style=\"color:#811f24;font-weight:700\">-2<span style=\"color:#794938\">em<\/span><\/span>;\r\n        <span style=\"color:#691c97\">height<\/span><span style=\"color:#794938\">:<\/span> <span style=\"color:#811f24;font-weight:700\">5<span style=\"color:#794938\">em<\/span><\/span>;\r\n    }\r\n}\r\n<\/pre>\n<p><b>HTML Code:<\/b><\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">div<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"loader\"<\/span>>&lt;\/<span style=\"color:#bf4f24\">div<\/span>>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A loader is a very useful element for every web project. Basically, we use the loader during page or content loading. When we use Ajax to update parts of a web page, some time needs <\/p>\n","protected":false},"author":1,"featured_media":1963,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[130],"tags":[199,198],"class_list":["post-1962","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html-css","tag-loader","tag-preloader","cat-130-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create Loader Animation with CSS - CodexWorld<\/title>\n<meta name=\"description\" content=\"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.\" \/>\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.codexworld.com\/create-css-loader-animation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Loader Animation with CSS - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/create-css-loader-animation\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-20T16:08:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-20T16:30:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"How to Create Loader Animation with CSS\",\"datePublished\":\"2016-11-20T16:08:10+00:00\",\"dateModified\":\"2016-11-20T16:30:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/\"},\"wordCount\":164,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/how-to-create-loader-animation-with-css-codexworld.png\",\"keywords\":[\"Loader\",\"Preloader\"],\"articleSection\":[\"HTML&amp;CSS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/\",\"name\":\"How to Create Loader Animation with CSS - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/how-to-create-loader-animation-with-css-codexworld.png\",\"datePublished\":\"2016-11-20T16:08:10+00:00\",\"dateModified\":\"2016-11-20T16:30:27+00:00\",\"description\":\"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/how-to-create-loader-animation-with-css-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/how-to-create-loader-animation-with-css-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"how-to-create-loader-animation-with-css-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-css-loader-animation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Loader Animation with CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Loader Animation with CSS - CodexWorld","description":"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.","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.codexworld.com\/create-css-loader-animation\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Loader Animation with CSS - CodexWorld","og_description":"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.","og_url":"https:\/\/www.codexworld.com\/create-css-loader-animation\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-11-20T16:08:10+00:00","article_modified_time":"2016-11-20T16:30:27+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"How to Create Loader Animation with CSS","datePublished":"2016-11-20T16:08:10+00:00","dateModified":"2016-11-20T16:30:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/"},"wordCount":164,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","keywords":["Loader","Preloader"],"articleSection":["HTML&amp;CSS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/","url":"https:\/\/www.codexworld.com\/create-css-loader-animation\/","name":"How to Create Loader Animation with CSS - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","datePublished":"2016-11-20T16:08:10+00:00","dateModified":"2016-11-20T16:30:27+00:00","description":"Pure CSS spinner and loader animation - Short and simple code snippets to create loader with CSS. Learn how to make loader using CSS and HTML.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/create-css-loader-animation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","width":1366,"height":768,"caption":"how-to-create-loader-animation-with-css-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/create-css-loader-animation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"How to Create Loader Animation with CSS"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/11\/how-to-create-loader-animation-with-css-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-vE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1962"}],"version-history":[{"count":2,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1962\/revisions"}],"predecessor-version":[{"id":1965,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1962\/revisions\/1965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1963"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}