Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/webdiscus/parallax-3d-lens-effect
- Owner: webdiscus
- License: isc
- Created: 2023-09-30T20:26:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-30T10:40:11.000Z (11 days ago)
- Last Synced: 2024-10-30T11:32:43.082Z (11 days ago)
- Topics: 3d, bundler, css, effect, html, js, parallax, plugin, responsive, webpack
- Language: JavaScript
- Homepage:
- Size: 11.1 MB
- Stars: 63
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).
> 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
```