All Projects → LuXDAmore → vue-fake3d-image-effect

LuXDAmore / vue-fake3d-image-effect

Licence: MIT license
✨ A fake 3D Image Effect with WebGL - w/ VueJS - SSR Compatible

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
SCSS
7915 projects
HTML
75241 projects
GLSL
2045 projects

Projects that are alternatives of or similar to vue-fake3d-image-effect

nuxt-seomatic-meta
A module for connecting Nuxt.js to the Craft CMS SEOmatic plugin via GraphQL. Nuxt-o-matic!
Stars: ✭ 28 (+86.67%)
Mutual labels:  nuxtjs
nodejs-vuejs-mysql-boilerplate
Node.js (REST API) + Vue.js/Nuxt.js (Frontend/Backend) + MySQL Boilerplate
Stars: ✭ 134 (+793.33%)
Mutual labels:  nuxtjs
zio-http4s-example
For anyone who's struggling to put an http4s server together with ZIO
Stars: ✭ 19 (+26.67%)
Mutual labels:  effects
my-blog
node.js vue.js nuxt.js hapi.js mysql 仿简书博客
Stars: ✭ 25 (+66.67%)
Mutual labels:  nuxtjs
Vuc
🎨 基于 Vuejs2 的 Canvas 组件库【服务器挂了。不在提供demo,github自带的静态网站不能发布,因为demo代码找不到了😂。】
Stars: ✭ 52 (+246.67%)
Mutual labels:  effects
vue-cli-3-nuxt-typescript
Finally I got typescript working with Nuxt-Edge, using vue-cli 3
Stars: ✭ 24 (+60%)
Mutual labels:  nuxtjs
limitless-engine
OpenGL C++ Graphics Engine
Stars: ✭ 95 (+533.33%)
Mutual labels:  effects
nuxt-ecommerce
🛍 Ecommerce Store with Nuxt
Stars: ✭ 82 (+446.67%)
Mutual labels:  nuxtjs
nuxt-basic-blog
A set of starter blog templates to use with Nuxt.
Stars: ✭ 47 (+213.33%)
Mutual labels:  nuxtjs
supabase
An easy way to integrate Supabase with NuxtJS
Stars: ✭ 39 (+160%)
Mutual labels:  nuxtjs
shuffle-text
"shuffle-text" is JavaScript text effect library such as cool legacy of Flash.
Stars: ✭ 93 (+520%)
Mutual labels:  effects
typescript-nuxtjs-boilerplate
🍱 Nuxt.js with TypeScript and Run with docker and docker-compose 🐶🦄🔥 visit: https://typescript-nuxtjs-boilerplate.netlify.com/example
Stars: ✭ 51 (+240%)
Mutual labels:  nuxtjs
graduation-web
A PWA for the community of students of CEIT Department at Amirkabir U of Technology (Class of 2018)
Stars: ✭ 25 (+66.67%)
Mutual labels:  nuxtjs
laravel-nuxt
Laravel 5.6 + Nuxt 1.4: Auth Starter (SSR, SPA, Socialite)
Stars: ✭ 19 (+26.67%)
Mutual labels:  nuxtjs
full-static-nuxt-storyblok
A boilerplate project designed to demonstrate the benefits of using JAMStack and the easy configuration of a project with NuxtJS and Storyblok <3
Stars: ✭ 26 (+73.33%)
Mutual labels:  nuxtjs
nuxt-typescript-vuetify
nuxt-typescript-vuetify.justhannes.now.sh
Stars: ✭ 29 (+93.33%)
Mutual labels:  nuxtjs
nuxt-humans-txt
🧑🏻👩🏻 "We are people, not machines" - An initiative to know the creators of a website. Contains the information about humans to the web building - A Nuxt Module to statically integrate and generate a humans.txt author file - Based on the HumansTxt Project.
Stars: ✭ 27 (+80%)
Mutual labels:  nuxtjs
ableton-live-downloader
🎹 Downloads the desired 64-bit installer from any version of Ableton Live 11, 10, and 9.
Stars: ✭ 17 (+13.33%)
Mutual labels:  nuxtjs
nuxt-stripejs
💳 NuxtJS module for Stripe.js which loads only when required and w/ retry mechanism
Stars: ✭ 17 (+13.33%)
Mutual labels:  nuxtjs
nuxt-django-postgresql
Nuxt.js, Django, PostgreSQL, Nginx, Docker, Adminer, RabbitMQ, Celery
Stars: ✭ 17 (+13.33%)
Mutual labels:  nuxtjs

