{"id":37710,"date":"2017-08-23T21:01:56","date_gmt":"2017-08-23T13:01:56","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=37710"},"modified":"2017-11-26T01:57:33","modified_gmt":"2017-11-25T17:57:33","slug":"csspin-spinners-loaders","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/","title":{"rendered":"Create Single-Element Spinners and Loaders with CSSPIN"},"content":{"rendered":"<p>You can build some amazing things with <a href=\"https:\/\/www.hongkiat.com\/blog\/beginners-guide-to-css3\/\">CSS3<\/a>, from <strong>custom input fields<\/strong> to <strong>dropdowns<\/strong> and even <strong><a href=\"https:\/\/www.hongkiat.com\/blog\/coding-graphics-with-css3\/\">vector graphics<\/a><\/strong>. These techniques are <strong>quickly overtaking JavaScript<\/strong>, making it easier for developers to craft better user experiences.<\/p>\n<p>One of the trickiest things to build is a <strong>loading spinner animation<\/strong> but modern <a href=\"https:\/\/www.hongkiat.com\/blog\/creative-css-animations\/\">CSS animation<\/a> even makes that pretty simple.<\/p>\n<p>To save time building from scratch, you can use a library like <strong><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/webkul.github.io\/csspin\/\">CSSPIN<\/a><\/strong> with tons of <strong>pre-defined custom spinners<\/strong>. All of these animations are free to clone and totally open-sourced, so you have <strong>full access<\/strong> to edit the code as you wish.<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a href=\"https:\/\/www.hongkiat.com\/blog\/free-animated-loaders\/\">20 Awesome Animated Loaders and Spinners<\/a><\/p>\n<p>Setting up a spinner with this library is a breeze. You just <strong>copy the CSS library<\/strong> into your page, then <strong>add the custom HTML elements<\/strong> wherever you want them to appear.<\/p>\n<p>These custom spinners use only <strong>one HTML element<\/strong> to create the animation effect. This is huge because the graphic and the animation effect is <strong>rendered purely through CSS classes<\/strong>.<\/p>\n<p>And, since you have access to the source code you can <strong>replace shapes, colors, sizes, and animation speeds<\/strong> to better suit your projects.<\/p>\n<p>Just note the code <strong>does use <a href=\"https:\/\/www.hongkiat.com\/blog\/less-basic\/\">LESS syntax<\/a><\/strong>, so you\u2019ll need to be familiar with that preprocessing language to make any major edits.<\/p>\n<p>But, you can find plenty of <strong>plain CSS examples<\/strong> on the <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/webkul.github.io\/csspin\/\">main demo page<\/a>, along with <strong>simple instructions<\/strong> on the <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.com\/webkul\/csspin\">GitHub page<\/a>.<\/p>\n<p>If you\u2019re familiar with <strong>npm<\/strong> or <strong><a href=\"https:\/\/www.hongkiat.com\/blog\/bower-package-manager\/\">Bower<\/a><\/strong> these are <strong>alternative methods<\/strong> for installing the library.<\/p>\n<p>No matter how you get it installed, this is a great CSS animation library to work with. It\u2019s meant to be <strong>fully modular<\/strong> with plenty of room for new spinners, new animations, and customizations from other developers.<\/p>\n<p>To learn more and browse through all the documentation, check out the <strong>CSSPIN repo <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.com\/webkul\/csspin\">on GitHub<\/a><\/strong>. The creator also made a small <strong><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=18uY-YueJeI\">setup video<\/a><\/strong> that you can watch below.<\/p>\n<p class=\"video-19by6\"><iframe loading=\"lazy\" width=\"650\" height=\"366\" src=\"https:\/\/www.youtube.com\/embed\/18uY-YueJeI\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a href=\"https:\/\/www.hongkiat.com\/blog\/animated-favicon-loader-javascript\/\">Create an Animated Favicon Loader with JavaScript<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking JavaScript, making it easier for developers to craft better user experiences. One of the trickiest things to build is a loading spinner animation but modern CSS animation even makes that pretty simple.&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create Single-Element Spinners and Loaders with CSSPIN - Hongkiat<\/title>\n<meta name=\"description\" content=\"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking\" \/>\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.hongkiat.com\/blog\/csspin-spinners-loaders\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Single-Element Spinners and Loaders with CSSPIN\" \/>\n<meta property=\"og:description\" content=\"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-23T13:01:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-25T17:57:33+00:00\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\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.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Create Single-Element Spinners and Loaders with CSSPIN\",\"datePublished\":\"2017-08-23T13:01:56+00:00\",\"dateModified\":\"2017-11-25T17:57:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/\"},\"wordCount\":329,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/\",\"name\":\"Create Single-Element Spinners and Loaders with CSSPIN - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-08-23T13:01:56+00:00\",\"dateModified\":\"2017-11-25T17:57:33+00:00\",\"description\":\"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/csspin-spinners-loaders\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Single-Element Spinners and Loaders with CSSPIN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create Single-Element Spinners and Loaders with CSSPIN - Hongkiat","description":"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking","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.hongkiat.com\/blog\/csspin-spinners-loaders\/","og_locale":"en_US","og_type":"article","og_title":"Create Single-Element Spinners and Loaders with CSSPIN","og_description":"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking","og_url":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-08-23T13:01:56+00:00","article_modified_time":"2017-11-25T17:57:33+00:00","author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Create Single-Element Spinners and Loaders with CSSPIN","datePublished":"2017-08-23T13:01:56+00:00","dateModified":"2017-11-25T17:57:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/"},"wordCount":329,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/","url":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/","name":"Create Single-Element Spinners and Loaders with CSSPIN - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2017-08-23T13:01:56+00:00","dateModified":"2017-11-25T17:57:33+00:00","description":"You can build some amazing things with CSS3, from custom input fields to dropdowns and even vector graphics. These techniques are quickly overtaking","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/csspin-spinners-loaders\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Single-Element Spinners and Loaders with CSSPIN"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-9Oe","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=37710"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37710\/revisions"}],"predecessor-version":[{"id":42070,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37710\/revisions\/42070"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=37710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=37710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=37710"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=37710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}