Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder image is not hidden after main image loads #80

Closed
milos5593 opened this issue Nov 11, 2020 · 3 comments
Closed

Placeholder image is not hidden after main image loads #80

milos5593 opened this issue Nov 11, 2020 · 3 comments

Comments

@milos5593
Copy link

Nuxt config:

export default {
    target: 'static',a
    buildModules: ['@nuxtjs/tailwindcss'],
    modules: ['@nuxt/image',],
    image: {
        providers: {
            cloudinary: {
                baseURL: 'https://res.cloudinary.com/milos5593/image/upload/',
            },
        },
    },
}

And then in the component:

<template>
    <header class="bg-black">
        <div class="p-4 max-w-screen-xl">
            <!-- Logo -->
                <nuxt-link
                    class="font-bold text-lg text-white focus:outline-none focus:shadow-outline"
                    to="/"
                >
                <nuxt-image
                    class="w-56 h-auto"
                    fit="contain"
                    :placeholder="true"
                    :src="'cloudinary:/crossroads_logo.png'"
                    no-script
                />
            </nuxt-link>
        </div>
    </header>
</template>

<script>
export default {
    name: 'SiteHeader',
}
</script>
@farnabaz farnabaz mentioned this issue Nov 16, 2020
Closed
@ThomasFindlay
Copy link

Got the same issue today. Even though the full picture loaded, the blurred one was still in the background.

Copy link
Member

atinux commented Feb 6, 2021

Could you try with latest version please?

Copy link
Member

Closing this - follow #189.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants