{"id":7574,"date":"2021-04-09T21:32:22","date_gmt":"2021-04-09T18:32:22","guid":{"rendered":"https:\/\/elzero.org\/?p=7574"},"modified":"2022-09-28T17:55:17","modified_gmt":"2022-09-28T14:55:17","slug":"tutorials-text-fill-effect-on-hover","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/tutorials-text-fill-effect-on-hover\/","title":{"rendered":"Text Fill Effect On Hover"},"content":{"rendered":"<h3>\u0627\u0644 Code<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-html\">\r\n<h2 class=\"fill\" data-text=\"Elzero\">Elzero<\/h2>\r\n<\/script>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n* {\r\n  box-sizing: border-box;\r\n  padding: 0;\r\n  margin: 0;\r\n}\r\nbody {\r\n  font-family: Arial, Tahoma;\r\n}\r\n.fill {\r\n  margin: 20px auto;\r\n  text-align: center;\r\n  font-weight: bold;\r\n  font-size: 40px;\r\n  width: fit-content;\r\n  -webkit-text-fill-color: white;\r\n  -webkit-text-stroke: 1px #333;\r\n  position: relative;\r\n}\r\n.fill:before {\r\n  content: attr(data-text);\r\n  position: absolute;\r\n  left: 0;\r\n  top: 0;\r\n  -webkit-text-fill-color: #ff5722;\r\n  transition: 0.5s;\r\n  width: 0;\r\n  overflow: hidden;\r\n}\r\n.fill:hover:before {\r\n  width: 100%;\r\n}\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644 Code<\/p>\n","protected":false},"author":1,"featured_media":10359,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[879],"tags":[],"class_list":["post-7574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-front-end-tutorials"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=7574"}],"version-history":[{"count":1,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7574\/revisions"}],"predecessor-version":[{"id":7575,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/7574\/revisions\/7575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media\/10359"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=7574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=7574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=7574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}