This reverts commit 6cb3183c2e.
This commit is contained in:
patak 2023-01-13 10:07:10 +01:00
parent f78a7cd98d
commit 3367ba6e30

View file

@ -38,19 +38,6 @@ onMounted(() => {
</script> </script>
<template> <template>
<Transition> <img v-if="isLoaded || !placeholderSrc" v-bind="$attrs" :src="src" :srcset="srcset">
<img v-if="isLoaded || !placeholderSrc" v-bind="$attrs" :src="src" :srcset="srcset" absolute> <img v-else v-bind="$attrs" :src="placeholderSrc">
<img v-else v-bind="$attrs" :src="placeholderSrc" absolute>
</Transition>
<img v-bind="$attrs" :src="placeholderSrc" z-0 aria-hidden>
</template> </template>
<style>
.v-enter-active {
transition: opacity 0.3s ease;
}
.v-enter-from {
opacity: 0;
}
</style>