{"id":15789,"date":"2019-02-13T12:01:01","date_gmt":"2019-02-13T12:01:01","guid":{"rendered":"http:\/\/webartdevelopers.com\/?p=15789"},"modified":"2022-06-25T06:36:46","modified_gmt":"2022-06-25T06:36:46","slug":"simple-hover-effects-with-box-shadow","status":"publish","type":"post","link":"https:\/\/webartdevelopers.com\/blog\/simple-hover-effects-with-box-shadow\/","title":{"rendered":"SIMPLE HOVER EFFECTS WITH BOX-SHADOW"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong><u><em>Author:<\/em><\/u><\/strong><\/h4>\n\n\n\n<ul><li>Giana<\/li><li>June 4, 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 a nice and awesome collection of basic animations created with\u00a0<code>box-shadow<\/code>s. No extra elements or even pseudo elements required.<\/p>\n\n\n\n<p><strong>Tips:<\/strong>\u00a0&#8211; Here all the blurs have been set to\u00a0<code>0<\/code>\u00a0since we want a solid fill; &#8211; Add the\u00a0<code>inset<\/code>\u00a0keyword so the\u00a0<code>box-shadow<\/code>\u00a0is on the inside of the element; &#8211; Animating the inset shadow on hover looks like the element is filling in from whatever side you specify ([top] and [left] accept negative values to become [bottom] and [right]); &#8211; Multiple shadows can be stacked; &#8211; If you&#8217;re animating multiple shadows, be sure to keep the same number of shadows so the animation is smooth. Otherwise, you&#8217;ll get something choppy.<\/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>Responsive:<\/em><\/strong> No<\/p>\n\n\n\n<p><strong><em>Dependencies:<\/em><\/strong> &#8211;<\/p>\n\n\n<a href=\"https:\/\/codepen.io\/giana\/share\/zip\/BZaGyP\" 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\/giana\/pen\/BZaGyP\" 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: Giana June 4, 2017 Made with: HTML \/ CSS (SCSS) About the code: This is a nice and awesome collection of basic animations created with\u00a0box-shadows. No extra elements or even pseudo elements required. Tips:\u00a0&#8211; Here all the blurs have been set to\u00a00\u00a0since we want a solid fill; &#8211; Add the\u00a0inset\u00a0keyword so the\u00a0box-shadow\u00a0is on the inside of the element; &#8211; Animating the inset shadow on hover looks like the element is filling in from whatever side you specify ( and  accept negative values to become  and ); &#8211; Multiple shadows can be stacked; &#8211; If you&#8217;re animating multiple shadows, be sure to keep the same number of shadows so the animation is smooth. Otherwise, you&#8217;ll get something choppy. <!-- AddThis Advanced Settings generic via filter on get_the_excerpt -->","protected":false},"author":1,"featured_media":15790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9148,4552],"tags":[4561,20,9152,4560,4562,4553],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15789"}],"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=15789"}],"version-history":[{"count":2,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15789\/revisions"}],"predecessor-version":[{"id":33357,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/15789\/revisions\/33357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media\/15790"}],"wp:attachment":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media?parent=15789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/categories?post=15789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/tags?post=15789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}