How can react pause / resume animation?

AnimationPlayState: "paused" fails on ios, so I"m going to abandon it. I see a divine solution https://codepen.io/HaoyCn/pen., but I don"t know how to write it on react, ask for advice!

<div style={this.props.clickonthe ? {
    AnimationPlayState: "running",
    WebkitAnimationPlayState: "running",

} : {
        AnimationPlayState: "paused",
        WebkitAnimationPlayState: "paused",

    }}>
Mar.01,2021

do you know state of react? Just operate it.


constructor(props) {
  super(props);
  this.state = {
    isPlay: false
  };
}

/**
* click function
*/
playFn(){
    this.setState({
        !this.state.isPlay
    })
}

render(){
    return(
        <div onClick={this.playFn} className={this.state.isPlay?"animation":"noAnimation"}></div>
    )
}


finally press this, which is OK.
https://jsfiddle.net/shy2850/.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b314a0-e2d0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b314a0-e2d0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?