GithubHelp home page GithubHelp logo

gallery's Introduction

react照片墙

预览地址

简介

  • 点击不同图片时所有图片随机排布,点击位于中心的图片可以进行翻转
  • 点击中心以外的图片该图片会置于中心
  • 点击底部导航按钮会展示该按钮对应的图片,并将其置于中心
  • 再次点击导航按钮将图片进行翻转

技术栈

  • 使用webpack构建项目
  • 使用热模块替换,实时显示效果
  • 使用less-loaderstyle-loaderurl-loader等工具自动编译 less文件、图片以及 iconfont 文件
  • 使用 CSS3 动画属性transformtransition等属性完成动画效果
  • 使用 React + ES6 完成页面搭建

安装

  1. 将项目克隆到本地
git clone [email protected]:Pegggy/gallery.git
  1. 安装依赖
npm install

3.启动项目

npm start

在浏览器窗口中打开 http://localhost:8080 即可使用。

其他命令:

## 打开本地服务器
npm run server

## 编译文件到 dist 目录
npm run build

gallery's People

Contributors

pegggy 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.