{"id":13274,"date":"2019-01-01T13:34:51","date_gmt":"2019-01-01T13:34:51","guid":{"rendered":"http:\/\/webartdevelopers.com\/?p=13274"},"modified":"2020-04-20T06:36:16","modified_gmt":"2020-04-20T06:36:16","slug":"standalone-svg-css-only-star-rating-component","status":"publish","type":"post","link":"https:\/\/webartdevelopers.com\/blog\/standalone-svg-css-only-star-rating-component\/","title":{"rendered":"STANDALONE SVG CSS-ONLY STAR RATING COMPONENT"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong><u><em>Author:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul><li>Dami\u00e1n Muti<\/li><li>May 24, 2017<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>Made with:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul><li>HTML \/ CSS (SCSS)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><u><em>About the code:<\/em><\/u><\/strong><\/h4>\n\n\n\n<p>This is an amazing  CSS-only component that dynamically generates each of the SVG icons to be used as background images for each of the stars. For the\u00a0<strong>rating<\/strong>\u00a0value to be displayed,\u00a0<code>data-rating-value<\/code>\u00a0HTML attribute must be updated and calculated rounding every\u00a0<code>0.25<\/code>\u00a0to reflect the proper rating.<\/p>\n\n\n\n<p><strong><em>Compatible browsers:<\/em><\/strong> Chrome, Edge, Firefox, Opera, Safari<\/p>\n\n\n\n<p><strong><em>Dependencies:<\/em><\/strong> &#8211;<\/p>\n\n\n<a href=\"https:\/\/codepen.io\/damianmuti\/share\/zip\/KmEMdR\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Download<\/span><\/a>\n\n\n<a href=\"https:\/\/codepen.io\/damianmuti\/pen\/KmEMdR\" class=\"su-button su-button-style-default\" style=\"color:#ffffff;background-color:#000000;border-color:#000000;border-radius:40px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#ffffff;padding:0px 20px;font-size:16px;line-height:32px;border-color:#4d4d4d;border-radius:40px;text-shadow:none\"> Demo and Code<\/span><\/a>\n<!-- AddThis Advanced Settings generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"Author: Dami\u00e1n Muti May 24, 2017 Made with: HTML \/ CSS (SCSS) About the code: This is an amazing CSS-only component that dynamically generates each of the SVG icons to be used as background images for each of the stars. For the\u00a0rating\u00a0value to be displayed,\u00a0data-rating-value\u00a0HTML attribute must be updated and calculated rounding every\u00a00.25\u00a0to reflect the proper rating. Compatible browsers: Chrome, Edge, Firefox, Opera, Safari Dependencies: &#8211;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt -->","protected":false},"author":1,"featured_media":13284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3680],"tags":[20,3699,3683],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/13274"}],"collection":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/comments?post=13274"}],"version-history":[{"count":2,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/13274\/revisions"}],"predecessor-version":[{"id":20059,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/13274\/revisions\/20059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media\/13284"}],"wp:attachment":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media?parent=13274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/categories?post=13274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/tags?post=13274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}