{"id":10373,"date":"2022-04-12T17:04:38","date_gmt":"2022-04-12T14:04:38","guid":{"rendered":"https:\/\/elzero.org\/?p=10373"},"modified":"2022-09-28T18:25:53","modified_gmt":"2022-09-28T15:25:53","slug":"tutorials-animated-wavy-background","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/tutorials-animated-wavy-background\/","title":{"rendered":"Animated Wavy Background"},"content":{"rendered":"<h3>\u0627\u0644 Code<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-html\">\r\n<div class=\"page\">\r\n  <div class=\"card\">\r\n    <img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/280x400\/0075ff\/FFF?text=Card\" alt=\"\" \/>\r\n    <h2>Card Title<\/h2>\r\n    <p>Lorem ipsum dolor sit amet.<\/p>\r\n  <\/div>\r\n<\/div>\r\n<\/script>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n* {\r\n  box-sizing: border-box;\r\n}\r\nbody {\r\n  margin: 0;\r\n  font-family: \"Cairo\", sans-serif;\r\n}\r\n.page {\r\n  height: 100vh;\r\n}\r\n.page::before {\r\n  content: \"\";\r\n  position: fixed;\r\n  width: 300%;\r\n  height: 100%;\r\n  background-color: #0075ff;\r\n  left: 50%;\r\n  top: 50%;\r\n  transform: translateX(-50%) skew(0, -10deg);\r\n  border-radius: 50%;\r\n  z-index: -1;\r\n  animation: waving 5s ease-in-out infinite alternate;\r\n}\r\n.card {\r\n  width: 300px;\r\n  padding: 20px;\r\n  position: absolute;\r\n  left: 50%;\r\n  top: 50%;\r\n  transform: translate(-50%, -50%);\r\n  text-align: center;\r\n  background-color: white;\r\n  border-radius: 10px;\r\n  box-shadow: 0 0 10px #ddd inset;\r\n}\r\n.card img {\r\n  max-width: 100%;\r\n  border-radius: 10px;\r\n}\r\n.card h2 {\r\n  margin: 0;\r\n}\r\n.card p {\r\n  margin: 0;\r\n}\r\n@keyframes waving {\r\n  from {\r\n    transform: translateX(-50%) skew(0, -10deg);\r\n  }\r\n  to {\r\n    transform: translateX(-30%) skew(10deg, 0);\r\n  }\r\n}\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644 Code<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[879],"tags":[849,316,1046,107,220,253,1128,868,867,255],"class_list":["post-10373","post","type-post","status-publish","format-standard","hentry","category-front-end-tutorials","tag-animated","tag-animation","tag-background","tag-code","tag-css","tag-design","tag-wavy","tag-868","tag-867","tag-255"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/10373","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=10373"}],"version-history":[{"count":1,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/10373\/revisions"}],"predecessor-version":[{"id":10375,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/10373\/revisions\/10375"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=10373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=10373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=10373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}