🎉 Vue Fake3d image effect

A fake 3D Image Effect made with WebGL - w/ VueJS - SSR Compatible

npm version npm downloads License

Installation

This package is available on npm.

    # Save it as a dep
    npm install --save @luxdamore/vue-fake3d-image-effect

Usage

As a component

    // Component
    import { Fake3dImageEffect } from '@luxdamore/vue-fake3d-image-effect';
    import '@luxdamore/vue-fake3d-image-effect/dist/Fake3dImageEffect.css';

    // Install
    Vue.component(
        Fake3dImageEffect.name,
        Fake3dImageEffect
    );

    // Or in a .vue file
    export default {
        components: {
            'fake3d-image-effect': Fake3dImageEffect,
        },
    };

As a plugin

    // Plugin
    import Fake3dImageEffect from '@luxdamore/vue-fake3d-image-effect';
    import '@luxdamore/vue-fake3d-image-effect/dist/Fake3dImageEffect.css';

    // Install
    Vue.use(
        Fake3dImageEffect
    );

Browser's way

    <!doctype html>
    <html>
        <head>

            <!-- Fake3dImageEffect style -->

                <!-- Old way -->
                <link rel="stylesheet" href="https://unpkg.com/@luxdamore/vue-fake3d-image-effect@latest/dist/Fake3dImageEffect.css" />
                <!-- end old way -->

                <!-- New way -->
                <link rel="preload" href="https://unpkg.com/@luxdamore/vue-fake3d-image-effect@latest/dist/Fake3dImageEffect.css" as="style" onload="this.rel='stylesheet'" />
                <link rel="preload" href="https://unpkg.com/@luxdamore/vue-fake3d-image-effect@latest/dist/Fake3dImageEffect.umd.min.js" as="script" />
                <!-- end new way -->

            <!-- end Fake3dImageEffect style -->

        </head>
        <body>

            <!--
                Others script (ex. VueJs) and html.
            -->

            <!-- Fake3dImageEffect script -->
                <script src="https://unpkg.com/@luxdamore/vue-fake3d-image-effect@latest/dist/Fake3dImageEffect.umd.min.js"></script>
            <!-- end Fake3dImageEffect script -->

        </body>
    </html>

Markup

    <fake3d-image-effect
        centered
        fill-height-content
        tag="div"
        image="/imgs/about.jpg"
        image-map="/imgs/about-map.jpg"
    >
        <div class="container">
            <h2>
                Stare out cat door then go back inside
            </h2>
            <p>
                Cat ipsum dolor sit amet, find box a little too small and curl up with fur hanging out,lick left leg for ninety minutes, still dirty. Stand in doorway, unwilling to chose whether to stay in or go out unwrap toilet paper i vomit in the bed in the middle of the night.
            </p>
        </div>
    </fake3d-image-effect>

Integrations

NuxtJS

  • Create a file in the plugins folder;
  • Name it fake3d-image.client.js;
  • Install it as a plugin;
  • Import it in the nuxt.config.js file as client side only.

Options

Slots

    # Available
    slot="default"  # Add some content
    slot="overlay"  # Add an overlay between the default content and the background image
    slot="footer"   # Add a footer to the component

Props

Attribute Type Default Required About
tag String section false Tag of the rendered VNode in DOM
image String null true The img-src path
image-map String null true The img-src-map path
horizontal-threshold String, Number 18 false Sensibility for the X-ax
vertical-threshold String, Number 23 false Sensibility for the Y-ax
max-tilt String, Number 15 false Sensibility for the Tilt
gyro Object { gravityNormalized:true, } false Gyro config object
centered Boolean false false Style, text-align: center
fill-height-content Boolean false false Style height: 100% for the default slot
width String 100% false Width of component
height String 100vh false Height of component

🐞 Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

👥 Contribution

Please make sure to read the Contributing Guide before making a pull request.

📖 Changelog

Details changes for each release are documented in the release notes.

📃 License

MIT License // Copyright (©) 2019-present Luca Iaconelli

💸 Are you feeling generous today? :)

Do you want to share a beer? We can be good friends.. Paypal // Patreon

It's always a good day to be magnanimous - cit

💼 Hire me

Otechie

ko-fi

💘 Inspired by

Fake3dImageEffect by Tympanus

Check Preparing the image section for how to do the image-map.


💡 Lighthouse

Lighthouse audit score

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].