animation-playground/playground.js
// Filter by in and out but not modes animations
Filter by in and out but not modes animations
Filter by in and out but not modes animations
function populateAnimationsSelect() {
    Object.entries(animationProperties).forEach(([name, props]) => {
        const {groups = [], modeChange} = props
        if ((groups.includes('entrance') || groups.includes('exit')) && !modeChange) {
            const option = document.createElement('option')
            option.label = name
            option.value = name
            if (groups.includes('entrance')) {
                animationNameIn.appendChild(option)
            } else {
                animationNameOut.appendChild(option)
            }
        }
    })
}
function populateAnimationsSelect ( ) { Object . entries ( animationProperties ) . forEach ( ( [ name , props ] ) => { const { groups = [ ] , modeChange } = props if ( ( groups . includes ( 'entrance' ) || groups . includes ( 'exit' ) ) && ! modeChange ) { const option = document . createElement ( 'option' ) option . label = name option . value = name if ( groups . includes ( 'entrance' ) ) { animationNameIn . appendChild ( option ) } else { animationNameOut . appendChild ( option ) } } } ) }
Filter by in and out but not modes animations
Filter by in and out but not modes animations