Responsive jQuery Image Comparison Plugin: Before & After Viewer

Responsive jQuery Image Comparison Plugin: Before & After Viewer

Effective Web Design is using the right technology to showcase information. A "before and after" element should be responsive and resize according to the type of device it's being viewed on and the user should be able to adjust which images is visible with either their mouse or their finger. 

One of the easiest & cleanest ways to implement responsive before and after image effects on your website is with an NPM package called "jquery-image-compare" written by @sylvaincombes. 

Google Earth / Getty Images

Implementing jquery-image-compare

Check out the official NPM instructions. Codepen available above compliments of Keystone Web Studios.

Using Before & After Element in WordPress

There is a plugin available on CodeCanyon for $17 that will allow you to do the same thing as above, however at the time of this post there were no working free plugins that were responsive and touch enabled without using a page builder. 

Resources

Keystone Web Studios

A Pennsylvania based IT consulting firm specializing in website development, ecommerce platforms, native mobile app development, SEO/SEM services, digital marketing management & technical support. Call us anytime! 855-942-0303

Leave a Reply

Be the First to Comment!

Notify of
avatar
Close Menu

Technologies We Use

Front-End UI/UX Technology

Front-End Technologies are responsible for the look and the operation of your website or application. We use technologies that are stable, widely adopted and have large community support behind them. They include:

  • HTML5 - The latest version of the Hypertext Markup Language. The base code for all web pages.
  • CSS3 - A language and set of rules for styling assets and web content on a website.
  • Bootstrap 4 - A powerful front-end framework developed by Twitter that allows developers to include web components in their applications easily.
  • Material UI - Another powerful front-end framework for React that mimics Google's Material Design look.
  • jQuery / JavaScript - A client-side processing language for controlling front-end functions and managing data between the front and back-end of websites and applications.
Back-End System Technology

Back-End Technologies remain on a server and are responsible for things like user authentication, some website functionality, data searches and data storage. Technologies that we use are stable, widely adopted and have large community support behind them. They include:

  • Laravel PHP Framework - A popular MVC (model-view-controller) PHP framework used in the development of websites and APIs for mobile development.
  • MySQL - A open source relational database management platform (Structured Query Language). 
  • NGINX - A fast and stable web server / load balancer for websites and APIs.
  • Ubuntu Server - A popular server architecture great for running websites, databases and APIs
Open Source Technology

Open Source Technologies are community written software projects that are available for free on the internet and can be modified to better fit a company's needs. Should you need, we can adjust any open source system to meet the requirements of your business.

  • Wordpress - Content management system used to build websites and web applications.
  • WooCommerce - Comprehensive ECommerce plugin for Wordpress.
  • Magento - Standalone eCommerce platform written in PHP.
  • SuiteCRM - Customer relationship manager with built in email marketing capabilities.
  • OpenProject - Team based project management software. 
Front-End UI/UX Technology

Front-End Technologies are responsible for the look and the operation of your website or application. We use technologies that are stable, widely adopted and have large community support behind them. They include:

  • HTML5 - The latest version of the Hypertext Markup Language. The base code for all web pages.
  • CSS3 - A language and set of rules for styling assets and web content on a website.
  • Bootstrap 4 - A powerful front-end framework developed by Twitter that allows developers to include web components in their applications easily.
  • Material UI - Another powerful front-end framework for React that mimics Google's Material Design look.
  • jQuery / JavaScript - A client-side processing language for controlling front-end functions and managing data between the front and back-end of websites and applications.
Back-End System Technology

Back-End Technologies remain on a server and are responsible for things like user authentication, some website functionality, data searches and data storage. Technologies that we use are stable, widely adopted and have large community support behind them. They include:

  • Laravel PHP Framework - A popular MVC (model-view-controller) PHP framework used in the development of websites and APIs for mobile development.
  • MySQL - A open source relational database management platform (Structured Query Language). 
  • NGINX - A fast and stable web server / load balancer for websites and APIs.
  • Ubuntu Server - A popular server architecture great for running websites, databases and APIs
Open Source Technology

Open Source Technologies are community written software projects that are available for free on the internet and can be modified to better fit a company's needs. Should you need, we can adjust any open source system to meet the requirements of your business.

  • Wordpress - Content management system used to build websites and web applications.
  • WooCommerce - Comprehensive ECommerce plugin for Wordpress.
  • Magento - Standalone eCommerce platform written in PHP.
  • SuiteCRM - Customer relationship manager with built in email marketing capabilities.
  • OpenProject - Team based project management software. 

If you have any questions about the technology we use or if we can support your project contact us.