Trying to access a scoped "keyframes" named move-left in JavaScript. How can I do this while keeping it scoped? Note that vue-loader will add a random hash to move-left, such as move-left-xxxxxxxxx.
<template>
<div :style="{animation: animation}"></div>
</template>
<script>
this.animation = "move-left linear 10s" /// how to access move-left here
</script>
<style scoped>
@keyframes move-left {
from {
transform: translateX(100vw);
}
to{
transform: translateX(-150vw);
}
}
</style>