{"id":602,"date":"2019-03-11T22:30:37","date_gmt":"2019-03-11T22:30:37","guid":{"rendered":"https:\/\/rockythemes.com\/nimva3\/docs\/?p=602"},"modified":"2019-03-11T22:37:06","modified_gmt":"2019-03-11T22:37:06","slug":"how-to-create-a-gradient-background","status":"publish","type":"post","link":"https:\/\/rockythemes.com\/nimva3\/docs\/how-to-create-a-gradient-background\/","title":{"rendered":"How to create a Gradient Background"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To create a <strong>Gradient Background<\/strong>, first edit your page using the <strong>Front End Editor<\/strong> and add a Row element on your page &#8211; or edit an existing Row element.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>Design Options<\/strong> tab, add a padding top and padding left. Try using percent values, to keep the same padding regardless of the device being used &#8211; mobile or desktop. E.g: 10% for top padding and 10% for bottom padding.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"582\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/padding-top.jpg\" alt=\"\" class=\"wp-image-603\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/padding-top.jpg 717w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/padding-top-300x244.jpg 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next navigate to the Color Overlay tab and check the <strong>Enable Gradient option.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the colors you want to use for the Gradient using the <strong>Color Overlay option<\/strong> and <strong>Color Overlay 2 option<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Gradient Angle to specify the angle of the gradient being applied.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"566\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient.jpg\" alt=\"\" class=\"wp-image-604\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient.jpg 715w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-300x237.jpg 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Play around with the colors and the gradient angle until you are satisfied with the result.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"449\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-2.jpg\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-2.jpg 960w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-2-300x140.jpg 300w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-2-768x359.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the example above the gradient is using the default 90 degrees angle with a blue color set for Color Overlay and a violet color set for Color Overlay 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Setting the gradient angle to 0 or 180 degrees will rotate the gradient with the corresponding degrees, as seen below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"384\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-3.jpg\" alt=\"\" class=\"wp-image-606\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-3.jpg 960w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-3-300x120.jpg 300w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-3-768x307.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><figcaption><strong>Gradient with 0 degrees<\/strong><br><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"382\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-4.jpg\" alt=\"\" class=\"wp-image-607\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-4.jpg 960w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-4-300x119.jpg 300w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-4-768x306.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><figcaption><strong>Gradient with 180 degrees<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can also add a background image in the Design Options tab and set the Gradient colors to be slightly transparent. This will create a nice mask with Gradient effect over our image.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"695\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-5.jpg\" alt=\"\" class=\"wp-image-610\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-5.jpg 712w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-5-300x293.jpg 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><figcaption><strong>Setting the background image<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After setting the background image, go back to the Color Overlay tab and use the Alpha controller to change the opacity of the Color Overlay and Color Overlay 2. The values we used are 75% for both color overlays.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"785\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-6.jpg\" alt=\"\" class=\"wp-image-611\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-6.jpg 709w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-6-271x300.jpg 271w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><figcaption><strong>Setting the Alpha Opacity of the Color Overlays<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The result is going to be the following:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"450\" src=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-7.jpg\" alt=\"\" class=\"wp-image-612\" srcset=\"https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-7.jpg 960w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-7-300x141.jpg 300w, https:\/\/rockythemes.com\/nimva3\/docs\/wp-content\/uploads\/2019\/03\/gradient-7-768x360.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Creating a Gradient Background using the Page Builder<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-page-builder"],"_links":{"self":[{"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":3,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":613,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/posts\/602\/revisions\/613"}],"wp:attachment":[{"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rockythemes.com\/nimva3\/docs\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}