Giter VIP home page Giter VIP logo

threejs-login-view's Introduction

一个3D效果的登陆页面

预览

login2.gif

运行项目

Three.js and Vue.js Integration

This project demonstrates how to integrate Three.js and Vue.js, two popular JavaScript libraries, to create interactive and dynamic 3D graphics in a Vue.js application.

Getting Started To run this project, follow these steps:

Clone the repository to your local machine. Install the dependencies using npm install. Start the development server using npm run serve. Built With Three.js - A JavaScript library used to create and display animated 3D computer graphics in a web browser. Vue.js - A progressive framework for building user interfaces. Vue Three.js - A Vue.js plugin for using Three.js. Usage

To use Three.js in a Vue.js component, you first need to install the vue-threejs plugin. You can do this using npm: npm install vue-threejs

You can do this using yarn: yarn add vue-threejs

Next, import the VueThreeJS plugin in your Vue.js component: import VueThreeJS from 'vue-threejs';

Now you can use the VueThreeJS component to render a Three.js scene:

<template>
  <VueThreeJS>
    <three-scene>
      <three-perspective-camera :position="{ x: 0, y: 0, z: 10 }"></three-perspective-camera>
      <three-mesh :geometry="sphereGeometry" :material="sphereMaterial"></three-mesh>
    </three-scene>
  </VueThreeJS>
</template>

<script>
import VueThreeJS from 'vue-threejs';
import { SphereGeometry, MeshBasicMaterial, Mesh } from 'three';

export default {
  components: {
    VueThreeJS,
  },
  data() {
    return {
      sphereGeometry: new SphereGeometry(5),
      sphereMaterial: new MeshBasicMaterial({ color: 0xff0000 }),
    };
  },
  components: {
    VueThreeJS,
    ThreeScene,
    ThreePerspectiveCamera,
    ThreeMesh,
  },
};
</script>

License This project is licensed under the MIT License - see the LICENSE file for details.

git clone https://github.com/Yanzengyong/threejs-login-view.git

yarn

yarn serve

threejs-login-view's People

Contributors

dronebreaker avatar yanzengyong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

threejs-login-view's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.