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

117
Views
Scale on hover effect for a 'next-link' which contains a social platform .svg file

The code:

import InstagramIcon from './assets/IG.svg';

export const Footer = ({ footer }: FooterInterface) => {
return (
.....
  <Link href={`${footer?.instagram_link}`}>
    <a>
      <InstagramIcon />
    </a>
  </Link>
)}

This is what I want to obtain: enter image description here

The Instagram icon should scale up on hover.

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

0

This is the right class

<a className="transition duration-500 transform hover:scale-125">

'transform' class needs to be added, too.

about 4 years ago · Juan Pablo Isaza Report

0

<Link href={`${footer?.instagram_link}`} >
              <a className="hover:scale-150">
                <InstagramIcon />
              </a>
            </Link>
about 4 years ago · Juan Pablo Isaza Report

0

Combining https://tailwindcss.com/docs/hover-focus-and-other-states and https://tailwindcss.com/docs/scale you would want to add hover:scale-150 as a class to your A-Tag (you can use other scale sizes like scale-110 or scale-120 too):

import InstagramIcon from './assets/IG.svg';

export const Footer = ({ footer }: FooterInterface) => {
return (
.....
  <Link href={`${footer?.instagram_link}`}>
    <a className="hover:scale-150">
      <InstagramIcon />
    </a>
  </Link>
)}
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!