fix bugs and fix application speed
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
class="object-cover transition-opacity duration-1000 absolute inset-0 h-full w-full"
|
||||
sizes="100vw"
|
||||
:src="'/storage/' + slide.image.url"
|
||||
:loading="index === 0 ? 'eager' : 'lazy'"
|
||||
:class="{ 'opacity-1': currentIndex === index, 'opacity-0': currentIndex !== index }"
|
||||
/>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user