Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
inputRange: [0, 0.5, 1],
outputRange: [cardRotates[index], 45, 0]
})
),
set(
cardTranslatesY[index],
interpolate(spring, {
inputRange: [0, 0.5, 1],
outputRange: [0, -CARD_HEIGHT * 1.5, 0],
extrapolate: Extrapolate.CLAMP
})
),
cond(and(greaterOrEq(spring, 0.5), shouldUpdateZIndexes), [
set(
cardZIndexes[index],
add(cardZIndexes[index], add(max(...cardZIndexes), 10))
),
set(shouldUpdateZIndexes, 0)
]),
cond(not(clockRunning(clock)), set(shouldUpdateZIndexes, 1))
])
)
inputRange: [0, 0.5, 1],
outputRange: [cardRotates[index], 45, 0]
})
),
set(
cardTranslatesY[index],
interpolate(spring, {
inputRange: [0, 0.5, 1],
outputRange: [0, -CARD_HEIGHT * 1.5, 0],
extrapolate: Extrapolate.CLAMP
})
),
cond(and(greaterOrEq(spring, 0.5), shouldUpdateZIndexes), [
set(
cardZIndexes[index],
add(cardZIndexes[index], add(max(...cardZIndexes), 10))
),
set(shouldUpdateZIndexes, 0)
]),
cond(not(clockRunning(clock)), set(shouldUpdateZIndexes, 1))
])
)