For more information on Lenticular, please see here
2 ~ 3 images lenticular effect
Demo : https://framer-modules.github.io/sensor.framer/lenticular.framer
- Multiple browser supported
- Lenticular effect according to left and right tilt
Copy the "modules" and "images" folder and paste it into your prototype folder
More info about modules for Framer Studio: FramerJS Docs - Modules
Tilting direction
Left
Right
Default layer (Include image)
- layer [Layer] : layer
Add other layer
- layer [Layer] : layer
- orientation [Orientation] : tilting direction (default : Lenticular.Orientation.Both)
# Module
{Lenticular} = require 'Lenticular'
# Constructor
lenticular = new Lenticular
width: 750, height: 1334
backgroundColor: "white"
# set default
lenticular.setDefault new Layer width: 750, height: 1334, image: "images/before.jpg"
# add layer
lenticular.addScene new Layer width: 750, height: 1334, image: "images/after.jpg"
# Module
{Lenticular} = require 'Lenticular'
# Constructor
lenticular = new Lenticular
width: 750, height: 1334
backgroundColor: "white"
# set default
lenticular.setDefault new Layer width: 750, height: 1334, image: "images/before.jpg"
# add layer
lenticular.addScene (new Layer width: 750, height: 1334, image: "images/after.jpg"), Lenticular.Orientation.Left
# Module
{Lenticular} = require 'Lenticular'
# Constructor
lenticular = new Lenticular
width: 750, height: 1334
backgroundColor: "white"
# set default
lenticular.setDefault new Layer width: 750, height: 1334, image: "images/before.jpg"
# add layer
lenticular.addScene (new Layer width: 750, height: 1334, image: "images/after.jpg"), Lenticular.Orientation.Right