This plugin was written for use in the Anthropose website in order to show how sunglasses would look like. This is actually a very low tech solution to a virtual try-on implemented in the Rayban website and is heavily inspired from the Warby Parker website.
- The general idea in this plugin is to use a sprite image so that all angles are loaded simultaneously.
- If the number of images are 5 then the container is also divided into 5 parts.
- Hover on each part of the container will change the background position of the sprite to match accordingly.
- total_banner_width in pixels (width of entire sprite )
- total_width in pixels (width of each individual item image in sprite)
- Number of images is the number of seperate blocks within the sprite image.
- Using defaults
$("#rotate-container").rotateHeads();
- Using options
$("#rotate-container").rotateHeads({ total_banner_width: 2551, total_width: 431 });