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

140
Views
¿Cómo este svg puede detenerse y comenzar?

Estoy navegando por el sitio web de Google io 2022 y encontré un buen movimiento. En esta página, puedo detener/iniciar svg. ¿Alguien podría explicar cómo funciona?

https://io.google/2022/about/intl/ko/

ingrese la descripción de la imagen aquí

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

0

¿Quizás algo como esto? Pero no sé cómo hacer que funcione con .gif .

 /* Toggle Animations */ const start = document.getElementById('start'); start.addEventListener('click', () => { const animations = document.querySelectorAll('[data-animation'); animations.forEach(animation => { const running = animation.style.animationPlayState || 'running'; animation.style.animationPlayState = running === 'running' ? 'paused' : 'running'; }) });
 .btn { background-color: blue; border: 0; border-radius: 0.25rem; color: #FFF; display: inline-block; margin-block-end: 0.5rem; padding: 1rem; } .box { --bgc: red; --w: 150px; align-items: center; background-color: var(--bgc); color: #FFF; display: flex; height: var(--w); justify-content: center; margin-bottom: 1rem; width: var(--w); } .slide { --animdur: 3s; --animn: slide; } [data-animation] { animation: var(--animn, none) var(--animdur, 0s) var(--animtf, linear) var(--animdel, 0s) var(--animic, infinite) var(--animdir, alternate) var(--animfm, none) var(--animps, running); } @keyframes slide { from { margin-left: 0%; } to { margin-left: calc(100% - var(--w, 150px)); } }
 <button id="start" class="btn" type="button">Start/Stop</button> <div class="box slide" data-animation="stop"></div>

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!