SimenB/stylint

View on GitHub
src/state/keyframesEnd.js

Summary

Maintainability
A
2 hrs
Test Coverage
'use strict'


/**
 * @description check for keyframes end
 * @returns {boolean} false if keyframes ending, true if not
 */
var keyframesEnd = function() {
    if ( !this.state.keyframes ) { return }

    if ( this.state.keyframes && this.state.context === 0 ) {
        this.state.keyframes = false
    }

    return this.state.keyframes
}

module.exports = keyframesEnd