Coder Social home page Coder Social logo

glasses-online's Introduction

Glasses-online

    —— Wear kinds of glasses online -- 在线眼镜试戴

    前些日子,想要换镜框,图方便想在网上试试哪款镜框适合自己,结果网上很多试戴网站都差强人意,索性自己写了个试戴demo实现了基本功能。诸多不足,还请多多指教。

一、 基本功能实现

  • 用户上传的图片可在左侧区域实时预览
  • 用户点击右侧的眼镜样式后,镜框出现在左侧预览区域
  • 用户可自行调整镜框位置、大小、角度
  • 用户可自行调整已上传的图片在预览区域中的位置

    product

二、细节优化

  • 上传后的图片在预览区域自动居中
  • 记录了调整完的眼镜大小和位置,再次试戴其他镜框时,不必再次调整
  • 用户调整镜框时会有虚线边框提醒
  • 访问设备尺寸变小时,右侧镜框展览区域做了相应调整

    resize

预览地址:https://kuro-p.github.io/Glasses-online/在线眼镜试戴.html

glasses-online's People

Contributors

kuro-p avatar

Watchers

 avatar

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.