Notice: Follow to get latest blog post updates Click me

How to Create Gradient Color Code Generator Tool on Blogger ?

Md. Anwarul Islam

Gradient color generator tools are commonly used for various design purposes, such as to create interesting color schemes, backgrounds, or visual elements. Here are some of the reasons why people use gradient color generators:


1. Visual Applications: Gradients give dimension and visual intrigue to designs. These seamless color transitions give a more beautiful and dramatic image.

Gradient Color Code Generator Tool


2. Customization: Gradient color generators allow designers automatically produce complimentary, similar, or single-color gradients. These tools provide complementary colors and an ordered design.


3. Efficiency: Instead of manually choosing and adjusting colors, gradient generators provide a quick and effective way to test different gradients. Designers can easily demonstrate different combinations, save time, and repeat until the desired effect is achieved.


4. Accessibility: Gradients may improve design accessibility. Use gradient color generators to convert colors that meet feature availability guidelines. For clarity, these tools often allow users to adjust color brightness and contrast.


5. Branding and Customization: Gradient generators allow designers to customize and microsize gradients to fit a specific brand or design concept. They can adjust the direction, angle, intensity, and colors of the gradient, which gives them more control over their final result.


The gradient color generator saves designers time and improves design quality by making vibrant, visually appealing color gradations easy to create. Gradient generators help designers experiment with different styles by providing color palettes and templates. This flexibility lets them quickly iterate and improve their designs until they get the right look. These tools' ability to export gradients in multiple file formats makes them more useful by letting designers use them in different design platforms. Gradient generators also let you change the gradient angle, opacity, and intensity. Designers can customize gradients and create unique effects that match their design vision. Other gradient generators offer real-time previews, letting designers see how the gradient will look in different settings before finalizing their design.

 

So begin,

How to Add the Magic of the Gradient Color Generator Tool to Blogger.com

At first, go to blogger.com, then login.

Then go to Blogger Pages.

Following page creation,

Select a page name or gradient color generator.

Now Page in two options

    1.HTML View 

    2.Compose View

Your Need HTML View

Then Copy the entire code and paste it on the HTML Views page.

Demo

<style type="text/css">    
  /*    
  -----------------------------------------------------------------------------------    
 https://anwarulblog.blogspot.com/
  ----------------------------------------------------------------------------------- */    
  body {  
      background: linear-gradient(to right, rgb(177, 56, 168), rgb(250, 116, 5));  
 }  
 .h10 {  
   background-color: #192B3A;  
   border-left: 12px solid #00FF0D;  
   border-right: 12px solid #00FF0D;  
   border-radius: 50px 117px 50px 117px;  
   color: #fdfdfd;  
   padding: 8px;  
   font-size: 22px;  
   text-align: center;  
 }  
 .h11 {  
      font-family: "Kanit", sans-serif;  
      color: black;  
 }  
  
 .subtitle {  
      letter-spacing: 0.2em;  
 }  
 .color1,  
 .color2 {  
      width: 3em;  
      height: 3em;  
      cursor: pointer;  
 }  
 .current-bg {  
      font-family: "Source Code Pro", monospace;  
      color: white;  
 }  
 .copy-property {  
      color: black;  
      cursor: grab;  
 }  
 .copy-property:active {  
      cursor: grabbing;  
 }  
 .random-btn {  
      color: black;  
      border-radius: 1rem;  
      transition: all 0.3s ease-in-out;  
 }  
 .random-btn:hover {  
      background: steelblue;  
      border: 1px solid steelblue;  
      color: white;  
      transform: scale(1.1);  
 }  
 .adspacebytechnicalarp {  
   padding: 2em;  
   box-shadow: 0 5px 15px rgba(0,0,0,.16);  
   border-radius: 5px;  
   margin-top: 1em;  
   background: #fff;  
   text-align: left;  
 }  
  </style>

<center>  
  <!--main section-->  
 <section class="mt-3" id="main">  
      <div class="container mainbox">  
           <div class="row">  
                <div class="col text-center">  
                     <h10 class="title text-uppercase font-weight-bold">  
                          Gradient Color Code Generator  
                     </h10>  
                     <div class="adspacebytechnicalarp container">  
         Place you Ad Code 1     
            </div>  
         <br />  
                     <input class="color1 my-4 mr-4" name="color1" type="color" value="#B138A8" />  
                     <input class="color2" name="color2" type="color" value="#FA7405" />  
                     <h4 class="subtitle text-uppercase font-weight-bold">  
                          Current CSS Background  
                     </h4>  
                     <h5 class="current-bg font-weight-bold my-4"></h5>  
                     <p class="copy-property lead font-italic">Click here to copy!</p>  
             
         <br />  
                     <button class="random-btn btn btn-light btn-lg mt-3 p-3">  
                          Generate random  
                     </button>
                  
          <div class="adspacebytechnicalarp container">  
         Place you Ad Code 2     
            </div>                  
                  
                </div>  
           </div>  
      </div>  
 </section>  
 <!--end of main section-->   
 </center>  
  <script language="Javascript">    
 const htmlBody = document.querySelector(".mainbox");  
 const color1 = document.querySelector(".color1");  
 const color2 = document.querySelector(".color2");  
 const currentSelection = document.querySelector(".current-bg");  
 const copyProperty = document.querySelector(".copy-property");  
 const randomButton = document.querySelector(".random-btn");  
 function setGradient() {  
      htmlBody.style.background = `linear-gradient(to right, ${color1.value}, ${color2.value})`;  
      currentSelection.textContent = `${htmlBody.style.background};`;  
 }  
 function generateRandom() {  
      const randomColor1 = Math.random().toString(16).slice(2, 8).toUpperCase();  
      const randomColor2 = Math.random().toString(16).slice(2, 8).toUpperCase();  
      color1.value = `#${randomColor1}`;  
      color2.value = `#${randomColor2}`;  
      setGradient();  
 }  
 function copyText() {  
      const text = currentSelection.innerText;  
      let temp_element = document.createElement("textarea");  
      document.body.appendChild(temp_element);  
      temp_element.value = text;  
      temp_element.select();  
      document.execCommand("copy");  
      document.body.removeChild(temp_element);  
 }  
 window.addEventListener("load", setGradient);  
 color1.addEventListener("input", setGradient);  
 color2.addEventListener("input", setGradient);  
 copyProperty.addEventListener("click", copyText);  
 randomButton.addEventListener("click", generateRandom);   
  </script>
  
Now Save Or Publish Your Page and Result Your Working.....

Post a Comment

If you benefited from reading the post, don't forget to leave a comment!
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oh !
There is some problem with your internet connection. Please connect to the internet and start browsing again.