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

210
Views
How smoothly break CSS animation on hover with CSS or JS?
  1. Can I smoothly break CSS-animation on hover with CSS or JS?
  2. Why transition don't work after CSS-animation?

Example:

.button {
  animation: resizing 2000ms linear infinite alternate;
  transition: transform 200ms linear; // don't work after animation
}

@media (hover: hover) {
  .button:hover {
    animation: none;
    transform: scale(1.1);
  }
}

@keyframes resizing {
  100% {
    transform: scale(2);
  }
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Please try to rewrite this like below. I hope It may works

.button {
  animation: resizing 2000ms linear infinite alternate;
  transition: transform 200ms linear; 
}

.button:hover {
  animation: none;
  transform: scale(1.1);
}

@keyframes resizing {
  100% {
    transform: scale(2);
  }
}
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!