Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
How to make canvas gradient as a button background on hover

I have an <a> button,

a {
position: relative;
display: inline-block;
color: #111;
padding: 10px 20px;
border-radius: 10px;
background: #fff;
margin-top: 10px;
}

and there is a cool gradient as a background on a website https://sealzi.com/ (it's made with <canvas> element)

How can I make a gradient (like on the website) as a background of my button on hover?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You can try with linear-gradient with some angle:

a {
  position: relative;
  display: inline-block;
  color: #111;
  padding: 10px 20px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  margin-top: 10px;
}

a:hover {
  color: whitesmoke;
  background: linear-gradient(123deg, rgba(253,0,243,1) 0%, rgba(173,0,255,1) 20%, rgba(20,173,227,1) 80%, rgba(79,206,213,1) 100%);
}
<a href="#">Link</a>

about 4 years ago · Juan Pablo Isaza Report

0

You just need to add a:hover and write background you like. For example;

a:hover{
    background-image: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
    }

Also you can change color of button text of your own choice.For more details please do check w3schools.Hope this will be helpful.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!