vue-tilt.js
vue-tilt.js copied to clipboard
bug if set custom mouse-event-element
trafficstars
this default solution working
and if change custom id don't working:
Solution around:
bind id param to component
<component :id="'article_last'" />
in component:
<picture v-tilt="{'mouse-event-element': '#'+ id}">
<img :src="img" alt="">
</picture>
Hi @reslear, thanks for report.
Sorry, I can not reproduce this. In my test sandbox it works fine.
Am I missing something?
Maybe you can try to build the ID as computed-property. This should prevent loading-errors between template and data-loading which are sometimes thrown by vue.
computed: {
unicId: () => `article_${Date.now()}`
}
Can you confirm it will working with computed or I am missing something? Thanks.