Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • I don't think so. I'm assuming this is the abrupt ending you don't want? codepen.io/mcoker/pen/vZBXgY Sounds like you want to trigger paused using the animationend event in the browser, which requires js. Commented Jun 1, 2017 at 14:11
  • @MichaelCoker This is exactly what I currently have. What would be the easiest and cleanest way to achieve my goal with js though?
    – dwycxt
    Commented Jun 1, 2017 at 14:15
  • 2
    jsfiddle.net/sSYYE/55. This is a slightly updated version from this answer stackoverflow.com/questions/7694323/…. Commented Jun 1, 2017 at 14:23
  • @WizardCoder Thats looking good! Does it require me switching my bars from ids to classes or is there another way?
    – dwycxt
    Commented Jun 1, 2017 at 14:26
  • jsfiddle.net/sSYYE/56 I have updated the fiddle to make it more relevant to your code. Commented Jun 1, 2017 at 14:29