{"id":1103,"date":"2019-01-01T10:13:07","date_gmt":"2019-01-01T03:13:07","guid":{"rendered":"https:\/\/www.yellowweb.id\/blog\/?p=1103"},"modified":"2019-01-01T10:13:07","modified_gmt":"2019-01-01T03:13:07","slug":"blurry-background-image","status":"publish","type":"post","link":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/","title":{"rendered":"Blurry Background Image"},"content":{"rendered":"<p>Blurry Background Image, pada artikel kali ini disini kita akan mencoba bagaimana membuat latar (background) pada halaman web dengan memberikan efek blur. Pastinya yang diperlukan adalah CSS.<br \/>\n<!--more--><\/p>\n<p>Hasilnya akan terlihat seperti berikut:<br \/>\n<iframe loading=\"lazy\" width=\"100%\" height=\"300\" src=\"\/\/jsfiddle.net\/miftahfs\/Lj1wg8ym\/1\/embedded\/result\/\" allowfullscreen=\"allowfullscreen\" allowpaymentrequest frameborder=\"0\"><\/iframe><\/p>\n<p>Untuk skrip kodenya kalian bisa lihat seperti yang ada dibawah ini:<\/p>\n<pre class=\"lang:default decode:true \" >&lt;div class=\"bg-image\"&gt;&lt;\/div&gt;\r\n\r\n&lt;div class=\"bg-text\"&gt;\r\n  &lt;h2&gt;Blurred Background&lt;\/h2&gt;\r\n  &lt;h1 style=\"font-size:50px\"&gt;I am John Doe&lt;\/h1&gt;\r\n  &lt;p&gt;And I'm a Photographer&lt;\/p&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>kalian bisa menyisipkan potongan skrip diatas pada bagian tag html body, lalu dilanjutkan dengan skrip untuk bagian cssnya, sebagai berikut:<\/p>\n<pre class=\"lang:default decode:true \" >body, html {\r\n  height: 100%;\r\n  margin: 0;\r\n  font-family: Arial, Helvetica, sans-serif;\r\n}\r\n\r\n* {\r\n  box-sizing: border-box;\r\n}\r\n\r\n.bg-image {\r\n  \/* The image used *\/\r\n  background-image: url(\"https:\/\/source.unsplash.com\/random\");\r\n  \r\n  \/* Add the blur effect *\/\r\n  filter: blur(8px);\r\n  -webkit-filter: blur(8px);\r\n  \r\n  \/* Full height *\/\r\n  height: 100%; \r\n  \r\n  \/* Center and scale the image nicely *\/\r\n  background-position: center;\r\n  background-repeat: no-repeat;\r\n  background-size: cover;\r\n}\r\n\r\n\/* Position text in the middle of the page\/image *\/\r\n.bg-text {\r\n  background-color: rgb(0,0,0); \/* Fallback color *\/\r\n  background-color: rgba(0,0,0, 0.4); \/* Black w\/opacity\/see-through *\/\r\n  color: white;\r\n  font-weight: bold;\r\n  border: 3px solid #f1f1f1;\r\n  position: absolute;\r\n  top: 50%;\r\n  left: 50%;\r\n  transform: translate(-50%, -50%);\r\n  z-index: 2;\r\n  width: 80%;\r\n  padding: 20px;\r\n  text-align: center;\r\n}<\/pre>\n<p>teknik efek blur ini hanya menggunakan CSS saja, tentunya bagi yang baru mempelajari CSS tidak akan terlalu mengalami kendala.<\/p>\n<p>Terima kasih semoga bermanfaat, untuk tutorial yang singkat ini. Sampai berjumpa kembali pada artikel berikutnya.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blurry Background Image, pada artikel kali ini disini kita akan mencoba bagaimana membuat latar (background) pada halaman web dengan memberikan efek blur. Pastinya yang diperlukan adalah CSS.<\/p>\n","protected":false},"author":1,"featured_media":1104,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[482,483,8,484],"class_list":["post-1103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","tag-background-image","tag-blur","tag-css","tag-efek"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Blurry Background Image - YELLOWWEB.ID<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Blurry Background Image - YELLOWWEB.ID\" \/>\n<meta property=\"og:description\" content=\"Blurry Background Image, pada artikel kali ini disini kita akan mencoba bagaimana membuat latar (background) pada halaman web dengan memberikan efek blur. Pastinya yang diperlukan adalah CSS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/\" \/>\n<meta property=\"og:site_name\" content=\"YELLOWWEB.ID\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-01T03:13:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg?fit=1200%2C630&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"yellowweb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"yellowweb\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/\"},\"author\":{\"name\":\"yellowweb\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"headline\":\"Blurry Background Image\",\"datePublished\":\"2019-01-01T03:13:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/\"},\"wordCount\":100,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/blurry.jpg\",\"keywords\":[\"background image\",\"blur\",\"css\",\"efek\"],\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/\",\"name\":\"Blurry Background Image - YELLOWWEB.ID\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/blurry.jpg\",\"datePublished\":\"2019-01-01T03:13:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/blurry.jpg\",\"contentUrl\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/blurry.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Blurry Background Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/blurry-background-image\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blurry Background Image\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/\",\"name\":\"YELLOWWEB.ID\",\"description\":\"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/#\\\/schema\\\/person\\\/75188044e080844724e381ab6a5b9829\",\"name\":\"yellowweb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g\",\"caption\":\"yellowweb\"},\"sameAs\":[\"https:\\\/\\\/www.yellowweb.id\"],\"url\":\"https:\\\/\\\/www.yellowweb.id\\\/blog\\\/author\\\/yellowweb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Blurry Background Image - YELLOWWEB.ID","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/","og_locale":"en_GB","og_type":"article","og_title":"Blurry Background Image - YELLOWWEB.ID","og_description":"Blurry Background Image, pada artikel kali ini disini kita akan mencoba bagaimana membuat latar (background) pada halaman web dengan memberikan efek blur. Pastinya yang diperlukan adalah CSS.","og_url":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/","og_site_name":"YELLOWWEB.ID","article_published_time":"2019-01-01T03:13:07+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/i0.wp.com\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg?fit=1200%2C630&ssl=1","type":"image\/jpeg"}],"author":"yellowweb","twitter_card":"summary_large_image","twitter_misc":{"Written by":"yellowweb","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#article","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/"},"author":{"name":"yellowweb","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"headline":"Blurry Background Image","datePublished":"2019-01-01T03:13:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/"},"wordCount":100,"commentCount":0,"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg","keywords":["background image","blur","css","efek"],"articleSection":["CSS"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/","url":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/","name":"Blurry Background Image - YELLOWWEB.ID","isPartOf":{"@id":"https:\/\/www.yellowweb.id\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#primaryimage"},"image":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#primaryimage"},"thumbnailUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg","datePublished":"2019-01-01T03:13:07+00:00","author":{"@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829"},"breadcrumb":{"@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#primaryimage","url":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg","contentUrl":"https:\/\/www.yellowweb.id\/blog\/wp-content\/uploads\/2019\/01\/blurry.jpg","width":1200,"height":630,"caption":"Blurry Background Image"},{"@type":"BreadcrumbList","@id":"https:\/\/www.yellowweb.id\/blog\/blurry-background-image\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.yellowweb.id\/blog\/"},{"@type":"ListItem","position":2,"name":"Blurry Background Image"}]},{"@type":"WebSite","@id":"https:\/\/www.yellowweb.id\/blog\/#website","url":"https:\/\/www.yellowweb.id\/blog\/","name":"YELLOWWEB.ID","description":"Kursus Web Design | Kursus Web Programming | Mobile Web Apps | Digital Marketing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.yellowweb.id\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.yellowweb.id\/blog\/#\/schema\/person\/75188044e080844724e381ab6a5b9829","name":"yellowweb","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5afd1bfac26e9377e8f5e36afb624cf3690dd31cb07c3961dfbc736b9ff1912f?s=96&d=mm&r=g","caption":"yellowweb"},"sameAs":["https:\/\/www.yellowweb.id"],"url":"https:\/\/www.yellowweb.id\/blog\/author\/yellowweb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":1,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":1105,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/posts\/1103\/revisions\/1105"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media\/1104"}],"wp:attachment":[{"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yellowweb.id\/blog\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}