public function setKeyframes($keyframes)
    {
        $this->keyframes = [];
        if (!is_array($keyframes)) {
            $keyframes = [$keyframes];
        }
        foreach ($keyframes as $keyframe) {
            $this->addKeyframe($keyframe);
        }

        return $this;
    }