Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webdiscus/parallax-3d-lens-effect

3D parallax effect by mouse moving using CSS transform
https://github.com/webdiscus/parallax-3d-lens-effect

3d bundler css effect html js parallax plugin responsive webpack

Last synced: 4 days ago
JSON representation

3D parallax effect by mouse moving using CSS transform

Awesome Lists containing this project

README

        

# parallax-3d-lens-effect

The demonstration how to create the 3D parallax effect when moving mouse using the CSS `transform`.

In JavaScript, we only need to listen the mousemove event and set the transformation values into CSS variables.
The background "rain effect" is created with canvas and animated using JavaScript.

To generate static HTML with assets from their source files is used the [html-bundler-webpack-plugin](https://github.com/webdiscus/html-bundler-webpack-plugin).


Parallax 3D lens effect demo

> This example uses the assets created by @agragregra WebDesign Master.

## View and edit in browser

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/parallax-3d-lens-effect?file=README.md)

## Setup
```
git clone https://github.com/webdiscus/parallax-3d-lens-effect.git
cd parallax-3d-lens-effect
npm i
```

## View app
```
npm run view
```

## Start development
```
npm start
```

## Build app
```
npm run build
```