{"id":5372,"date":"2026-04-21T13:19:48","date_gmt":"2026-04-21T12:19:48","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=5372"},"modified":"2026-04-21T15:03:03","modified_gmt":"2026-04-21T14:03:03","slug":"hover-effects","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/hover\/hover-effects","title":{"rendered":"Hover effects"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Highlight hovered over div<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>.my_style:hover {\n  border-color: rgba(139,124,248,0.4);\n  background: rgba(139,124,248,0.05);\n}<\/code><\/pre>\n\n\n\n<p>Apply hover over the top, e.g. for an image based button<\/p>\n\n\n\n<p>The <code>::after<\/code> element sits on top of the image<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.my_style {\n  width: 50px;\n  height: 30px;\n  cursor: pointer;\n  position: relative;\n}\n\n.my_style::after {\n  content: '';\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(242,100,25,0.5);\n  opacity: 0;\n  transition: opacity 0.3s ease;\n}\n.my_style:hover::after {\n  opacity: 1;\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Highlight hovered over div Apply hover over the top, e.g. for an image based button The ::after element sits on top of the image<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[393],"tags":[],"class_list":["post-5372","post","type-post","status-publish","format-standard","hentry","category-hover"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=5372"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5372\/revisions"}],"predecessor-version":[{"id":5375,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/5372\/revisions\/5375"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=5372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=5372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=5372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}