{"id":5828,"date":"2020-03-18T15:00:10","date_gmt":"2020-03-18T15:00:10","guid":{"rendered":"https:\/\/webdevtrick.com\/?p=5828"},"modified":"2020-03-18T15:00:10","modified_gmt":"2020-03-18T15:00:10","slug":"blend-modes-example","status":"publish","type":"post","link":"https:\/\/webdevtrick.com\/blend-modes-example\/","title":{"rendered":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode"},"content":{"rendered":"<p><strong>How we can experiment with all blend modes in an image by creating a proper program? Solution: See this Blend Modes Example Using GSAP, CSS Background-Blend-Mode.<\/strong><\/p>\n<p>Previously I have shared the <span><a href=\"https:\/\/webdevtrick.com\/css-blend-mode\/\" target=\"_blank\" rel=\"noopener noreferrer\">CSS Blend Modes<\/a><\/span> program, this is also similar to that but it is based on <strong>GSAP library<\/strong>. Basically,<b>\u00a0Blend modes<\/b> are a way to\u00a0<b>blend<\/b> pixels of two images with each other to get different <strong>types of effects<\/strong>. CSS has <strong>blend modes<\/strong> of command to create effects like graphic or editing software. What we can do in photoshop with <strong>blend modes<\/strong>, the same things can be happen using CSS.<\/p>\n<p>Today you will learn to create a program to test <strong>CSS Background-Blend-Mode<\/strong>. Basically, there are an image and two sections of <strong>blend mode<\/strong> commands. There are all blend modes commands: <strong>normal, multiply, screen, overlay, darken, lighten, color-dodge, difference, exclusion, hue, saturation, color, luminosity<\/strong>. There are two types of blend modes you can test normal <strong>image blend mode<\/strong> and <strong><span><a href=\"https:\/\/webdevtrick.com\/tag\/overlay\" target=\"_blank\" rel=\"noopener noreferrer\">overlay<\/a><\/span> blend mode<\/strong>.<\/p>\n<p>So, Today I am sharing <strong>Blend Modes Example<\/strong> Using <strong>GSAP<\/strong>. There I have used HTML to create the layout and pass values, CSS for styling, and GSAP library to functioning and apply the <strong>filters or blend modes<\/strong>. This is the complete program to <strong>test<\/strong> all the <strong>blend modes<\/strong> with two types of effect overlay and normal. You can use this program on your project to create <span><a href=\"https:\/\/webdevtrick.com\/css-filter-image-editor\/\" target=\"_blank\" rel=\"noopener noreferrer\">image filters<\/a><\/span>.<\/p>\n<p>If you are thinking now how this filter program actually is, then see the preview given below.<\/p>\n<h3>Preview Of CSS Background-Blend-Mode<\/h3>\n<p>See this video preview to getting an idea of how this program looks like.<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-5828-1\" width=\"640\" height=\"344\" loop autoplay preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/css-blend-modes.mp4?_=1\" \/><a href=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/css-blend-modes.mp4\">https:\/\/webdevtrick.com\/wp-content\/uploads\/css-blend-modes.mp4<\/a><\/video><\/div>\n<a class=\"maxbutton-2 maxbutton maxbutton-demo\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/webdevtrick.com\/demos\/blend-modes-example\/\"><span class='mb-text'>Live Demo<\/span><\/a>\n<p>Now you can see this program visually, also you can see it live by pressing the button given above. If you like this, then get the<strong> source code<\/strong> of its.<\/p>\n<p><span style=\"font-size: 14pt;\">You May Also Like:<\/span><\/p>\n<ul>\n \t<span><\/p>\n<li><a href=\"https:\/\/webdevtrick.com\/hex-to-rgb-and-hsl-converter\/\" target=\"_blank\" rel=\"noopener noreferrer\">HEX to RGB and HSL<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/card-flip-animation\/\" target=\"_blank\" rel=\"noopener noreferrer\">Card Flip Animation<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/flex-hover-slider\/\" target=\"_blank\" rel=\"noopener noreferrer\">Flex Hover Slider<\/a><\/li>\n<li><a href=\"https:\/\/webdevtrick.com\/css-animated-segmented-control\/\" target=\"_blank\" rel=\"noopener noreferrer\">Animated Segmented Control<\/a><\/li>\n<p><\/span>\n<\/ul>\n<h2>Blend Modes Example Using GSAP Source Code<\/h2>\n<p>Before <strong>sharing source code<\/strong>, let&#8217;s talk about it. First I have created the main div named &#8216;wrapper&#8217; and placed all the items inside it. Inside the main div, I have created an <span><a href=\"https:\/\/webdevtrick.com\/tag\/svg\" target=\"_blank\" rel=\"noopener noreferrer\"> SVG<\/a><\/span> filter element for overlay effect. After that, I have created two lists for image and <strong>overlay blend modes<\/strong>. In every list item, I have pass blend mode data using the HTML <strong>Data-*<\/strong> attribute.<\/p>\n<p>Now <strong>using CSS<\/strong> I have placed all the elements in the right place, as you can see in the preview. With CSS I gave basic values like size, position, margin, padding, etc to the elements. There I have used <span><a href=\"https:\/\/webdevtrick.com\/tag\/flex\" target=\"_blank\" rel=\"noopener noreferrer\">flex<\/a><\/span> display command to create a<strong> flexible layout<\/strong>. I used CSS <span class=\"lang:default decode:true crayon-inline \">background-blend-mode<\/span> command to <strong>apply the blend modes<\/strong>, later it values will handle by GSAP.<\/p>\n<p>GSAP handling here the <span><a href=\"https:\/\/webdevtrick.com\/tag\/3d\" target=\"_blank\" rel=\"noopener noreferrer\">3D<\/a><\/span> image move effect on hover and<strong> apply the blend modes<\/strong> on the action. There it fetched all the elements using <span class=\"lang:default decode:true crayon-inline \">document.querySelector<\/span> command.\u00a0 It changing the <strong>CSS values<\/strong> dynamically to change the effect. There I have done all the processes according to the library&#8217;s documentation. Left all other things you will understand after<strong> getting the codes<\/strong>, I can&#8217;t explain all in writing. For creating this program you have to create 3 files.<\/p>\n<p>First file for <strong>HTML<\/strong>, second for <strong>CSS<\/strong>, and third file for <strong>JavaScript<\/strong>. Follow the steps to creating this program without any error.<\/p>\n<p><span style=\"font-size: 14pt;\">index.html<\/span><\/p>\n<p>Create an HTML file named &#8216;<em><strong>index.html<\/strong><\/em>&#8216; and put these codes given below.<\/p>\n<pre class=\"height-set:true height:750 lang:xhtml decode:true \" title=\"index.html\">&lt;!DOCTYPE html&gt;\r\n&lt;!--Code By Webdevtrick ( https:\/\/webdevtrick.com )--&gt;\r\n&lt;html lang=\"en\" &gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"UTF-8\"&gt;\r\n  &lt;title&gt;Image Blend Modes | Webdevtrick.com&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"style.css\"&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;div class=\"wrapper\"&gt;\r\n  &lt;svg viewBox=\"0 0 180 100\"&gt;\r\n    &lt;filter id='noise' x='0%' y='0%' width='100%' height='100%'&gt;\r\n        &lt;feTurbulence type=\"fractalNoise\" baseFrequency=\"0\" result=\"noise\" numOctaves=\"3\" seed=\"10\"\/&gt;\r\n      &lt;feDisplacementMap in=\"SourceGraphic\" in2=\"noise\" scale=\"10\" xChannelSelector=\"R\" yChannelSelector=\"R\"&gt;&lt;\/feDisplacementMap&gt;  \r\n  &lt;\/filter&gt;    \r\n  &lt;\/svg&gt;\r\n  &lt;div class=\"split\"&gt;\r\n    &lt;div class=\"list-outer\"&gt;\r\n      &lt;ul id=\"imageList\"&gt;\r\n        &lt;li class=\"bold\"&gt;IMAGE BLEND&lt;\/li&gt;\r\n        &lt;li class=\"active\" data-mode=\"normal\"&gt;normal&lt;\/li&gt; \r\n        &lt;li data-mode=\"multiply\"&gt;multiply&lt;\/li&gt;\r\n        &lt;li data-mode=\"screen\"&gt;screen&lt;\/li&gt;\r\n        &lt;li data-mode=\"overlay\"&gt;overlay&lt;\/li&gt;\r\n        &lt;li data-mode=\"darken\"&gt;darken&lt;\/li&gt;\r\n        &lt;li data-mode=\"lighten\"&gt;lighten&lt;\/li&gt;\r\n        &lt;li data-mode=\"color-dodge\"&gt;color-dodge&lt;\/li&gt;\r\n        &lt;li data-mode=\"color-burn\"&gt;color-burn&lt;\/li&gt;\r\n        &lt;li data-mode=\"difference\"&gt;difference&lt;\/li&gt;\r\n        &lt;li data-mode=\"exclusion\"&gt;exclusion&lt;\/li&gt;\r\n        &lt;li data-mode=\"hue\"&gt;hue&lt;\/li&gt;\r\n        &lt;li data-mode=\"saturation\"&gt;saturation&lt;\/li&gt;\r\n        &lt;li data-mode=\"color\"&gt;color&lt;\/li&gt;\r\n        &lt;li data-mode=\"luminosity\"&gt;luminosity&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n      &lt;ul id=\"overlayList\"&gt;\r\n        &lt;li class=\"bold\"&gt;OVERLAY BLEND&lt;\/li&gt;\r\n        &lt;li data-mode=\"normal\"&gt;normal&lt;\/li&gt; \r\n        &lt;li class=\"active\" data-mode=\"multiply\"&gt;multiply&lt;\/li&gt;\r\n        &lt;li data-mode=\"screen\"&gt;screen&lt;\/li&gt;\r\n        &lt;li data-mode=\"overlay\"&gt;overlay&lt;\/li&gt;\r\n        &lt;li data-mode=\"darken\"&gt;darken&lt;\/li&gt;\r\n        &lt;li data-mode=\"lighten\"&gt;lighten&lt;\/li&gt;\r\n        &lt;li data-mode=\"color-dodge\"&gt;color-dodge&lt;\/li&gt;\r\n        &lt;li data-mode=\"color-burn\"&gt;color-burn&lt;\/li&gt;\r\n        &lt;li data-mode=\"difference\"&gt;difference&lt;\/li&gt;\r\n        &lt;li data-mode=\"exclusion\"&gt;exclusion&lt;\/li&gt;\r\n        &lt;li data-mode=\"hue\"&gt;hue&lt;\/li&gt;\r\n        &lt;li data-mode=\"saturation\"&gt;saturation&lt;\/li&gt;\r\n        &lt;li data-mode=\"color\"&gt;color&lt;\/li&gt;\r\n        &lt;li data-mode=\"luminosity\"&gt;luminosity&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div id=\"container\"&gt;\r\n      &lt;div id=\"inner\"&gt;\r\n        &lt;div id=\"mask\" class=\"turb-mask\"&gt;&lt;\/div&gt;\r\n        &lt;img id=\"image\" src=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/skynature.jpg\"&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/3.1.1\/gsap.min.js'&gt;&lt;\/script&gt;\r\n&lt;script  src=\"function.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><span style=\"font-size: 14pt;\">style.css<\/span><\/p>\n<p>Now create a CSS file named &#8216;<em><strong>style.css<\/strong><\/em>&#8216; and put these codes given below.<\/p>\n<pre class=\"height-set:true height:750 lang:css decode:true\" title=\"style.css\">\/* Code By Webdevtrick ( https:\/\/webdevtrick.com ) *\/\r\n* {\r\n  box-sizing: border-box;\r\n}\r\n\r\nhtml {\r\n  font-size: 17px;\r\n}\r\n\r\nbody {\r\n  padding: 0;\r\n  margin: 0;\r\n  font-family: sans-serif;\r\n  font-size: 1rem;\r\n}\r\n\r\n.list-outer {\r\n  display: flex;\r\n  justify-content: space-between;\r\n  padding: 2rem;\r\n}\r\n.list-outer &gt; ul:first-child {\r\n  margin-right: 5rem;\r\n}\r\n@media screen and (max-width: 50rem) {\r\n  .list-outer {\r\n    padding-top: 4rem;\r\n  }\r\n}\r\n\r\nul {\r\n  list-style: none;\r\n  line-height: 1.5;\r\n  padding: 0;\r\n  margin: 0;\r\n}\r\nul li {\r\n  cursor: pointer;\r\n  font-size: 0.8em;\r\n}\r\n\r\n.active {\r\n  font-weight: bold;\r\n}\r\n\r\n.bold {\r\n  font-weight: bold;\r\n  letter-spacing: 0.05em;\r\n  margin-bottom: 0.05em;\r\n  font-size: 1rem;\r\n}\r\n\r\nsvg {\r\n  height: 0;\r\n  width: 0;\r\n  visibility: hidden;\r\n}\r\n\r\n.hover {\r\n  position: fixed;\r\n  top: 1rem;\r\n  right: 1rem;\r\n  margin: 0;\r\n  font-weight: bold;\r\n  font-style: italic;\r\n  letter-spacing: 0.05em;\r\n}\r\n\r\n.wrapper {\r\n  max-width: 1600px;\r\n  min-height: 100vh;\r\n  margin-left: auto;\r\n  margin-right: auto;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n}\r\n\r\n.split {\r\n  width: 100%;\r\n  display: flex;\r\n  justify-content: space-around;\r\n  align-items: center;\r\n  flex-direction: column;\r\n}\r\n@media screen and (min-width: 50rem) {\r\n  .split {\r\n    flex-direction: row;\r\n  }\r\n}\r\n\r\n#container {\r\n  perspective: 1.5rem;\r\n}\r\n\r\n#inner {\r\n  position: relative;\r\n  overflow: hidden;\r\n  box-shadow: 2px 2px 50px rgba(0, 0, 0, 0.4);\r\n  transition: transform 0.5s;\r\n  display: flex;\r\n}\r\n#inner img {\r\n  mix-blend-mode: normal;\r\n  width: 100%;\r\n  max-width: 500px;\r\n  height: auto;\r\n}\r\n\r\n.turb-mask {\r\n  position: absolute;\r\n  width: 110%;\r\n  height: 110%;\r\n  left: -5%;\r\n  top: -5%;\r\n  opacity: 0.5;\r\n  pointer-events: none;\r\n  background-color: rgba(255, 0, 0, 0.65);\r\n  background-image: url(https:\/\/webdevtrick.com\/wp-content\/uploads\/skynature.jpg);\r\n  background-size: cover;\r\n  background-position: center;\r\n  background-blend-mode: multiply;\r\n  z-index: 0;\r\n  -webkit-filter: url(#noise);\r\n  filter: url(#noise);\r\n}<\/pre>\n<p><span style=\"font-size: 14pt;\">function.js<\/span><\/p>\n<p>The final step, create a JavaScript file named &#8216;<em><strong>function.js<\/strong><\/em>&#8216; and put the codes.<\/p>\n<pre class=\"height-set:true height:750 lang:js decode:true \" title=\"function.js\">\/\/ Code By Webdevtrick ( https:\/\/webdevtrick.com )\r\nconst container = document.getElementById('container'),\r\nmask = document.getElementById('mask'),\r\nturbVal = { val: 0.0 },\r\noctavesVal = { val: 0 },\r\nturb = document.querySelector('#noise feTurbulence'),\r\n\r\nturbTl = gsap.timeline({\r\n  paused: true,\r\n  repeat: -1,\r\n  yoyo: true,\r\n  onUpdate: function () {\r\n    turb.setAttribute('baseFrequency', turbVal.val);\r\n    \/\/ turb.setAttribute('numOctaves', octavesVal.val);\r\n  } }),\r\n\r\nmaskTl = gsap.timeline({ paused: true });\r\n\r\nturbTl.to(turbVal, 12, { ease: Sine.easeInOut, val: 0.03 });\r\n\r\nmaskTl.to(mask, 0.5, { ease: Sine.ease, opacity: 0.9 });\r\n\r\ncontainer.addEventListener('mouseenter', e =&gt; {\r\n  turbTl.restart();\r\n  maskTl.restart();\r\n});\r\n\r\ncontainer.addEventListener('mouseleave', e =&gt; {\r\n  turbTl.delay(0.5).reverse(1);\r\n  maskTl.reverse(1);\r\n});\r\n\r\nconst imageListItem = document.querySelectorAll('#imageList li'),\r\noverlayListItem = document.querySelectorAll('#overlayList li'),\r\nimage = document.getElementById('image');\r\n\r\nfor (const item of imageListItem) {\r\n  item.addEventListener('click', function (e) {\r\n    imageListItem.forEach(node =&gt; {\r\n      node.classList.remove('active');\r\n    });\r\n    e.currentTarget.classList.add('active');\r\n    image.style.mixBlendMode = this.getAttribute('data-mode');\r\n  });\r\n}\r\n\r\nfor (const item of overlayListItem) {\r\n  item.addEventListener('click', function (e) {\r\n    overlayListItem.forEach(node =&gt; {\r\n      node.classList.remove('active');\r\n    });\r\n    e.currentTarget.classList.add('active');\r\n    mask.style.backgroundBlendMode = this.getAttribute('data-mode');\r\n  });\r\n}\r\n\r\n\r\n(function () {\r\n  \/\/ Init\r\n  var container = document.getElementById(\"container\"),\r\n  inner = document.getElementById(\"inner\");\r\n\r\n  \/\/ Mouse\r\n  var mouse = {\r\n    _x: 0,\r\n    _y: 0,\r\n    x: 0,\r\n    y: 0,\r\n    updatePosition: function (event) {\r\n      var e = event || window.event;\r\n      this.x = e.clientX - this._x;\r\n      this.y = (e.clientY - this._y) * -1;\r\n    },\r\n    setOrigin: function (e) {\r\n      this._x = e.offsetLeft + Math.floor(e.offsetWidth \/ 2);\r\n      this._y = e.offsetTop + Math.floor(e.offsetHeight \/ 2);\r\n    },\r\n    show: function () {\r\n      return \"(\" + this.x + \", \" + this.y + \")\";\r\n    } };\r\n\r\n\r\n  mouse.setOrigin(container);\r\n\r\n  var counter = 0;\r\n  var updateRate = 10;\r\n  var isTimeToUpdate = function () {\r\n    return counter++ % updateRate === 0;\r\n  };\r\n\r\n  var onMouseEnterHandler = function (event) {\r\n    update(event);\r\n  };\r\n\r\n  var onMouseLeaveHandler = function () {\r\n    inner.style = \"\";\r\n  };\r\n\r\n  var onMouseMoveHandler = function (event) {\r\n    if (isTimeToUpdate()) {\r\n      update(event);\r\n    }\r\n  };\r\n\r\n  var update = function (event) {\r\n    mouse.updatePosition(event);\r\n    updateTransformStyle(\r\n    (mouse.y \/ inner.offsetHeight \/ 2).toFixed(2),\r\n    (mouse.x \/ inner.offsetWidth \/ 2).toFixed(2));\r\n\r\n  };\r\n\r\n  var updateTransformStyle = function (x, y) {\r\n    var style = \"rotateX(\" + x + \"deg) rotateY(\" + y + \"deg)\";\r\n    inner.style.transform = style;\r\n    inner.style.webkitTransform = style;\r\n    inner.style.mozTransform = style;\r\n    inner.style.msTransform = style;\r\n    inner.style.oTransform = style;\r\n  };\r\n\r\n  container.onmouseenter = onMouseEnterHandler;\r\n  container.onmouseleave = onMouseLeaveHandler;\r\n  container.onmousemove = onMouseMoveHandler;\r\n})();\r\n\r\n<\/pre>\n<p>That&#8217;s It. Now you have successfully created<strong> Blend Modes Example<\/strong> Using <strong>GSAP<\/strong>, CSS <strong>Background-Blend-Mode<\/strong> Program. If you have any doubt or question comment down below.<\/p>\n<p><span style=\"font-family: impact, sans-serif;\">Thanks For Visiting, Keep Visiting.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How we can experiment with all blend modes in an image by creating a proper program? Solution: See this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Previously I have shared the CSS Blend Modes program, this is also similar to that but it is based on GSAP library. Basically,\u00a0Blend modes are a way to\u00a0blend pixels [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5829,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[43,42,46],"tags":[247,249,248,316,490,219,67],"class_list":["post-5828","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-html","category-javascript","tag-blend","tag-blend-mode","tag-blending-modes","tag-css-filter","tag-gsap","tag-image","tag-source-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Blend Modes Example Using GSAP | CSS Background-Blend-Mode<\/title>\n<meta name=\"description\" content=\"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webdevtrick.com\/blend-modes-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Blend Modes Example Using GSAP | CSS Background-Blend-Mode\" \/>\n<meta property=\"og:description\" content=\"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdevtrick.com\/blend-modes-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Dev Trick\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webdevtrick\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-18T15:00:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg\" \/>\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=\"shaan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"shaan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/\"},\"author\":{\"name\":\"shaan\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\"},\"headline\":\"Blend Modes Example Using GSAP | CSS Background-Blend-Mode\",\"datePublished\":\"2020-03-18T15:00:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/\"},\"wordCount\":662,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg\",\"keywords\":[\"blend\",\"blend mode\",\"blending modes\",\"css filter\",\"gsap\",\"image\",\"source code\"],\"articleSection\":[\"CSS\",\"HTML\",\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webdevtrick.com\/blend-modes-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/\",\"url\":\"https:\/\/webdevtrick.com\/blend-modes-example\/\",\"name\":\"Blend Modes Example Using GSAP | CSS Background-Blend-Mode\",\"isPartOf\":{\"@id\":\"https:\/\/webdevtrick.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg\",\"datePublished\":\"2020-03-18T15:00:10+00:00\",\"description\":\"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.\",\"breadcrumb\":{\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webdevtrick.com\/blend-modes-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg\",\"width\":1200,\"height\":630,\"caption\":\"blend modes example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webdevtrick.com\/blend-modes-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webdevtrick.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blend Modes Example Using GSAP | CSS Background-Blend-Mode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webdevtrick.com\/#website\",\"url\":\"https:\/\/webdevtrick.com\/\",\"name\":\"Web Dev Trick\",\"description\":\"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial\",\"publisher\":{\"@id\":\"https:\/\/webdevtrick.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webdevtrick.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webdevtrick.com\/#organization\",\"name\":\"Web Dev Trick\",\"url\":\"https:\/\/webdevtrick.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"contentUrl\":\"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png\",\"width\":512,\"height\":512,\"caption\":\"Web Dev Trick\"},\"image\":{\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webdevtrick\/\",\"https:\/\/pinterest.com\/webdevtrick\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3\",\"name\":\"shaan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g\",\"caption\":\"shaan\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode","description":"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.","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:\/\/webdevtrick.com\/blend-modes-example\/","og_locale":"en_US","og_type":"article","og_title":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode","og_description":"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.","og_url":"https:\/\/webdevtrick.com\/blend-modes-example\/","og_site_name":"Web Dev Trick","article_publisher":"https:\/\/www.facebook.com\/webdevtrick\/","article_published_time":"2020-03-18T15:00:10+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg","type":"image\/jpeg"}],"author":"shaan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"shaan","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#article","isPartOf":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/"},"author":{"name":"shaan","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3"},"headline":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode","datePublished":"2020-03-18T15:00:10+00:00","mainEntityOfPage":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/"},"wordCount":662,"commentCount":0,"publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"image":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg","keywords":["blend","blend mode","blending modes","css filter","gsap","image","source code"],"articleSection":["CSS","HTML","JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdevtrick.com\/blend-modes-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdevtrick.com\/blend-modes-example\/","url":"https:\/\/webdevtrick.com\/blend-modes-example\/","name":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode","isPartOf":{"@id":"https:\/\/webdevtrick.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage"},"image":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage"},"thumbnailUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg","datePublished":"2020-03-18T15:00:10+00:00","description":"Want to create a program for test all blend mode? Checkout this Blend Modes Example Using GSAP, CSS Background-Blend-Mode. Get demo and source code now.","breadcrumb":{"@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdevtrick.com\/blend-modes-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#primaryimage","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/blend-mode-examples.jpg","width":1200,"height":630,"caption":"blend modes example"},{"@type":"BreadcrumbList","@id":"https:\/\/webdevtrick.com\/blend-modes-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdevtrick.com\/"},{"@type":"ListItem","position":2,"name":"Blend Modes Example Using GSAP | CSS Background-Blend-Mode"}]},{"@type":"WebSite","@id":"https:\/\/webdevtrick.com\/#website","url":"https:\/\/webdevtrick.com\/","name":"Web Dev Trick","description":"HTML5, CSS3, JS, PHP Source Code &amp; Tutorial","publisher":{"@id":"https:\/\/webdevtrick.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdevtrick.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdevtrick.com\/#organization","name":"Web Dev Trick","url":"https:\/\/webdevtrick.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/","url":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","contentUrl":"https:\/\/webdevtrick.com\/wp-content\/uploads\/logo-fb-1.png","width":512,"height":512,"caption":"Web Dev Trick"},"image":{"@id":"https:\/\/webdevtrick.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webdevtrick\/","https:\/\/pinterest.com\/webdevtrick\/"]},{"@type":"Person","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/c79bae83976f92fe305c22342b2a0be3","name":"shaan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdevtrick.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/60aa6ee93605bda7bc598d11dd748709a69bdb55a080124cc382114d8d7e7665?s=96&d=mm&r=g","caption":"shaan"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/comments?post=5828"}],"version-history":[{"count":4,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5828\/revisions"}],"predecessor-version":[{"id":5834,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/posts\/5828\/revisions\/5834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media\/5829"}],"wp:attachment":[{"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/media?parent=5828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/categories?post=5828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdevtrick.com\/wp-json\/wp\/v2\/tags?post=5828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}