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

389
Views
How exactly do we add a animated border of a div inside the div itself?

I am looking to display an image inside a div and when mouse hover over it the border should appear inside the div in some sort of animated manner. I have done it using animated svg and it works for large screen but have no idea of doing it for smaller screens. there must be a proper alternative to it!!

I have attempted to do it using svg lines.. for which i used four such lines and added animation on each line and triggered it while hover. What is the proper way please. Codesandbox link link of what i have done till now. I want similar effect for variable image/div sizes.

about 4 years ago · Juan Pablo Isaza
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!