Currently, I am utilizing animate.css in my project. One of the components, a v-flex element, is structured as follows:
<v-flex md3 sm6 xs12 v-for="(d, index) in data" :key="organization.id"
class="animated fadeInLeft" :style="{ 'animation-delay': index/8 + 's'
}">
<v-card>
-----
</v-card>
</v-flex>
In this setup, the animated fadeInLeft
CSS classes are being applied to all cards by default. To create a delay effect on each card based on its position, I have implemented the use of animation-delay
, which works as intended except for Safari browser. For Safari compatibility, I need to include -webkit-animation-delay
. Though adding multiple styles in v-style and recalculating the value is an option, it does not produce aesthetically pleasing results. Are there any jQuery functions or SCSS mixins that can dynamically assign style values to elements without compromising on design integrity?